@ai-sdk/google 3.0.91 → 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/CHANGELOG.md +13 -0
- package/dist/index.js +2 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -7
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.js +1 -6
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +1 -6
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/interactions/google-interactions-language-model.ts +2 -8
|
@@ -346,7 +346,7 @@ declare class GoogleInteractionsLanguageModel implements LanguageModelV3 {
|
|
|
346
346
|
readonly modelId: string;
|
|
347
347
|
/**
|
|
348
348
|
* Optional agent name. When provided, the request body sends `agent:` instead
|
|
349
|
-
* of `model:` and rejects `
|
|
349
|
+
* of `model:` and rejects `generation_config` (warned, not thrown).
|
|
350
350
|
*/
|
|
351
351
|
readonly agent: string | undefined;
|
|
352
352
|
private readonly config;
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -346,7 +346,7 @@ declare class GoogleInteractionsLanguageModel implements LanguageModelV3 {
|
|
|
346
346
|
readonly modelId: string;
|
|
347
347
|
/**
|
|
348
348
|
* Optional agent name. When provided, the request body sends `agent:` instead
|
|
349
|
-
* of `model:` and rejects `
|
|
349
|
+
* of `model:` and rejects `generation_config` (warned, not thrown).
|
|
350
350
|
*/
|
|
351
351
|
readonly agent: string | undefined;
|
|
352
352
|
private readonly config;
|
package/dist/internal/index.js
CHANGED
|
@@ -4918,12 +4918,7 @@ var GoogleInteractionsLanguageModel = class {
|
|
|
4918
4918
|
const hasTools = options.tools != null && options.tools.length > 0;
|
|
4919
4919
|
let toolsForBody;
|
|
4920
4920
|
let toolChoiceForBody;
|
|
4921
|
-
if (hasTools
|
|
4922
|
-
warnings.push({
|
|
4923
|
-
type: "other",
|
|
4924
|
-
message: "google.interactions: tools are not supported when an agent is set; tools will be omitted from the request body."
|
|
4925
|
-
});
|
|
4926
|
-
} else if (hasTools) {
|
|
4921
|
+
if (hasTools) {
|
|
4927
4922
|
const prepared = prepareGoogleInteractionsTools({
|
|
4928
4923
|
tools: options.tools,
|
|
4929
4924
|
toolChoice: options.toolChoice
|