This commit is contained in:
Ryan McMillan 2026-01-30 14:09:07 +03:00 committed by GitHub
commit 7f66617a7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -65,7 +65,8 @@ export async function runCliAgent(params: {
const extraSystemPrompt = [ const extraSystemPrompt = [
params.extraSystemPrompt?.trim(), params.extraSystemPrompt?.trim(),
"Tools are disabled in this session. Do not call tools.", // Only add "tools disabled" message if tools aren't enabled for this backend
backend.toolsEnabled ? undefined : "Tools are disabled in this session. Do not call tools.",
] ]
.filter(Boolean) .filter(Boolean)
.join("\n"); .join("\n");

View File

@ -89,6 +89,8 @@ export type CliBackendConfig = {
imageMode?: "repeat" | "list"; imageMode?: "repeat" | "list";
/** Serialize runs for this CLI. */ /** Serialize runs for this CLI. */
serialize?: boolean; serialize?: boolean;
/** Whether tools are enabled for this CLI backend (default: false). */
toolsEnabled?: boolean;
}; };
export type AgentDefaultsConfig = { export type AgentDefaultsConfig = {