@ai-sdk/google
Advanced tools
+6
-0
| # @ai-sdk/google | ||
| ## 3.0.93 | ||
| ### Patch Changes | ||
| - cfba690: Allow google.interactions agent requests to include supported tools, including file_search. | ||
| ## 3.0.92 | ||
@@ -4,0 +10,0 @@ |
@@ -349,3 +349,3 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils'; | ||
| * Optional agent name. When provided, the request body sends `agent:` instead | ||
| * of `model:` and rejects `tools` / `generation_config` (warned, not thrown). | ||
| * of `model:` and rejects `generation_config` (warned, not thrown). | ||
| */ | ||
@@ -352,0 +352,0 @@ readonly agent: string | undefined; |
@@ -349,3 +349,3 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils'; | ||
| * Optional agent name. When provided, the request body sends `agent:` instead | ||
| * of `model:` and rejects `tools` / `generation_config` (warned, not thrown). | ||
| * of `model:` and rejects `generation_config` (warned, not thrown). | ||
| */ | ||
@@ -352,0 +352,0 @@ readonly agent: string | undefined; |
+1
-1
| { | ||
| "name": "@ai-sdk/google", | ||
| "version": "3.0.92", | ||
| "version": "3.0.93", | ||
| "license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -78,3 +78,3 @@ import type { | ||
| * Optional agent name. When provided, the request body sends `agent:` instead | ||
| * of `model:` and rejects `tools` / `generation_config` (warned, not thrown). | ||
| * of `model:` and rejects `generation_config` (warned, not thrown). | ||
| */ | ||
@@ -138,9 +138,3 @@ readonly agent: string | undefined; | ||
| if (hasTools && isAgent) { | ||
| warnings.push({ | ||
| type: 'other', | ||
| message: | ||
| 'google.interactions: tools are not supported when an agent is set; tools will be omitted from the request body.', | ||
| }); | ||
| } else if (hasTools) { | ||
| if (hasTools) { | ||
| const prepared = prepareGoogleInteractionsTools({ | ||
@@ -147,0 +141,0 @@ tools: options.tools, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
3079146
-0.08%33700
-0.08%