@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.
@@ -384,7 +384,7 @@ declare class GoogleInteractionsLanguageModel implements LanguageModelV4 {
384
384
  readonly modelId: string;
385
385
  /**
386
386
  * Optional agent name. When provided, the request body sends `agent:` instead
387
- * of `model:` and rejects `tools` / `generation_config` (warned, not thrown).
387
+ * of `model:` and rejects `generation_config` (warned, not thrown).
388
388
  */
389
389
  readonly agent: string | undefined;
390
390
  private readonly config;
@@ -5383,12 +5383,7 @@ var GoogleInteractionsLanguageModel = class _GoogleInteractionsLanguageModel {
5383
5383
  const hasTools = options.tools != null && options.tools.length > 0;
5384
5384
  let toolsForBody;
5385
5385
  let toolChoiceForBody;
5386
- if (hasTools && isAgent) {
5387
- warnings.push({
5388
- type: "other",
5389
- message: "google.interactions: tools are not supported when an agent is set; tools will be omitted from the request body."
5390
- });
5391
- } else if (hasTools) {
5386
+ if (hasTools) {
5392
5387
  const prepared = prepareGoogleInteractionsTools({
5393
5388
  tools: options.tools,
5394
5389
  toolChoice: options.toolChoice