@tangle-network/agent-app 4.0.32 → 4.0.33

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.
@@ -47,7 +47,8 @@
47
47
  * delivered on the first pass, 8/8 with one re-run, at a cost of 1 extra turn
48
48
  * in 9). Default `0`, so the behavior is unchanged unless a product asks.
49
49
  * - A responsive chain of length 1 costs no extra call or latency and remains
50
- * byte-identical to no failover. A silent chain is now deliberately bounded.
50
+ * byte-identical to no failover. A silent chain of two or more models is
51
+ * bounded by the first-answer deadline; one model keeps only its open deadline.
51
52
  */
52
53
  import { ModelFailoverExhaustedError, type ModelFailoverAttempt } from '../model-resolution/failover.js';
53
54
  import type { ModelPolicy } from '../policy-filters/index.js';
@@ -135,8 +136,11 @@ export interface ModelFailoverStreamOptions {
135
136
  openTimeoutMs?: number;
136
137
  /**
137
138
  * Hard deadline from the source's first lifecycle event to its first
138
- * answer-bearing event. Default 60 seconds. Processing/lifecycle events do
139
- * not commit the attempt and do not extend this deadline.
139
+ * answer-bearing event. Default 60 seconds when the chain has another model
140
+ * to fail over to; a one-model chain has no default deadline, because ending
141
+ * its only attempt loses an answer a slow first token was still bringing.
142
+ * Processing/lifecycle events do not commit the attempt and do not extend
143
+ * this deadline.
140
144
  */
141
145
  firstResponseTimeoutMs?: number;
142
146
  /** Override the commit-point rule. Default {@link isCommittingSandboxEvent}. */
@@ -98,7 +98,8 @@ export interface SandboxChatProducerOptions {
98
98
  * so cold sandbox startup is not mislabeled as an inference failure. */
99
99
  openTimeoutMs?: number;
100
100
  /** Hard deadline after the source's first lifecycle event for the first
101
- * answer-bearing event. Default 60 seconds. Processing/lifecycle events do
101
+ * answer-bearing event. Default 60 seconds when the chain has a model to fail
102
+ * over to, none for a one-model chain. Processing/lifecycle events do
102
103
  * not extend it. */
103
104
  firstResponseTimeoutMs?: number;
104
105
  /** Forward `start`/`status`/`model-processing`/session lifecycle to the
@@ -2,7 +2,7 @@ import {
2
2
  TURN_USAGE_KEYS,
3
3
  addStepFinishUsage,
4
4
  withoutToolList
5
- } from "./chunk-O6MFZVNS.js";
5
+ } from "./chunk-NAMSFODC.js";
6
6
  import {
7
7
  asRecord,
8
8
  asString,
@@ -447,4 +447,4 @@ export {
447
447
  TOOL_ABORTED_ERROR,
448
448
  observeNativeCompletion
449
449
  };
450
- //# sourceMappingURL=chunk-UFR4BXCC.js.map
450
+ //# sourceMappingURL=chunk-GOKFD7ZZ.js.map
@@ -63,7 +63,7 @@ import {
63
63
  transformVisibleTextParts,
64
64
  withStreamHeartbeat,
65
65
  withoutToolList
66
- } from "./chunk-O6MFZVNS.js";
66
+ } from "./chunk-NAMSFODC.js";
67
67
  import {
68
68
  assistantRowIdForTurn,
69
69
  turnTraceUrl
@@ -3747,4 +3747,4 @@ export {
3747
3747
  createChatTurnRoutes,
3748
3748
  streamChatRouteAsSandboxEvents
3749
3749
  };
3750
- //# sourceMappingURL=chunk-DSFMSRWT.js.map
3750
+ //# sourceMappingURL=chunk-HVQPVTKJ.js.map