fix(custom-agents): align planner catalog and schema validation

This commit is contained in:
edxeth
2026-02-26 21:14:00 +01:00
parent 922ff7f2bc
commit a5749a1392
6 changed files with 147 additions and 24 deletions
@@ -103,5 +103,12 @@ export async function buildPrometheusAgentConfig(params: {
if (prompt_append && typeof merged.prompt === "string") {
merged.prompt = merged.prompt + "\n" + resolvePromptAppend(prompt_append);
}
if (
customAgentBlock
&& typeof merged.prompt === "string"
&& !merged.prompt.includes("<custom_agent_catalog>")
) {
merged.prompt = merged.prompt + customAgentBlock;
}
return merged;
}