Support incremental tool declarations on GCP (#60617)

## What changed

Allow GCP Responses requests to use `incremental_tools_legacy`. When enabled, tool declarations are sent through `additional_tools` inputs instead of the top-level `tools` array.

## Testing

Extend Vertex request coverage to check incremental tool declarations, including namespaces, tool search, and `exec_command`. Add GCP cases to the scenario that verifies tool catalog updates are appended without rewriting history, with incremental tools enabled and disabled.

GitOrigin-RevId: 8f4c02f8d62575e24e695d6fae0472a09625409f
This commit is contained in:
Alex Kira
2026-11-10 16:13:17 +00:00
committed by copyberry
parent 039d0f27d5
commit 0d37c062de
4 changed files with 33 additions and 12 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ pub enum Feature {
CommandSessionsWorldState,
/// Track top-level tool definitions in world state and emit incremental context updates.
IncrementalTools,
/// Publish incremental tool declarations on regular Amazon Bedrock Responses.
/// Publish incremental tool declarations on regular Amazon Bedrock and GCP Responses.
IncrementalToolsLegacy,
/// Suppress the model ID announcement in incremental context after a model switch.
SuppressModelChangeAnnouncements,