@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.
- package/dist/chat-routes/detached-turn.d.ts +2 -1
- package/dist/chat-routes/index.js +3 -3
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-routes/model-failover-stream.d.ts +7 -3
- package/dist/chat-routes/sandbox-producer.d.ts +2 -1
- package/dist/{chunk-UFR4BXCC.js → chunk-GOKFD7ZZ.js} +2 -2
- package/dist/{chunk-DSFMSRWT.js → chunk-HVQPVTKJ.js} +2 -2
- package/dist/chunk-HVQPVTKJ.js.map +1 -0
- package/dist/{chunk-O6MFZVNS.js → chunk-NAMSFODC.js} +4 -4
- package/dist/chunk-NAMSFODC.js.map +1 -0
- package/dist/preset-cloudflare/index.js +2 -2
- package/dist/public-consultation/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-DSFMSRWT.js.map +0 -1
- package/dist/chunk-O6MFZVNS.js.map +0 -1
- /package/dist/{chunk-UFR4BXCC.js.map → chunk-GOKFD7ZZ.js.map} +0 -0
|
@@ -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
|
|
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
|
|
139
|
-
*
|
|
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
|
|
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-
|
|
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-
|
|
450
|
+
//# sourceMappingURL=chunk-GOKFD7ZZ.js.map
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
transformVisibleTextParts,
|
|
64
64
|
withStreamHeartbeat,
|
|
65
65
|
withoutToolList
|
|
66
|
-
} from "./chunk-
|
|
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-
|
|
3750
|
+
//# sourceMappingURL=chunk-HVQPVTKJ.js.map
|