feat: fork thread multi agent (#12499)

This commit is contained in:
jif-oai
2026-02-26 18:01:53 +00:00
committed by GitHub
parent c53c08f8f9
commit d3603ae5d3
5 changed files with 494 additions and 4 deletions

View File

@@ -633,6 +633,15 @@ fn create_spawn_agent_tool(config: &ToolsConfig) -> ToolSpec {
)),
},
),
(
"fork_context".to_string(),
JsonSchema::Boolean {
description: Some(
"When true, fork the current thread history into the new agent before sending the initial prompt. This must be used when you want the new agent to have exactly the same context as you."
.to_string(),
),
},
),
]);
ToolSpec::Function(ResponsesApiTool {