feat: drop agent ID from v2 (#17005)

This commit is contained in:
jif-oai
2026-04-07 11:56:01 +02:00
committed by GitHub
parent e2bb45bb24
commit 2a8c3a2a52
5 changed files with 5 additions and 14 deletions

View File

@@ -375,10 +375,6 @@ fn spawn_agent_output_schema_v2() -> Value {
json!({
"type": "object",
"properties": {
"agent_id": {
"type": ["string", "null"],
"description": "Legacy thread identifier for the spawned agent."
},
"task_name": {
"type": "string",
"description": "Canonical task name for the spawned agent."
@@ -388,7 +384,7 @@ fn spawn_agent_output_schema_v2() -> Value {
"description": "User-facing nickname for the spawned agent when available."
}
},
"required": ["agent_id", "task_name", "nickname"],
"required": ["task_name", "nickname"],
"additionalProperties": false
})
}

View File

@@ -73,7 +73,7 @@ fn spawn_agent_tool_v2_requires_task_name_and_lists_visible_models() {
);
assert_eq!(
output_schema.expect("spawn_agent output schema")["required"],
json!(["agent_id", "task_name", "nickname"])
json!(["task_name", "nickname"])
);
}

View File

@@ -243,10 +243,7 @@ fn test_build_specs_multi_agent_v2_uses_task_names_and_hides_resume() {
let output_schema = output_schema
.as_ref()
.expect("spawn_agent should define output schema");
assert_eq!(
output_schema["required"],
json!(["agent_id", "task_name", "nickname"])
);
assert_eq!(output_schema["required"], json!(["task_name", "nickname"]));
let send_message = find_tool(&tools, "send_message");
let ToolSpec::Function(ResponsesApiTool { parameters, .. }) = &send_message.spec else {