Config: support per-agent model fallbacks

This commit is contained in:
Gregor's Bot authored and Peter Steinberger committed 2026-01-13 06:50:20 +00:00
1 parent f50e06a1b6
commit 6729637f61
14 files changed
+224 -14

No files matched your search

+10 -1
View File
@@ -1127,13 +1127,22 @@ export type ToolsConfig = {
};
};
export type AgentModelConfig =
| string
| {
/** Primary model (provider/model). */
primary?: string;
/** Per-agent model fallbacks (provider/model). */
fallbacks?: string[];
};
export type AgentConfig = {
id: string;
default?: boolean;
name?: string;
workspace?: string;
agentDir?: string;
model?: string;
model?: AgentModelConfig;
memorySearch?: MemorySearchConfig;
/** Human-like delay between block replies for this agent. */
humanDelay?: HumanDelayConfig;