Skip to content

fix(google): map code execution tool name - #20260

Merged
n1ckoates merged 4 commits into
mainfrom
nick/vertex-map-code-exec-tool
Sep 3, 2026
Merged

fix(google): map code execution tool name#20260
n1ckoates merged 4 commits into
mainfrom
nick/vertex-map-code-exec-tool

Conversation

@n1ckoates

@n1ckoates n1ckoates commented Sep 2, 2026

Copy link
Copy Markdown
Member

Background

Vertex code execution uses fixed code_execution, but users can register it under a custom AI SDK tool key. When the model called the tool, it caused Core to reject the response with AI_NoSuchToolError.

Summary

Map Vertex’s native code_execution response name back to the caller-defined tool key. This is the same solution already used by the OpenAI provider for code_interpreter.

End-to-End Verification

Verified with googleVertex('gemini-2.5-pro'). A custom CodeExecutionTool key now receives valid tool-call and tool-result parts with no AI_NoSuchToolError.

tools: {
  CodeExecutionTool: googleVertex.tools.codeExecution({}),
}

Checklist

  • All commits are signed (PRs with unsigned commits cannot be merged)
  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Related Issues

Fixes #9280

@n1ckoates
n1ckoates marked this pull request as ready for review September 2, 2026 23:56
@n1ckoates
n1ckoates merged commit 63533eb into main Sep 3, 2026
53 checks passed
@n1ckoates
n1ckoates deleted the nick/vertex-map-code-exec-tool branch September 3, 2026 19:46
@github-actions github-actions Bot mentioned this pull request Sep 3, 2026
gr2m pushed a commit that referenced this pull request Sep 4, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## ai@7.0.93

### Patch Changes

- df6c009: fix(ai): use new message ID when replacing a message in
`sendMessage`
- 6ee74a3: fix(ai): preserve tool part titles when validating UI
messages
- f13d371: fix(ai): preserve provider metadata when converting failed
tool calls
- d4485fe: feat(ai): support minItems and maxItems in array outputs
- 4f201cc: chore(ai): formally include already supported
`onLanguageModelCallStart` and `onLanguageModelCallEnd` in
`ToolLoopAgentSettings` type
- 8cdb2a7: fix(ai): decode text data URLs in Node.js
- 0f2281e: fix(ai): reject embedding responses whose count does not
match the input values
- fc8e8ac: fix(ai): preserve image call diagnostics when no image is
generated
- ee8391e: fix(ai): support abort signals when the global AbortSignal is
not a constructor
- Updated dependencies [3cfc1fc]
  - @ai-sdk/gateway@4.0.75
## @ai-sdk/amazon-bedrock@5.0.75

### Patch Changes

- d0b6d6d: fix(bedrock): preserve provider-executed tool results when
replaying messages
- 770c214: fix(amazon-bedrock): sanitize document filenames before
sending them to Bedrock
- 1ee6b1f: fix(amazon-bedrock): return text from citation content
responses
- Updated dependencies [4af00d1]
- Updated dependencies [abb9ebf]
  - @ai-sdk/openai@4.0.59
## @ai-sdk/angular@3.0.93

### Patch Changes

- Updated dependencies [df6c009]
- Updated dependencies [6ee74a3]
- Updated dependencies [f13d371]
- Updated dependencies [d4485fe]
- Updated dependencies [4f201cc]
- Updated dependencies [8cdb2a7]
- Updated dependencies [0f2281e]
- Updated dependencies [fc8e8ac]
- Updated dependencies [ee8391e]
  - ai@7.0.93
## @ai-sdk/azure@4.0.62

### Patch Changes

- Updated dependencies [4af00d1]
- Updated dependencies [abb9ebf]
  - @ai-sdk/openai@4.0.59
## @ai-sdk/baseten@2.1.22

### Patch Changes

- Updated dependencies [e5a22f0]
  - @ai-sdk/openai-compatible@3.0.44
## @ai-sdk/cerebras@3.0.44

### Patch Changes

- Updated dependencies [e5a22f0]
  - @ai-sdk/openai-compatible@3.0.44
## @ai-sdk/code-mode@1.0.50

### Patch Changes

- Updated dependencies [df6c009]
- Updated dependencies [6ee74a3]
- Updated dependencies [f13d371]
- Updated dependencies [d4485fe]
- Updated dependencies [4f201cc]
- Updated dependencies [8cdb2a7]
- Updated dependencies [0f2281e]
- Updated dependencies [fc8e8ac]
- Updated dependencies [ee8391e]
  - ai@7.0.93
