@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.
@@ -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 `tools` / `generation_config` (warned, not thrown).
349
+ * of `model:` and rejects `generation_config` (warned, not thrown).
350
350
  */
351
351
  readonly agent: string | undefined;
352
352
  private readonly config;
@@ -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 `tools` / `generation_config` (warned, not thrown).
349
+ * of `model:` and rejects `generation_config` (warned, not thrown).
350
350
  */
351
351
  readonly agent: string | undefined;
352
352
  private readonly config;
@@ -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 && isAgent) {
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