@ai-sdk/google 3.0.92 → 3.0.93

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google",
3
- "version": "3.0.92",
3
+ "version": "3.0.93",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -75,7 +75,7 @@ export class GoogleInteractionsLanguageModel implements LanguageModelV3 {
75
75
 
76
76
  /**
77
77
  * Optional agent name. When provided, the request body sends `agent:` instead
78
- * of `model:` and rejects `tools` / `generation_config` (warned, not thrown).
78
+ * of `model:` and rejects `generation_config` (warned, not thrown).
79
79
  */
80
80
  readonly agent: string | undefined;
81
81
 
@@ -134,13 +134,7 @@ export class GoogleInteractionsLanguageModel implements LanguageModelV3 {
134
134
  let toolsForBody: Array<GoogleInteractionsTool> | undefined;
135
135
  let toolChoiceForBody: GoogleInteractionsToolChoice | undefined;
136
136
 
137
- if (hasTools && isAgent) {
138
- warnings.push({
139
- type: 'other',
140
- message:
141
- 'google.interactions: tools are not supported when an agent is set; tools will be omitted from the request body.',
142
- });
143
- } else if (hasTools) {
137
+ if (hasTools) {
144
138
  const prepared = prepareGoogleInteractionsTools({
145
139
  tools: options.tools,
146
140
  toolChoice: options.toolChoice,