## @ai-sdk/deepinfra@3.0.44

### Patch Changes

- Updated dependencies [e5a22f0]
  - @ai-sdk/openai-compatible@3.0.44
## @ai-sdk/fireworks@3.0.47

### Patch Changes

- Updated dependencies [e5a22f0]
  - @ai-sdk/openai-compatible@3.0.44
## @ai-sdk/gateway@4.0.75

### Patch Changes

- 3cfc1fc: feat(gateway): add support for gpt-6-astra
## @ai-sdk/gmicloud@3.0.15

### Patch Changes

- Updated dependencies [e5a22f0]
  - @ai-sdk/openai-compatible@3.0.44
## @ai-sdk/google@4.0.64

### Patch Changes

- d4485fe: feat(ai): support minItems and maxItems in array outputs
- 63533eb: fix(google): map code execution tool name- #20260
## @ai-sdk/google-vertex@5.0.76

### Patch Changes

- 2d1f05d: fix(vertex): default Llama 4 output tokens
- Updated dependencies [e5a22f0]
- Updated dependencies [d4485fe]
- Updated dependencies [63533eb]
  - @ai-sdk/openai-compatible@3.0.44
  - @ai-sdk/google@4.0.64
## @ai-sdk/harness@1.0.102

### Patch Changes

- fe86f8f: feat(harness): support established lifecycle callbacks from
`ToolLoopAgent` on `HarnessAgent` too
- 255cccf: feat(harness): add `writeInstructions` helper and support
filesystem based `instructionsMapping` in ACP backed harness adapters
- eeed977: feat(harness): allow passing arbitrary headers with inference
requests via `headers` property in `HarnessAgentSettings`
- a39c8bf: chore(harness): clarify `writeSkills` helper intent to
require materializing skills in HOME directory
- Updated dependencies [df6c009]
- Updated dependencies [6ee74a3]
- Updated dependencies [f13d371]
- Updated dependencies [d4485fe]
- Updated dependencies [4f201cc]
- Updated dependencies [8cdb2a7]
- Updated dependencies [0f2281e]
- Updated dependencies [fc8e8ac]
- Updated dependencies [ee8391e]
  - ai@7.0.93
## @ai-sdk/harness-acp@1.0.40

### Patch Changes

- ceb601c: fix(harness-acp): fix stream translator to match most
appropriate tool based on input shape when no name is present and
multiple candidates would match the required arguments
- 255cccf: feat(harness): add `writeInstructions` helper and support
filesystem based `instructionsMapping` in ACP backed harness adapters
- 668b51d: fix(harness-acp): remove problematic condition that leads to
errors when using `stopWhen`
- eeed977: feat(harness): allow passing arbitrary headers with inference
requests via `headers` property in `HarnessAgentSettings`
- 1291df7: feat(harness-acp): support control over how host tools are
exposed via `hostToolMcpTransport` config
- a39c8bf: chore(harness): clarify `writeSkills` helper intent to
require materializing skills in HOME directory
- Updated dependencies [fe86f8f]
- Updated dependencies [255cccf]
- Updated dependencies [eeed977]
- Updated dependencies [a39c8bf]
  - @ai-sdk/harness@1.0.102
## @ai-sdk/harness-claude-code@1.0.106

### Patch Changes

- eeed977: feat(harness): allow passing arbitrary headers with inference
requests via `headers` property in `HarnessAgentSettings`
- a39c8bf: chore(harness): clarify `writeSkills` helper intent to
require materializing skills in HOME directory
- Updated dependencies [fe86f8f]
- Updated dependencies [255cccf]
- Updated dependencies [eeed977]
- Updated dependencies [a39c8bf]
  - @ai-sdk/harness@1.0.102
## @ai-sdk/harness-cline@1.0.29

### Patch Changes

- eeed977: feat(harness): allow passing arbitrary headers with inference
requests via `headers` property in `HarnessAgentSettings`
- Updated dependencies [fe86f8f]
- Updated dependencies [255cccf]
- Updated dependencies [eeed977]
- Updated dependencies [a39c8bf]
  - @ai-sdk/harness@1.0.102
## @ai-sdk/harness-codex@1.0.104

### Patch Changes

- eeed977: feat(harness): allow passing arbitrary headers with inference
requests via `headers` property in `HarnessAgentSettings`
- a39c8bf: chore(harness): clarify `writeSkills` helper intent to
require materializing skills in HOME directory
- Updated dependencies [fe86f8f]
- Updated dependencies [255cccf]
- Updated dependencies [eeed977]
- Updated dependencies [a39c8bf]
  - @ai-sdk/harness@1.0.102
