mirror of
https://github.com/github/codeql.git
synced 2026-06-12 16:31:10 +02:00
add tests for langchain and remove wrong model for guardrails agent
This commit is contained in:
@@ -243,13 +243,10 @@ module AgentSDK {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets user prompt sinks for run(agent, input).
|
||||
* Covers string input and user-role array messages.
|
||||
* Gets role-filtered user prompt sinks for run(agent, input).
|
||||
* The string-input case is handled via MaD (openai.model.yml).
|
||||
*/
|
||||
API::Node getUserPromptNode() {
|
||||
// run(agent, "string") — string input is the user prompt
|
||||
result = run().getParameter(1)
|
||||
or
|
||||
// run(agent, [{ role: "user", content: ... }])
|
||||
exists(API::Node msg |
|
||||
msg = run().getParameter(1).getArrayElement() and
|
||||
|
||||
Reference in New Issue
Block a user