@ai-sdk/google 4.0.15 → 4.0.16
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
|
@@ -78,7 +78,7 @@ export class GoogleInteractionsLanguageModel implements LanguageModelV4 {
|
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Optional agent name. When provided, the request body sends `agent:` instead
|
|
81
|
-
* of `model:` and rejects `
|
|
81
|
+
* of `model:` and rejects `generation_config` (warned, not thrown).
|
|
82
82
|
*/
|
|
83
83
|
readonly agent: string | undefined;
|
|
84
84
|
|
|
@@ -158,13 +158,7 @@ export class GoogleInteractionsLanguageModel implements LanguageModelV4 {
|
|
|
158
158
|
let toolsForBody: Array<GoogleInteractionsTool> | undefined;
|
|
159
159
|
let toolChoiceForBody: GoogleInteractionsToolChoice | undefined;
|
|
160
160
|
|
|
161
|
-
if (hasTools
|
|
162
|
-
warnings.push({
|
|
163
|
-
type: 'other',
|
|
164
|
-
message:
|
|
165
|
-
'google.interactions: tools are not supported when an agent is set; tools will be omitted from the request body.',
|
|
166
|
-
});
|
|
167
|
-
} else if (hasTools) {
|
|
161
|
+
if (hasTools) {
|
|
168
162
|
const prepared = prepareGoogleInteractionsTools({
|
|
169
163
|
tools: options.tools,
|
|
170
164
|
toolChoice: options.toolChoice,
|