## @ai-sdk/harness-cursor@1.0.15

### Patch Changes

- eeed977: feat(harness): allow passing arbitrary headers with inference
requests via `headers` property in `HarnessAgentSettings`
- Updated dependencies [fe86f8f]
- Updated dependencies [ceb601c]
- Updated dependencies [255cccf]
- Updated dependencies [668b51d]
- Updated dependencies [eeed977]
- Updated dependencies [1291df7]
- Updated dependencies [a39c8bf]
  - @ai-sdk/harness@1.0.102
  - @ai-sdk/harness-acp@1.0.40
## @ai-sdk/harness-deepagents@1.0.102

### Patch Changes

- eeed977: feat(harness): allow passing arbitrary headers with inference
requests via `headers` property in `HarnessAgentSettings`
- a39c8bf: chore(harness): clarify `writeSkills` helper intent to
require materializing skills in HOME directory
- Updated dependencies [fe86f8f]
- Updated dependencies [255cccf]
- Updated dependencies [eeed977]
- Updated dependencies [a39c8bf]
  - @ai-sdk/harness@1.0.102
## @ai-sdk/harness-fx@1.0.15

### Patch Changes

- 255cccf: feat(harness): add `writeInstructions` helper and support
filesystem based `instructionsMapping` in ACP backed harness adapters
- eeed977: feat(harness): allow passing arbitrary headers with inference
requests via `headers` property in `HarnessAgentSettings`
- Updated dependencies [fe86f8f]
- Updated dependencies [ceb601c]
- Updated dependencies [255cccf]
- Updated dependencies [668b51d]
- Updated dependencies [eeed977]
- Updated dependencies [1291df7]
- Updated dependencies [a39c8bf]
  - @ai-sdk/harness@1.0.102
  - @ai-sdk/harness-acp@1.0.40
## @ai-sdk/harness-grok-build@1.0.39

### Patch Changes

- 255cccf: feat(harness): add `writeInstructions` helper and support
filesystem based `instructionsMapping` in ACP backed harness adapters
- eeed977: feat(harness): allow passing arbitrary headers with inference
requests via `headers` property in `HarnessAgentSettings`
- Updated dependencies [fe86f8f]
- Updated dependencies [ceb601c]
- Updated dependencies [255cccf]
- Updated dependencies [668b51d]
- Updated dependencies [eeed977]
- Updated dependencies [1291df7]
- Updated dependencies [a39c8bf]
  - @ai-sdk/harness@1.0.102
  - @ai-sdk/harness-acp@1.0.40
## @ai-sdk/harness-opencode@1.0.104

### Patch Changes

- eeed977: feat(harness): allow passing arbitrary headers with inference
requests via `headers` property in `HarnessAgentSettings`
- a39c8bf: chore(harness): clarify `writeSkills` helper intent to
require materializing skills in HOME directory
- Updated dependencies [fe86f8f]
- Updated dependencies [255cccf]
- Updated dependencies [eeed977]
- Updated dependencies [a39c8bf]
  - @ai-sdk/harness@1.0.102
## @ai-sdk/harness-pi@1.0.104

### Patch Changes

- eeed977: feat(harness): allow passing arbitrary headers with inference
requests via `headers` property in `HarnessAgentSettings`
- a39c8bf: chore(harness): clarify `writeSkills` helper intent to
require materializing skills in HOME directory
- Updated dependencies [fe86f8f]
- Updated dependencies [255cccf]
- Updated dependencies [eeed977]
- Updated dependencies [a39c8bf]
  - @ai-sdk/harness@1.0.102
## @ai-sdk/huggingface@2.0.44

### Patch Changes

- Updated dependencies [e5a22f0]
  - @ai-sdk/openai-compatible@3.0.44
## @ai-sdk/langchain@3.0.93

### Patch Changes

- Updated dependencies [df6c009]
- Updated dependencies [6ee74a3]
- Updated dependencies [f13d371]
- Updated dependencies [d4485fe]
- Updated dependencies [4f201cc]
- Updated dependencies [8cdb2a7]
- Updated dependencies [0f2281e]
- Updated dependencies [fc8e8ac]
- Updated dependencies [ee8391e]
  - ai@7.0.93
## @ai-sdk/llamaindex@3.0.93

### Patch Changes

