You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backport: feat(ai): add toolMetadata for tool specific metdata (#15053)
This is an automated backport of #15021 to the release-v6.0 branch. FYI
@aayush-kapoor
This backport has conflicts that need to be resolved manually.
### `git cherry-pick` output
```
Auto-merging content/docs/07-reference/01-ai-sdk-core/20-tool.mdx
Auto-merging content/docs/07-reference/01-ai-sdk-core/22-dynamic-tool.mdx
Auto-merging examples/ai-e2e-next/app/chat/mcp/page.tsx
CONFLICT (content): Merge conflict in examples/ai-e2e-next/app/chat/mcp/page.tsx
Auto-merging packages/ai/src/generate-text/execute-tool-call.test.ts
CONFLICT (content): Merge conflict in packages/ai/src/generate-text/execute-tool-call.test.ts
Auto-merging packages/ai/src/generate-text/execute-tool-call.ts
CONFLICT (content): Merge conflict in packages/ai/src/generate-text/execute-tool-call.ts
Auto-merging packages/ai/src/generate-text/generate-text.ts
Auto-merging packages/ai/src/generate-text/parse-tool-call.test.ts
Auto-merging packages/ai/src/generate-text/parse-tool-call.ts
CONFLICT (modify/delete): packages/ai/src/generate-text/stream-language-model-call.ts deleted in HEAD and modified in 329a01b (feat(ai): add toolMetadata for tool specific metdata (#15021)). Version 329a01b (feat(ai): add toolMetadata for tool specific metdata (#15021)) of packages/ai/src/generate-text/stream-language-model-call.ts left in tree.
Auto-merging packages/ai/src/generate-text/stream-text-result.ts
CONFLICT (content): Merge conflict in packages/ai/src/generate-text/stream-text-result.ts
Auto-merging packages/ai/src/generate-text/stream-text.test.ts
Auto-merging packages/ai/src/generate-text/stream-text.ts
Auto-merging packages/ai/src/generate-text/tool-call.ts
CONFLICT (content): Merge conflict in packages/ai/src/generate-text/tool-call.ts
Auto-merging packages/ai/src/generate-text/tool-error.ts
CONFLICT (content): Merge conflict in packages/ai/src/generate-text/tool-error.ts
Auto-merging packages/ai/src/generate-text/tool-result.ts
CONFLICT (content): Merge conflict in packages/ai/src/generate-text/tool-result.ts
Auto-merging packages/ai/src/ui-message-stream/ui-message-chunks.ts
Auto-merging packages/ai/src/ui/process-ui-message-stream.test.ts
Auto-merging packages/ai/src/ui/process-ui-message-stream.ts
CONFLICT (content): Merge conflict in packages/ai/src/ui/process-ui-message-stream.ts
Auto-merging packages/ai/src/ui/ui-messages.ts
Auto-merging packages/ai/src/ui/validate-ui-messages.ts
CONFLICT (content): Merge conflict in packages/ai/src/ui/validate-ui-messages.ts
Auto-merging packages/mcp/src/tool/mcp-client.test.ts
Auto-merging packages/mcp/src/tool/mcp-client.ts
Auto-merging packages/provider-utils/src/types/tool.ts
CONFLICT (content): Merge conflict in packages/provider-utils/src/types/tool.ts
error: could not apply 329a01b... feat(ai): add toolMetadata for tool specific metdata (#15021)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
```
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aayush Kapoor <[email protected]>
Co-authored-by: Aayush Kapoor <[email protected]>
'Additional provider-specific metadata. They are passed through to the provider from the AI SDK and enable provider-specific functionality that can be fully encapsulated in the provider.',
171
171
},
172
172
{
173
-
name: 'providerMetadata',
173
+
name: 'metadata',
174
174
isOptional: true,
175
-
type: 'ProviderMetadata',
175
+
type: 'JSONObject',
176
176
description:
177
-
"Optional metadata about the tool itself (e.g. its source). It is propagated onto the resulting tool call's providerMetadata so consumers can read it from tool call/result parts and UI message parts. Useful for sources of dynamic tools (e.g. an MCP server) to identify themselves.",
177
+
"Optional metadata about the tool itself (e.g. its source). It is propagated onto the resulting tool call's toolMetadata so consumers can read it from tool call/result parts and UI message parts. Useful for sources of dynamic tools (e.g. an MCP server) to identify themselves.",
"Optional metadata about the tool itself (e.g. its source). It is propagated onto the resulting tool call's providerMetadata so consumers can read it from tool call/result parts and UI message parts. Useful for sources of dynamic tools (e.g. an MCP server) to identify themselves."
161
+
"Optional metadata about the tool itself (e.g. its source). It is propagated onto the resulting tool call's toolMetadata so consumers can read it from tool call/result parts and UI message parts. Useful for sources of dynamic tools (e.g. an MCP server) to identify themselves."
0 commit comments