Support catalog descriptions for all multi-agent V2 tools (#46297)

## Why

Model catalog description overrides only covered `spawn_agent`, leaving the other multi-agent V2 tools with fixed descriptions.

## What changed

Extend `model_messages.tools.multi_agent` description overrides to `send_message`, `followup_task`, `wait_agent`, `interrupt_agent`, and `list_agents`. Resolve each override by tool name across namespaced, plain, and Code Mode exposure.

Missing or null descriptions retain bundled text; empty strings suppress static text without disabling tools. Preserve `spawn_agent` runtime guidance, tool schemas, and execution behavior. Descriptions follow mid-turn model changes.

## Testing

Expand integration coverage to all six tools, including missing, null, empty, and sparse overrides; plain, namespaced, and Code Mode exposure; unchanged V1 behavior; and mid-turn model changes.

GitOrigin-RevId: a2c47eb8efb28c3eeebcc6482e36c188c38a6dd1
This commit is contained in:
rhan-oai authored and copyberry committed 2026-09-17 20:05:47 +00:00
1 parent 17baabd01b
commit 3e581ebca8
10 files changed
+401 -191

No files matched your search

+1 -1
View File
@@ -131,6 +131,7 @@ mod models_cache_ttl;
mod models_etag_responses;
mod multi_agent_mode;
mod multi_agent_resume;
mod multi_agent_tool_descriptions;
#[cfg(unix)]
mod multi_exec_server_sandbox;
mod network_approval;
@@ -184,7 +185,6 @@ mod skill_approval;
mod skills;
mod skills_extension;
mod spawn_agent_description;
mod spawn_agent_tool_descriptions;
mod sqlite_state;
mod startup_cancellation;
mod step_settings;