- Updated dependencies [df6c009]
- Updated dependencies [6ee74a3]
- Updated dependencies [f13d371]
- Updated dependencies [d4485fe]
- Updated dependencies [4f201cc]
- Updated dependencies [8cdb2a7]
- Updated dependencies [0f2281e]
- Updated dependencies [fc8e8ac]
- Updated dependencies [ee8391e]
  - ai@7.0.93
## @ai-sdk/mcp@2.0.45

### Patch Changes

- 33ba8fd: feat(mcp): surface server-provided tool annotations in tool
metadata
- 3da84fd: Accept MCP tool results that return `structuredContent`
without `content` by adding the serialized structured result as text.
## @ai-sdk/open-responses@2.0.39

### Patch Changes

- 4210d0b: feat(open-responses): add strict assistant history
serialization without synthetic item IDs
## @ai-sdk/openai@4.0.59

### Patch Changes

- 4af00d1: feat(openai): add support for the gpt-6-astra
- abb9ebf: feat(openai): support `gpt-4o-transcribe-diarize`, including
chunking and diarized speaker metadata
## @ai-sdk/openai-compatible@3.0.44

### Patch Changes

- e5a22f0: fix(openai-compatible): keep reasoning streams contiguous
when deltas include empty tool call arrays
## @ai-sdk/otel@1.0.93

### Patch Changes

- Updated dependencies [df6c009]
- Updated dependencies [6ee74a3]
- Updated dependencies [f13d371]
- Updated dependencies [d4485fe]
- Updated dependencies [4f201cc]
- Updated dependencies [8cdb2a7]
- Updated dependencies [0f2281e]
- Updated dependencies [fc8e8ac]
- Updated dependencies [ee8391e]
  - ai@7.0.93
## @ai-sdk/policy-opa@1.0.93

### Patch Changes

- Updated dependencies [df6c009]
- Updated dependencies [6ee74a3]
- Updated dependencies [f13d371]
- Updated dependencies [d4485fe]
- Updated dependencies [4f201cc]
- Updated dependencies [8cdb2a7]
- Updated dependencies [0f2281e]
- Updated dependencies [fc8e8ac]
- Updated dependencies [ee8391e]
  - ai@7.0.93
## @ai-sdk/react@4.0.96

### Patch Changes

- Updated dependencies [33ba8fd]
- Updated dependencies [df6c009]
- Updated dependencies [6ee74a3]
- Updated dependencies [f13d371]
- Updated dependencies [d4485fe]
- Updated dependencies [4f201cc]
- Updated dependencies [8cdb2a7]
- Updated dependencies [3da84fd]
- Updated dependencies [0f2281e]
- Updated dependencies [fc8e8ac]
- Updated dependencies [ee8391e]
  - @ai-sdk/mcp@2.0.45
  - ai@7.0.93
## @ai-sdk/rsc@3.0.93

### Patch Changes

- Updated dependencies [df6c009]
- Updated dependencies [6ee74a3]
- Updated dependencies [f13d371]
- Updated dependencies [d4485fe]
- Updated dependencies [4f201cc]
- Updated dependencies [8cdb2a7]
- Updated dependencies [0f2281e]
- Updated dependencies [fc8e8ac]
- Updated dependencies [ee8391e]
  - ai@7.0.93
## @ai-sdk/sandbox-just-bash@1.0.102

### Patch Changes

- Updated dependencies [fe86f8f]
- Updated dependencies [255cccf]
- Updated dependencies [eeed977]
- Updated dependencies [a39c8bf]
  - @ai-sdk/harness@1.0.102
## @ai-sdk/sandbox-vercel@1.0.102

### Patch Changes

- Updated dependencies [fe86f8f]
- Updated dependencies [255cccf]
- Updated dependencies [eeed977]
- Updated dependencies [a39c8bf]
  - @ai-sdk/harness@1.0.102
## @ai-sdk/svelte@5.0.93

### Patch Changes

- Updated dependencies [df6c009]
- Updated dependencies [6ee74a3]
- Updated dependencies [f13d371]
- Updated dependencies [d4485fe]
- Updated dependencies [4f201cc]
- Updated dependencies [8cdb2a7]
- Updated dependencies [0f2281e]
- Updated dependencies [fc8e8ac]
- Updated dependencies [ee8391e]
  - ai@7.0.93
## @ai-sdk/togetherai@3.0.45

### Patch Changes

- Updated dependencies [e5a22f0]
  - @ai-sdk/openai-compatible@3.0.44
## @ai-sdk/tui@1.0.94

### Patch Changes

