🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@ai-sdk/google

Package Overview
Dependencies
Maintainers
3
Versions
565
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/google - npm Package Compare versions

Comparing version
3.0.92
to
3.0.93
+6
-0
CHANGELOG.md
# @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 @@

+1
-1

@@ -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;

{
"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