@tangle-network/agent-app 0.60.219 → 0.60.221
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/index.js +5 -4
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-routes/turn-routes.d.ts +10 -5
- package/dist/{chunk-MAOTZ77B.js → chunk-A5DGO2XT.js} +2 -2
- package/dist/{chunk-RDLOC7BJ.js → chunk-C7WAGXQN.js} +1 -1
- package/dist/chunk-C7WAGXQN.js.map +1 -0
- package/dist/{chunk-NHCS55QI.js → chunk-DMXEPYB5.js} +2 -1
- package/dist/{chunk-NHCS55QI.js.map → chunk-DMXEPYB5.js.map} +1 -1
- package/dist/chunk-LGMJMCSE.js +157 -0
- package/dist/chunk-LGMJMCSE.js.map +1 -0
- package/dist/{chunk-WDY47GBR.js → chunk-N7WTF5P2.js} +47 -13
- package/dist/chunk-N7WTF5P2.js.map +1 -0
- package/dist/{chunk-WLH4DEB2.js → chunk-OMB4HQ2W.js} +54 -19
- package/dist/chunk-OMB4HQ2W.js.map +1 -0
- package/dist/public-consultation/index.d.ts +1 -1
- package/dist/public-consultation/index.js +2 -1
- package/dist/public-consultation/index.js.map +1 -1
- package/dist/runtime/index.js +2 -2
- package/dist/runtime/router-turn.js +1 -1
- package/dist/sandbox/index.d.ts +4 -3
- package/dist/sandbox/index.js +1 -1
- package/dist/signoff/app-defaults.d.ts +2 -1
- package/dist/signoff/cli.js +1 -1
- package/dist/signoff/index.js +1 -1
- package/dist/turn-trace/index.js +6 -146
- package/dist/turn-trace/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-RDLOC7BJ.js.map +0 -1
- package/dist/chunk-WDY47GBR.js.map +0 -1
- package/dist/chunk-WLH4DEB2.js.map +0 -1
- /package/dist/{chunk-MAOTZ77B.js.map → chunk-A5DGO2XT.js.map} +0 -0
|
@@ -500,6 +500,7 @@ export interface ChatTurnCompleteInput<TContext> {
|
|
|
500
500
|
}
|
|
501
501
|
/** Where a finished turn's trace goes, and the host's labels for its root span. Metadata only: never content. */
|
|
502
502
|
export interface ChatTurnTraceOptions<TContext> {
|
|
503
|
+
/** Default: `createIntelligenceTurnTraceSink({ project: projectId })`, which reads the Sandbox product key from the environment. */
|
|
503
504
|
sink?: TurnTraceSink;
|
|
504
505
|
/** Labels for the root span, e.g. the workspace id. Called once per exported turn. */
|
|
505
506
|
labels?(info: {
|
|
@@ -682,12 +683,16 @@ export interface CreateChatTurnRoutesOptions<TContext = void> {
|
|
|
682
683
|
/** Trace flush handed to `waitUntil` (OTLP export). */
|
|
683
684
|
traceFlush?(context: TContext): Promise<void>;
|
|
684
685
|
/**
|
|
685
|
-
* Where each finished turn's trace goes
|
|
686
|
-
*
|
|
687
|
-
* The
|
|
688
|
-
*
|
|
686
|
+
* Where each finished turn's trace goes. On by default: omit it and every turn goes to Tangle Intelligence under
|
|
687
|
+
* `projectId` (`createIntelligenceTurnTraceSink`); pass `{ sink, labels }` to send it elsewhere or label it.
|
|
688
|
+
* The route always records the turn's trace (`ChatTurnProduceArgs.trace`), reports its summary to `lifecycle`, and
|
|
689
|
+
* writes one `agent_app_turn_trace` log line per turn (first text, coverage, time per kind); this sends the spans on.
|
|
690
|
+
* The sink runs under `waitUntil` after the lifecycle hooks and after the turn lock is released, and its failure never
|
|
691
|
+
* fails a turn. A turn handed to a durable owner (`handoffCompletion`) is exported when this request's live
|
|
692
|
+
* projection ends, failed only when the projection saw an error. `false` is the only opt-out, and
|
|
693
|
+
* `agent-app-signoff defaults` fails it until the app's `signoff.config.mjs` gives the reason.
|
|
689
694
|
*/
|
|
690
|
-
turnTrace?: ChatTurnTraceOptions<TContext
|
|
695
|
+
turnTrace?: ChatTurnTraceOptions<TContext> | false;
|
|
691
696
|
/** Compose the interaction-answer endpoints (`/interactions`). Omit when the
|
|
692
697
|
* product has no sidecar ask channel. */
|
|
693
698
|
interactions?: InteractionAnswerRouteOptions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runRouterTurn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DMXEPYB5.js";
|
|
4
4
|
|
|
5
5
|
// src/runtime/protected-model.ts
|
|
6
6
|
import {
|
|
@@ -219,4 +219,4 @@ export {
|
|
|
219
219
|
createRouterProtectedModelPort,
|
|
220
220
|
runProtectedRouterTurn
|
|
221
221
|
};
|
|
222
|
-
//# sourceMappingURL=chunk-
|
|
222
|
+
//# sourceMappingURL=chunk-A5DGO2XT.js.map
|