- Updated dependencies [df6c009]
- Updated dependencies [6ee74a3]
- Updated dependencies [f13d371]
- Updated dependencies [d4485fe]
- Updated dependencies [4f201cc]
- Updated dependencies [8cdb2a7]
- Updated dependencies [0f2281e]
- Updated dependencies [fc8e8ac]
- Updated dependencies [ee8391e]
  - ai@7.0.93
## @ai-sdk/vue@4.0.93

### Patch Changes

- Updated dependencies [df6c009]
- Updated dependencies [6ee74a3]
- Updated dependencies [f13d371]
- Updated dependencies [d4485fe]
- Updated dependencies [4f201cc]
- Updated dependencies [8cdb2a7]
- Updated dependencies [0f2281e]
- Updated dependencies [fc8e8ac]
- Updated dependencies [ee8391e]
  - ai@7.0.93
## @ai-sdk/workflow@2.0.24

### Patch Changes

- 3204ab6: fix(workflow): preserve per-tool types in execution callbacks
and export the callback event types
- Updated dependencies [df6c009]
- Updated dependencies [6ee74a3]
- Updated dependencies [f13d371]
- Updated dependencies [d4485fe]
- Updated dependencies [4f201cc]
- Updated dependencies [8cdb2a7]
- Updated dependencies [0f2281e]
- Updated dependencies [fc8e8ac]
- Updated dependencies [ee8391e]
  - ai@7.0.93
## @ai-sdk/workflow-harness@1.0.102

### Patch Changes

- Updated dependencies [fe86f8f]
- Updated dependencies [255cccf]
- Updated dependencies [eeed977]
- Updated dependencies [a39c8bf]
  - @ai-sdk/harness@1.0.102
## @ai-sdk/zai@3.0.6

### Patch Changes

- Updated dependencies [e5a22f0]
  - @ai-sdk/openai-compatible@3.0.44

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

🚀 Published in:

Package Version
ai 7.0.93 github npm
@ai-sdk/amazon-bedrock 5.0.75 github npm
@ai-sdk/angular 3.0.93 github npm
@ai-sdk/azure 4.0.62 github npm
@ai-sdk/baseten 2.1.22 github npm
@ai-sdk/cerebras 3.0.44 github npm
@ai-sdk/code-mode 1.0.50 github npm
@ai-sdk/deepinfra 3.0.44 github npm
@ai-sdk/fireworks 3.0.47 github npm
@ai-sdk/gateway 4.0.75 github npm
@ai-sdk/gmicloud 3.0.15 github npm
@ai-sdk/google 4.0.64 github npm
@ai-sdk/google-vertex 5.0.76 github npm
@ai-sdk/harness 1.0.102 github npm
@ai-sdk/harness-acp 1.0.40 github npm
@ai-sdk/harness-claude-code 1.0.106 github npm
@ai-sdk/harness-cline 1.0.29 github npm
@ai-sdk/harness-codex 1.0.104 github npm
@ai-sdk/harness-cursor 1.0.15 github npm
@ai-sdk/harness-deepagents 1.0.102 github npm
@ai-sdk/harness-fx 1.0.15 github npm
@ai-sdk/harness-grok-build 1.0.39 github npm
@ai-sdk/harness-opencode 1.0.104 github npm
@ai-sdk/harness-pi 1.0.104 github npm
@ai-sdk/huggingface 2.0.44 github npm
@ai-sdk/langchain 3.0.93 github npm
@ai-sdk/llamaindex 3.0.93 github npm
@ai-sdk/mcp 2.0.45 github npm
@ai-sdk/open-responses 2.0.39 github npm
@ai-sdk/openai 4.0.59 github npm
@ai-sdk/openai-compatible 3.0.44 github npm
@ai-sdk/otel 1.0.93 github npm
@ai-sdk/policy-opa 1.0.93 github npm
@ai-sdk/react 4.0.96 github npm
@ai-sdk/rsc 3.0.93 github npm
@ai-sdk/sandbox-just-bash 1.0.102 github npm
@ai-sdk/sandbox-vercel 1.0.102 github npm
@ai-sdk/svelte 5.0.93 github npm
@ai-sdk/togetherai 3.0.45 github npm
@ai-sdk/tui 1.0.94 github npm
@ai-sdk/vue 4.0.93 github npm
@ai-sdk/workflow 2.0.24 github npm
@ai-sdk/workflow-harness 1.0.102 github npm
@ai-sdk/zai 3.0.6 github npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vertex AI mapping code_execution tool name, shows error/does not provide code input

2 participants