add tests for langchain and remove wrong model for guardrails agent

This commit is contained in:
BazookaMusic
2026-05-15 12:49:36 +02:00
parent fe7eabd56f
commit 5ef09a102c
6 changed files with 232 additions and 5 deletions

View File

@@ -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