@ai-sdk/google 3.0.75 → 3.0.78

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.
@@ -478,6 +478,55 @@ export type GoogleInteractionsAgentConfig =
478
478
  collaborative_planning?: boolean;
479
479
  };
480
480
 
481
+ export type GoogleInteractionsGcsSource = {
482
+ type: 'gcs';
483
+ source: string;
484
+ target?: string;
485
+ };
486
+
487
+ export type GoogleInteractionsRepositorySource = {
488
+ type: 'repository';
489
+ source: string;
490
+ target?: string;
491
+ };
492
+
493
+ export type GoogleInteractionsInlineSource = {
494
+ type: 'inline';
495
+ content: string;
496
+ target: string;
497
+ };
498
+
499
+ export type GoogleInteractionsEnvironmentSource =
500
+ | GoogleInteractionsGcsSource
501
+ | GoogleInteractionsRepositorySource
502
+ | GoogleInteractionsInlineSource;
503
+
504
+ export type GoogleInteractionsNetworkAllowlistEntry = {
505
+ domain: string;
506
+ transform?: Array<Record<string, string>>;
507
+ };
508
+
509
+ export type GoogleInteractionsNetworkConfig =
510
+ | 'disabled'
511
+ | { allowlist: Array<GoogleInteractionsNetworkAllowlistEntry> };
512
+
513
+ /**
514
+ * Environment configuration for the agent sandbox.
515
+ *
516
+ * - `"remote"`: provision a fresh sandbox for this call.
517
+ * - any other string: an existing `environment_id` to reuse (forks the
518
+ * previous sandbox so its filesystem and installed packages persist).
519
+ * - object form: provision a fresh sandbox and preload it with `sources`
520
+ * and/or constrain outbound traffic via `network`.
521
+ */
522
+ export type GoogleInteractionsEnvironment =
523
+ | string
524
+ | {
525
+ type: 'remote';
526
+ sources?: Array<GoogleInteractionsEnvironmentSource>;
527
+ network?: GoogleInteractionsNetworkConfig;
528
+ };
529
+
481
530
  export type GoogleInteractionsRequestBody = {
482
531
  model?: string;
483
532
  agent?: string;
@@ -492,6 +541,7 @@ export type GoogleInteractionsRequestBody = {
492
541
  service_tier?: GoogleInteractionsServiceTier;
493
542
  store?: boolean;
494
543
  stream?: boolean;
544
+ environment?: GoogleInteractionsEnvironment;
495
545
  /**
496
546
  * Run the interaction in the background. The POST returns immediately with a
497
547
  * non-terminal status (`in_progress` / `requires_action`); the client must
@@ -22,7 +22,7 @@ const DEFAULT_RETRY_DELAY_MS = 500;
22
22
  * so the existing `buildGoogleInteractionsStreamTransform` can consume them
23
23
  * unchanged.
24
24
  *
25
- * The connection can drop mid-run: deep-research agents idle for long
25
+ * The connection can drop mid-run: long-running agents idle for long
26
26
  * stretches between SSE events and undici's default body timeout terminates
27
27
  * the request with `UND_ERR_BODY_TIMEOUT`. We track the last seen `event_id`
28
28
  * and reconnect with `?last_event_id=<id>` on any unexpected end. After