@ai-sdk/provider-utils 5.0.0-beta.29 → 5.0.0-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/provider-utils
2
2
 
3
+ ## 5.0.0-beta.30
4
+
5
+ ### Patch Changes
6
+
7
+ - 08d2129: feat(mcp): propagate the server name through dynamic tool parts
8
+
3
9
  ## 5.0.0-beta.29
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { SharedV4FileDataUrl, SharedV4FileDataReference, SharedV4FileDataText, SharedV4ProviderOptions, SharedV4ProviderReference, JSONValue, ImageModelV4File, LanguageModelV4FunctionTool, LanguageModelV4ProviderTool, AISDKError, JSONSchema7, JSONParseError, TypeValidationError, APICallError, LanguageModelV4Prompt, LanguageModelV4CallOptions, SharedV4Warning, LanguageModelV4FilePart, JSONObject, LanguageModelV4StreamPart, SharedV4ProviderMetadata, TypeValidationContext } from '@ai-sdk/provider';
1
+ import { SharedV4FileDataUrl, SharedV4FileDataReference, SharedV4FileDataText, SharedV4ProviderOptions, SharedV4ProviderReference, JSONValue, ImageModelV4File, LanguageModelV4FunctionTool, LanguageModelV4ProviderTool, AISDKError, JSONSchema7, JSONParseError, TypeValidationError, APICallError, LanguageModelV4Prompt, LanguageModelV4CallOptions, SharedV4Warning, SharedV4ProviderMetadata, LanguageModelV4FilePart, JSONObject, LanguageModelV4StreamPart, TypeValidationContext } from '@ai-sdk/provider';
2
2
  export { getErrorMessage } from '@ai-sdk/provider';
3
3
  import { StandardSchemaV1, StandardJSONSchemaV1 } from '@standard-schema/spec';
4
4
  export * from '@standard-schema/spec';
@@ -1339,6 +1339,16 @@ type BaseTool<INPUT extends JSONValue | unknown | never = any, OUTPUT extends JS
1339
1339
  * functionality that can be fully encapsulated in the provider.
1340
1340
  */
1341
1341
  providerOptions?: ProviderOptions;
1342
+ /**
1343
+ * Optional metadata about the tool itself (e.g. its source).
1344
+ *
1345
+ * Unlike `providerOptions`, this metadata is not sent to the language
1346
+ * model. Instead, it is propagated onto the resulting tool call's
1347
+ * `providerMetadata` so consumers can read it from tool call / result
1348
+ * parts and UI message parts. This is useful for sources of dynamic
1349
+ * tools (e.g. an MCP server) to identify themselves.
1350
+ */
1351
+ providerMetadata?: SharedV4ProviderMetadata;
1342
1352
  /**
1343
1353
  * The schema of the input that the tool expects.
1344
1354
  * The language model will use this to generate the input.
package/dist/index.js CHANGED
@@ -862,7 +862,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
862
862
  }
863
863
 
864
864
  // src/version.ts
865
- var VERSION = true ? "5.0.0-beta.29" : "0.0.0-test";
865
+ var VERSION = true ? "5.0.0-beta.30" : "0.0.0-test";
866
866
 
867
867
  // src/get-from-api.ts
868
868
  var getOriginalFetch = () => globalThis.fetch;