@tangle-network/agent-app 0.63.33 → 0.63.35
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/hybrid-producer.d.ts +5 -1
- package/dist/chat-routes/index.js +140 -102
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-routes/protected-runtime-producer.d.ts +1 -5
- package/dist/{chunk-4CEIZZTH.js → chunk-KYBE4UYT.js} +9 -4
- package/dist/chunk-KYBE4UYT.js.map +1 -0
- package/dist/public-consultation/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-4CEIZZTH.js.map +0 -1
|
@@ -18,9 +18,5 @@ export interface ProtectedRuntimeChatOptions {
|
|
|
18
18
|
maxToolCalls: number;
|
|
19
19
|
signal?: AbortSignal;
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
22
|
-
* Run a profile as one Router turn under a protected model grant
|
|
23
|
-
* (`runProtectedRouterTurn`), projected through the shared chat projection. The
|
|
24
|
-
* usage is published only from the settled grant.
|
|
25
|
-
*/
|
|
21
|
+
/** Project one protected Router turn, publishing usage only from its settled grant. */
|
|
26
22
|
export declare function createProtectedRuntimeChatProducer(options: ProtectedRuntimeChatOptions): ChatTurnRouteProducer;
|
|
@@ -465,10 +465,15 @@ function createHybridTurnProducer(options) {
|
|
|
465
465
|
signal: stop,
|
|
466
466
|
...box.warm ? { warm: box.warm } : {},
|
|
467
467
|
onFailure: (error, call) => {
|
|
468
|
-
const detail = sandboxRunFailureDetail(error);
|
|
469
|
-
if (call.callId) details.set(call.callId, detail);
|
|
468
|
+
const detail = box.failureDetail ? box.failureDetail(error) : sandboxRunFailureDetail(error);
|
|
469
|
+
if (call.callId && detail) details.set(call.callId, detail);
|
|
470
470
|
if (box.onFailure) box.onFailure(error, call);
|
|
471
|
-
else console.error(JSON.stringify({
|
|
471
|
+
else console.error(JSON.stringify({
|
|
472
|
+
event: "agent_app_sandbox_run_failed",
|
|
473
|
+
callId: call.callId ?? null,
|
|
474
|
+
code: error.code,
|
|
475
|
+
detail: sandboxRunFailureDetail(error)
|
|
476
|
+
}));
|
|
472
477
|
},
|
|
473
478
|
...box.name ? { name: box.name } : {},
|
|
474
479
|
...box.description ? { description: box.description } : {}
|
|
@@ -3943,4 +3948,4 @@ export {
|
|
|
3943
3948
|
createChatTurnRoutes,
|
|
3944
3949
|
streamChatRouteAsSandboxEvents
|
|
3945
3950
|
};
|
|
3946
|
-
//# sourceMappingURL=chunk-
|
|
3951
|
+
//# sourceMappingURL=chunk-KYBE4UYT.js.map
|