@linnlabs/linnkit 0.32.0 → 0.32.2
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/CHANGELOG.md +20 -0
- package/dist/cli.cjs +35 -14
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +35 -14
- package/dist/cli.js.map +1 -1
- package/dist/context-manager/features/context-compaction/definitions/contextCheckpointFormat.d.cts +3 -0
- package/dist/context-manager/features/context-compaction/definitions/contextCheckpointFormat.d.ts +3 -0
- package/dist/context-manager/features/context-compaction/definitions/historySummaryDraft.d.cts +22 -0
- package/dist/context-manager/features/context-compaction/definitions/historySummaryDraft.d.ts +22 -0
- package/dist/context-manager/profiles/agent/config.d.cts +33 -0
- package/dist/context-manager/profiles/agent/config.d.ts +33 -0
- package/dist/context-manager/profiles/agent/context/AgentContextManager.d.cts +132 -0
- package/dist/context-manager/profiles/agent/context/AgentContextManager.d.ts +132 -0
- package/dist/context-manager/profiles/agent/context/ConversationSession.d.cts +131 -0
- package/dist/context-manager/profiles/agent/context/ConversationSession.d.ts +131 -0
- package/dist/context-manager/profiles/agent/context/config.d.cts +191 -0
- package/dist/context-manager/profiles/agent/context/config.d.ts +191 -0
- package/dist/context-manager/profiles/agent/context/index.d.cts +8 -0
- package/dist/context-manager/profiles/agent/context/index.d.ts +8 -0
- package/dist/context-manager/profiles/agent/context/providers/AgentCoreContextProvider.d.cts +52 -0
- package/dist/context-manager/profiles/agent/context/providers/AgentCoreContextProvider.d.ts +52 -0
- package/dist/context-manager/profiles/agent/context/providers/AgentWorkingMemoryProvider.d.cts +50 -0
- package/dist/context-manager/profiles/agent/context/providers/AgentWorkingMemoryProvider.d.ts +50 -0
- package/dist/context-manager/profiles/agent/context/providers/base.d.cts +11 -0
- package/dist/context-manager/profiles/agent/context/providers/base.d.ts +11 -0
- package/dist/context-manager/profiles/agent/context/providers/index.d.cts +12 -0
- package/dist/context-manager/profiles/agent/context/providers/index.d.ts +12 -0
- package/dist/context-manager/profiles/agent/contracts.d.cts +27 -0
- package/dist/context-manager/profiles/agent/contracts.d.ts +27 -0
- package/dist/context-manager/profiles/agent/orchestration/AgentMessageOrchestrator.d.cts +140 -0
- package/dist/context-manager/profiles/agent/orchestration/AgentMessageOrchestrator.d.ts +140 -0
- package/dist/context-manager/profiles/agent/orchestration/index.d.cts +1 -0
- package/dist/context-manager/profiles/agent/orchestration/index.d.ts +1 -0
- package/dist/context-manager/profiles/agent/preprocessors/base.d.cts +17 -0
- package/dist/context-manager/profiles/agent/preprocessors/base.d.ts +17 -0
- package/dist/context-manager/profiles/agent/preprocessors/index.d.cts +117 -0
- package/dist/context-manager/profiles/agent/preprocessors/index.d.ts +117 -0
- package/dist/context-manager/profiles/agent/preprocessors/toolHistoryCompressor.d.cts +47 -0
- package/dist/context-manager/profiles/agent/preprocessors/toolHistoryCompressor.d.ts +47 -0
- package/dist/context-manager/profiles/agent/preprocessors/toolReplayProtocolGuard.d.cts +27 -0
- package/dist/context-manager/profiles/agent/preprocessors/toolReplayProtocolGuard.d.ts +27 -0
- package/dist/context-manager/profiles/agent/tasks/BaseAgentTask.d.cts +43 -0
- package/dist/context-manager/profiles/agent/tasks/BaseAgentTask.d.ts +43 -0
- package/dist/context-manager/profiles/agent/tasks/base.d.cts +18 -0
- package/dist/context-manager/profiles/agent/tasks/base.d.ts +18 -0
- package/dist/context-manager/profiles/agent/tasks/index.d.cts +2 -0
- package/dist/context-manager/profiles/agent/tasks/index.d.ts +2 -0
- package/dist/context-manager/profiles/agent/tools/ToolManager.d.cts +27 -0
- package/dist/context-manager/profiles/agent/tools/ToolManager.d.ts +27 -0
- package/dist/context-manager/profiles/agent/tools/index.d.cts +1 -0
- package/dist/context-manager/profiles/agent/tools/index.d.ts +1 -0
- package/dist/context-manager/profiles/agent/utils/eventConverter.d.cts +15 -0
- package/dist/context-manager/profiles/agent/utils/eventConverter.d.ts +15 -0
- package/dist/context-manager/profiles/agent/utils/index.d.cts +2 -0
- package/dist/context-manager/profiles/agent/utils/index.d.ts +2 -0
- package/dist/context-manager/profiles/agent/utils/toolOutputSummarizer.d.cts +26 -0
- package/dist/context-manager/profiles/agent/utils/toolOutputSummarizer.d.ts +26 -0
- package/dist/context-manager/shared/MessageFormatter.d.cts +55 -0
- package/dist/context-manager/shared/MessageFormatter.d.ts +55 -0
- package/dist/context-manager/shared/agentSpecAdapter.d.cts +63 -0
- package/dist/context-manager/shared/agentSpecAdapter.d.ts +63 -0
- package/dist/context-manager/shared/context-manager-base.d.cts +102 -0
- package/dist/context-manager/shared/context-manager-base.d.ts +102 -0
- package/dist/context-manager/shared/context-pipeline.d.cts +42 -0
- package/dist/context-manager/shared/context-pipeline.d.ts +42 -0
- package/dist/context-manager/shared/context-trace.d.cts +102 -0
- package/dist/context-manager/shared/context-trace.d.ts +102 -0
- package/dist/context-manager/shared/contextPolicyMerge.d.cts +19 -0
- package/dist/context-manager/shared/contextPolicyMerge.d.ts +19 -0
- package/dist/context-manager/shared/contracts/chatLineMessage.d.cts +15 -0
- package/dist/context-manager/shared/contracts/chatLineMessage.d.ts +15 -0
- package/dist/context-manager/shared/fences/FenceRegistry.d.cts +24 -0
- package/dist/context-manager/shared/fences/FenceRegistry.d.ts +24 -0
- package/dist/context-manager/shared/image-input-estimation.d.cts +16 -0
- package/dist/context-manager/shared/image-input-estimation.d.ts +16 -0
- package/dist/context-manager/shared/policies/MustKeepPolicy.d.cts +19 -0
- package/dist/context-manager/shared/policies/MustKeepPolicy.d.ts +19 -0
- package/dist/context-manager/shared/preprocessors/base.d.cts +43 -0
- package/dist/context-manager/shared/preprocessors/base.d.ts +43 -0
- package/dist/context-manager/shared/preprocessors/currentTurnMessageAssembler.d.cts +26 -0
- package/dist/context-manager/shared/preprocessors/currentTurnMessageAssembler.d.ts +26 -0
- package/dist/context-manager/shared/preprocessors/fenceLifetimeManager.d.cts +18 -0
- package/dist/context-manager/shared/preprocessors/fenceLifetimeManager.d.ts +18 -0
- package/dist/context-manager/shared/preprocessors/historyPurification.d.cts +19 -0
- package/dist/context-manager/shared/preprocessors/historyPurification.d.ts +19 -0
- package/dist/context-manager/shared/preprocessors/priority.d.cts +17 -0
- package/dist/context-manager/shared/preprocessors/priority.d.ts +17 -0
- package/dist/context-manager/shared/providers/base.d.cts +106 -0
- package/dist/context-manager/shared/providers/base.d.ts +106 -0
- package/dist/context-manager/shared/providers/registry.d.cts +11 -0
- package/dist/context-manager/shared/providers/registry.d.ts +11 -0
- package/dist/context-manager/shared/token-calibration.d.cts +25 -0
- package/dist/context-manager/shared/token-calibration.d.ts +25 -0
- package/dist/context-manager.d.cts +34 -1559
- package/dist/context-manager.d.ts +34 -1559
- package/dist/contracts/agentSpec.d.cts +869 -0
- package/dist/contracts/agentSpec.d.ts +869 -0
- package/dist/{audit-XsNMTt0-.d.cts → contracts/audit.d.cts} +7 -7
- package/dist/{audit-XsNMTt0-.d.ts → contracts/audit.d.ts} +7 -7
- package/dist/contracts/constants.d.cts +3 -0
- package/dist/contracts/constants.d.ts +3 -0
- package/dist/contracts/contextCompaction.d.cts +43 -0
- package/dist/contracts/contextCompaction.d.ts +43 -0
- package/dist/contracts/contextPolicy.d.cts +1121 -0
- package/dist/contracts/contextPolicy.d.ts +1121 -0
- package/dist/{final-answer-B0_kx5_U.d.cts → contracts/events.d.cts} +422 -425
- package/dist/{final-answer-oOQ_7nPt.d.ts → contracts/events.d.ts} +422 -425
- package/dist/{execution-B7e01ZjW.d.cts → contracts/execution.d.cts} +13 -13
- package/dist/{execution-B7e01ZjW.d.ts → contracts/execution.d.ts} +13 -13
- package/dist/contracts/final-answer.d.cts +7 -0
- package/dist/contracts/final-answer.d.ts +7 -0
- package/dist/contracts/identity/definitions.d.cts +70 -0
- package/dist/contracts/identity/definitions.d.ts +70 -0
- package/dist/contracts/identity/generators.d.cts +33 -0
- package/dist/contracts/identity/generators.d.ts +33 -0
- package/dist/contracts/identity/invariants.d.cts +24 -0
- package/dist/contracts/identity/invariants.d.ts +24 -0
- package/dist/contracts/json.d.cts +12 -0
- package/dist/contracts/json.d.ts +12 -0
- package/dist/{provider-continuation-CTZdCB--.d.cts → contracts/messages.d.cts} +11 -758
- package/dist/{provider-continuation-CTZdCB--.d.ts → contracts/messages.d.ts} +11 -758
- package/dist/contracts/provider-continuation.d.cts +609 -0
- package/dist/contracts/provider-continuation.d.ts +609 -0
- package/dist/contracts/reasoning.d.cts +77 -0
- package/dist/contracts/reasoning.d.ts +77 -0
- package/dist/contracts/resource-ref.d.cts +73 -0
- package/dist/contracts/resource-ref.d.ts +73 -0
- package/dist/contracts/runtime-status.d.cts +8 -0
- package/dist/contracts/runtime-status.d.ts +8 -0
- package/dist/contracts/sse-framing.d.cts +28 -0
- package/dist/contracts/sse-framing.d.ts +28 -0
- package/dist/{index-Cp1_oUj0.d.ts → contracts/sse.d.cts} +455 -811
- package/dist/{index-JYf6n2Ik.d.cts → contracts/sse.d.ts} +455 -811
- package/dist/contracts/sub-run-trace-payload.d.cts +187 -0
- package/dist/contracts/sub-run-trace-payload.d.ts +187 -0
- package/dist/{summarization-CMMLhaCe.d.ts → contracts/summarization.d.cts} +2 -2
- package/dist/{summarization-kLeweZ5-.d.cts → contracts/summarization.d.ts} +2 -2
- package/dist/contracts/token-accounting.d.cts +1177 -0
- package/dist/contracts/token-accounting.d.ts +1177 -0
- package/dist/{token-calibration-GtFyMJtM.d.cts → contracts/token-calibration.d.cts} +1 -42
- package/dist/{token-calibration-GtFyMJtM.d.ts → contracts/token-calibration.d.ts} +1 -42
- package/dist/{reasoning-bffu9R2B.d.cts → contracts/token-usage.d.cts} +9 -84
- package/dist/{reasoning-bffu9R2B.d.ts → contracts/token-usage.d.ts} +9 -84
- package/dist/contracts.d.cts +24 -10
- package/dist/contracts.d.ts +24 -10
- package/dist/index.cjs +35 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -77
- package/dist/index.d.ts +14 -77
- package/dist/index.js +35 -14
- package/dist/index.js.map +1 -1
- package/dist/ports/agent-invocation.d.cts +42 -0
- package/dist/ports/agent-invocation.d.ts +42 -0
- package/dist/{audit-DnuOSwWE.d.ts → ports/audit.d.cts} +2 -2
- package/dist/{audit-C9LPbPib.d.cts → ports/audit.d.ts} +2 -2
- package/dist/ports/canonical-inference.d.cts +135 -0
- package/dist/ports/canonical-inference.d.ts +135 -0
- package/dist/ports/llm-call.d.cts +109 -0
- package/dist/ports/llm-call.d.ts +109 -0
- package/dist/ports/llm-input-materialization.d.cts +69 -0
- package/dist/ports/llm-input-materialization.d.ts +69 -0
- package/dist/{token-counter-BjiHQEJ-.d.ts → ports/token-counter.d.cts} +3 -3
- package/dist/{token-counter-DiGIoaq2.d.cts → ports/token-counter.d.ts} +3 -3
- package/dist/{tokenizer-yIFTTc-W.d.ts → ports/tokenizer.d.cts} +2 -2
- package/dist/{tokenizer-Dz5Y3KT0.d.cts → ports/tokenizer.d.ts} +2 -2
- package/dist/ports/tool-schema.d.cts +30 -0
- package/dist/ports/tool-schema.d.ts +30 -0
- package/dist/ports/usage-normalizer.d.cts +16 -0
- package/dist/ports/usage-normalizer.d.ts +16 -0
- package/dist/ports.d.cts +10 -9
- package/dist/ports.d.ts +10 -9
- package/dist/quickstart/defineAgent.d.cts +12 -0
- package/dist/quickstart/defineAgent.d.ts +12 -0
- package/dist/quickstart/defineConfig.d.cts +7 -0
- package/dist/quickstart/defineConfig.d.ts +7 -0
- package/dist/quickstart/runAgent.d.cts +12 -0
- package/dist/quickstart/runAgent.d.ts +12 -0
- package/dist/quickstart/toolRuntime.d.cts +14 -0
- package/dist/quickstart/toolRuntime.d.ts +14 -0
- package/dist/{runAgent-jxZ0uNto.d.ts → quickstart/types.d.cts} +10 -28
- package/dist/{runAgent-QiBiFXHR.d.cts → quickstart/types.d.ts} +10 -28
- package/dist/quickstart.cjs +35 -14
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.d.cts +5 -23
- package/dist/quickstart.d.ts +5 -23
- package/dist/quickstart.js +35 -14
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel/audit/compositeAudit.d.cts +23 -0
- package/dist/runtime-kernel/audit/compositeAudit.d.ts +23 -0
- package/dist/runtime-kernel/audit/consoleAudit.d.cts +10 -0
- package/dist/runtime-kernel/audit/consoleAudit.d.ts +10 -0
- package/dist/runtime-kernel/audit/emitAudit.d.cts +31 -0
- package/dist/runtime-kernel/audit/emitAudit.d.ts +31 -0
- package/dist/runtime-kernel/audit/eventStoreAudit.d.cts +27 -0
- package/dist/runtime-kernel/audit/eventStoreAudit.d.ts +27 -0
- package/dist/runtime-kernel/audit/fileAudit.d.cts +22 -0
- package/dist/runtime-kernel/audit/fileAudit.d.ts +22 -0
- package/dist/runtime-kernel/audit/index.d.cts +6 -0
- package/dist/runtime-kernel/audit/index.d.ts +6 -0
- package/dist/runtime-kernel/audit/noopAudit.d.cts +5 -0
- package/dist/runtime-kernel/audit/noopAudit.d.ts +5 -0
- package/dist/runtime-kernel/child-run-trace/childRunParentTraceProjection.d.cts +26 -0
- package/dist/runtime-kernel/child-run-trace/childRunParentTraceProjection.d.ts +26 -0
- package/dist/runtime-kernel/child-run-trace/index.d.cts +4 -0
- package/dist/runtime-kernel/child-run-trace/index.d.ts +4 -0
- package/dist/runtime-kernel/child-run-trace/projectChildRuntimeEventToSubRunTrace.d.cts +10 -0
- package/dist/runtime-kernel/child-run-trace/projectChildRuntimeEventToSubRunTrace.d.ts +10 -0
- package/dist/runtime-kernel/child-run-trace/runtimeEventSubRunTracePublisher.d.cts +47 -0
- package/dist/runtime-kernel/child-run-trace/runtimeEventSubRunTracePublisher.d.ts +47 -0
- package/dist/runtime-kernel/child-run-trace/subrunTrace.types.d.cts +81 -0
- package/dist/runtime-kernel/child-run-trace/subrunTrace.types.d.ts +81 -0
- package/dist/runtime-kernel/child-runs/childRunInvoker.d.cts +101 -0
- package/dist/runtime-kernel/child-runs/childRunInvoker.d.ts +101 -0
- package/dist/runtime-kernel/child-runs/historyPolicy.d.cts +9 -0
- package/dist/runtime-kernel/child-runs/historyPolicy.d.ts +9 -0
- package/dist/runtime-kernel/child-runs/index.d.cts +3 -0
- package/dist/runtime-kernel/child-runs/index.d.ts +3 -0
- package/dist/runtime-kernel/child-runs/types.d.cts +82 -0
- package/dist/runtime-kernel/child-runs/types.d.ts +82 -0
- package/dist/runtime-kernel/enrichment/index.d.cts +2 -0
- package/dist/runtime-kernel/enrichment/index.d.ts +2 -0
- package/dist/runtime-kernel/enrichment/registry.d.cts +25 -0
- package/dist/runtime-kernel/enrichment/registry.d.ts +25 -0
- package/dist/runtime-kernel/enrichment/types.d.cts +83 -0
- package/dist/runtime-kernel/enrichment/types.d.ts +83 -0
- package/dist/runtime-kernel/events/agent-to-runtime.d.cts +6 -0
- package/dist/runtime-kernel/events/agent-to-runtime.d.ts +6 -0
- package/dist/{agentEvents-yvamy9xt.d.cts → runtime-kernel/events/agentEvents.d.cts} +33 -32
- package/dist/{agentEvents-DhXdKeXD.d.ts → runtime-kernel/events/agentEvents.d.ts} +33 -32
- package/dist/runtime-kernel/events/eventGovernance.d.cts +47 -0
- package/dist/runtime-kernel/events/eventGovernance.d.ts +47 -0
- package/dist/runtime-kernel/events/eventMappers.d.cts +41 -0
- package/dist/runtime-kernel/events/eventMappers.d.ts +41 -0
- package/dist/runtime-kernel/events/finalAnswerAssembler.d.cts +27 -0
- package/dist/runtime-kernel/events/finalAnswerAssembler.d.ts +27 -0
- package/dist/runtime-kernel/events/finalAnswerCompletion.d.cts +6 -0
- package/dist/runtime-kernel/events/finalAnswerCompletion.d.ts +6 -0
- package/dist/runtime-kernel/events/provider-sidecar.d.cts +33 -0
- package/dist/runtime-kernel/events/provider-sidecar.d.ts +33 -0
- package/dist/runtime-kernel/events/runtime-to-ai-message.d.cts +14 -0
- package/dist/runtime-kernel/events/runtime-to-ai-message.d.ts +14 -0
- package/dist/runtime-kernel/events.d.cts +7 -5
- package/dist/runtime-kernel/events.d.ts +7 -5
- package/dist/runtime-kernel/execution/event-bus.d.cts +52 -0
- package/dist/runtime-kernel/execution/event-bus.d.ts +52 -0
- package/dist/runtime-kernel/execution/eventBusEventPersistence.d.cts +40 -0
- package/dist/runtime-kernel/execution/eventBusEventPersistence.d.ts +40 -0
- package/dist/runtime-kernel/execution/index.d.cts +5 -0
- package/dist/runtime-kernel/execution/index.d.ts +5 -0
- package/dist/runtime-kernel/execution/runtimeErrorEventFactory.d.cts +46 -0
- package/dist/runtime-kernel/execution/runtimeErrorEventFactory.d.ts +46 -0
- package/dist/runtime-kernel/execution/runtimeEventPublisher.d.cts +34 -0
- package/dist/runtime-kernel/execution/runtimeEventPublisher.d.ts +34 -0
- package/dist/runtime-kernel/execution/sequencer.d.cts +69 -0
- package/dist/runtime-kernel/execution/sequencer.d.ts +69 -0
- package/dist/runtime-kernel/graph-engine/checkpointer/base.d.cts +59 -0
- package/dist/runtime-kernel/graph-engine/checkpointer/base.d.ts +59 -0
- package/dist/runtime-kernel/graph-engine/checkpointer/memoryCheckpointer.d.cts +14 -0
- package/dist/runtime-kernel/graph-engine/checkpointer/memoryCheckpointer.d.ts +14 -0
- package/dist/runtime-kernel/graph-engine/definitions/primaryPromptCapacityError.d.cts +22 -0
- package/dist/runtime-kernel/graph-engine/definitions/primaryPromptCapacityError.d.ts +22 -0
- package/dist/runtime-kernel/graph-engine/engine.d.cts +64 -0
- package/dist/runtime-kernel/graph-engine/engine.d.ts +64 -0
- package/dist/runtime-kernel/graph-engine/event-store/base.d.cts +26 -0
- package/dist/runtime-kernel/graph-engine/event-store/base.d.ts +26 -0
- package/dist/runtime-kernel/graph-engine/event-store/memoryEventStore.d.cts +14 -0
- package/dist/runtime-kernel/graph-engine/event-store/memoryEventStore.d.ts +14 -0
- package/dist/runtime-kernel/graph-engine/executor.d.cts +59 -0
- package/dist/runtime-kernel/graph-engine/executor.d.ts +59 -0
- package/dist/runtime-kernel/graph-engine/executorContextBuilder.d.cts +104 -0
- package/dist/runtime-kernel/graph-engine/executorContextBuilder.d.ts +104 -0
- package/dist/runtime-kernel/graph-engine/functions/createHostToolCallBootstrap.d.cts +41 -0
- package/dist/runtime-kernel/graph-engine/functions/createHostToolCallBootstrap.d.ts +41 -0
- package/dist/runtime-kernel/graph-engine/functions/engineStateSnapshot.d.cts +23 -0
- package/dist/runtime-kernel/graph-engine/functions/engineStateSnapshot.d.ts +23 -0
- package/dist/runtime-kernel/graph-engine/functions/evaluatePrimaryPromptCapacity.d.cts +15 -0
- package/dist/runtime-kernel/graph-engine/functions/evaluatePrimaryPromptCapacity.d.ts +15 -0
- package/dist/runtime-kernel/graph-engine/functions/runtimeFailureFact.d.cts +7 -0
- package/dist/runtime-kernel/graph-engine/functions/runtimeFailureFact.d.ts +7 -0
- package/dist/runtime-kernel/graph-engine/index.d.cts +18 -0
- package/dist/runtime-kernel/graph-engine/index.d.ts +18 -0
- package/dist/runtime-kernel/graph-engine/nodes/llmNode.d.cts +26 -0
- package/dist/runtime-kernel/graph-engine/nodes/llmNode.d.ts +26 -0
- package/dist/runtime-kernel/graph-engine/nodes/llmNode.eventBridge.d.cts +6 -0
- package/dist/runtime-kernel/graph-engine/nodes/llmNode.eventBridge.d.ts +6 -0
- package/dist/runtime-kernel/graph-engine/nodes/toolNode.d.cts +44 -0
- package/dist/runtime-kernel/graph-engine/nodes/toolNode.d.ts +44 -0
- package/dist/runtime-kernel/graph-engine/nodes/userNode.d.cts +8 -0
- package/dist/runtime-kernel/graph-engine/nodes/userNode.d.ts +8 -0
- package/dist/runtime-kernel/graph-engine/nodes/waitUserNode.d.cts +15 -0
- package/dist/runtime-kernel/graph-engine/nodes/waitUserNode.d.ts +15 -0
- package/dist/runtime-kernel/graph-engine/tick-pipeline/types.d.cts +57 -0
- package/dist/runtime-kernel/graph-engine/tick-pipeline/types.d.ts +57 -0
- package/dist/runtime-kernel/graph-engine/types.d.cts +143 -0
- package/dist/runtime-kernel/graph-engine/types.d.ts +143 -0
- package/dist/runtime-kernel/llm/caller.d.cts +50 -0
- package/dist/runtime-kernel/llm/caller.d.ts +50 -0
- package/dist/runtime-kernel/llm/canonical-inference/definitions/canonicalInferenceStreamState.d.cts +28 -0
- package/dist/runtime-kernel/llm/canonical-inference/definitions/canonicalInferenceStreamState.d.ts +28 -0
- package/dist/runtime-kernel/llm/canonical-inference/functions/advanceCanonicalInferenceStreamState.d.cts +6 -0
- package/dist/runtime-kernel/llm/canonical-inference/functions/advanceCanonicalInferenceStreamState.d.ts +6 -0
- package/dist/runtime-kernel/llm/canonical-inference/orchestration/consumeCanonicalInferenceStream.d.cts +6 -0
- package/dist/runtime-kernel/llm/canonical-inference/orchestration/consumeCanonicalInferenceStream.d.ts +6 -0
- package/dist/runtime-kernel/llm/definitions/llmCallInvocationContext.d.cts +29 -0
- package/dist/runtime-kernel/llm/definitions/llmCallInvocationContext.d.ts +29 -0
- package/dist/runtime-kernel/llm/definitions/llmFallbackObserver.d.cts +26 -0
- package/dist/runtime-kernel/llm/definitions/llmFallbackObserver.d.ts +26 -0
- package/dist/runtime-kernel/llm/functions/evaluateFallbackPromptCapacity.d.cts +9 -0
- package/dist/runtime-kernel/llm/functions/evaluateFallbackPromptCapacity.d.ts +9 -0
- package/dist/runtime-kernel/llm/index.d.cts +22 -0
- package/dist/runtime-kernel/llm/index.d.ts +22 -0
- package/dist/runtime-kernel/llm/input-capabilities/definitions/modelInputCapability.d.cts +24 -0
- package/dist/runtime-kernel/llm/input-capabilities/definitions/modelInputCapability.d.ts +24 -0
- package/dist/runtime-kernel/llm/input-capabilities/definitions/modelInputCapabilityError.d.cts +31 -0
- package/dist/runtime-kernel/llm/input-capabilities/definitions/modelInputCapabilityError.d.ts +31 -0
- package/dist/runtime-kernel/llm/input-capabilities/functions/createModelInputCompatibilityError.d.cts +13 -0
- package/dist/runtime-kernel/llm/input-capabilities/functions/createModelInputCompatibilityError.d.ts +13 -0
- package/dist/runtime-kernel/llm/input-capabilities/functions/deriveModelInputRequirement.d.cts +6 -0
- package/dist/runtime-kernel/llm/input-capabilities/functions/deriveModelInputRequirement.d.ts +6 -0
- package/dist/runtime-kernel/llm/input-capabilities/functions/evaluateModelInputCompatibility.d.cts +7 -0
- package/dist/runtime-kernel/llm/input-capabilities/functions/evaluateModelInputCompatibility.d.ts +7 -0
- package/dist/runtime-kernel/llm/input-capabilities/orchestration/assertModelInputCompatibility.d.cts +10 -0
- package/dist/runtime-kernel/llm/input-capabilities/orchestration/assertModelInputCompatibility.d.ts +10 -0
- package/dist/runtime-kernel/llm/modelCatalog.d.cts +62 -0
- package/dist/runtime-kernel/llm/modelCatalog.d.ts +62 -0
- package/dist/runtime-kernel/llm/modelResolver.d.cts +40 -0
- package/dist/runtime-kernel/llm/modelResolver.d.ts +40 -0
- package/dist/runtime-kernel/llm/policies/defaultPolicyEngine.d.cts +15 -0
- package/dist/runtime-kernel/llm/policies/defaultPolicyEngine.d.ts +15 -0
- package/dist/runtime-kernel/llm/policies/policyEngine.d.cts +18 -0
- package/dist/runtime-kernel/llm/policies/policyEngine.d.ts +18 -0
- package/dist/runtime-kernel/llm/policies/types.d.cts +27 -0
- package/dist/runtime-kernel/llm/policies/types.d.ts +27 -0
- package/dist/runtime-kernel/llm/request-builder.d.cts +22 -0
- package/dist/runtime-kernel/llm/request-builder.d.ts +22 -0
- package/dist/runtime-kernel/llm/usage-telemetry.d.cts +17 -0
- package/dist/runtime-kernel/llm/usage-telemetry.d.ts +17 -0
- package/dist/runtime-kernel/run-context/index.d.cts +1 -0
- package/dist/runtime-kernel/run-context/index.d.ts +1 -0
- package/dist/runtime-kernel/run-context/types.d.cts +44 -0
- package/dist/runtime-kernel/run-context/types.d.ts +44 -0
- package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.cts +131 -0
- package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.ts +131 -0
- package/dist/runtime-kernel/run-supervisor/index.d.cts +6 -0
- package/dist/runtime-kernel/run-supervisor/index.d.ts +6 -0
- package/dist/runtime-kernel/run-supervisor/memoryRunRegistryStore.d.cts +15 -0
- package/dist/runtime-kernel/run-supervisor/memoryRunRegistryStore.d.ts +15 -0
- package/dist/runtime-kernel/run-supervisor/runErrors.d.cts +24 -0
- package/dist/runtime-kernel/run-supervisor/runErrors.d.ts +24 -0
- package/dist/runtime-kernel/run-supervisor/runHandle.d.cts +155 -0
- package/dist/runtime-kernel/run-supervisor/runHandle.d.ts +155 -0
- package/dist/runtime-kernel/run-supervisor/runRegistryStorePort.d.cts +47 -0
- package/dist/runtime-kernel/run-supervisor/runRegistryStorePort.d.ts +47 -0
- package/dist/runtime-kernel/run-supervisor/runSupervisor.d.cts +57 -0
- package/dist/runtime-kernel/run-supervisor/runSupervisor.d.ts +57 -0
- package/dist/runtime-kernel/system-reminder/apply.d.cts +38 -0
- package/dist/runtime-kernel/system-reminder/apply.d.ts +38 -0
- package/dist/runtime-kernel/system-reminder/helpers.d.cts +11 -0
- package/dist/runtime-kernel/system-reminder/helpers.d.ts +11 -0
- package/dist/runtime-kernel/system-reminder/index.d.cts +7 -0
- package/dist/runtime-kernel/system-reminder/index.d.ts +7 -0
- package/dist/runtime-kernel/system-reminder/registry.d.cts +17 -0
- package/dist/runtime-kernel/system-reminder/registry.d.ts +17 -0
- package/dist/runtime-kernel/system-reminder/rules.d.cts +20 -0
- package/dist/runtime-kernel/system-reminder/rules.d.ts +20 -0
- package/dist/runtime-kernel/system-reminder/templates.d.cts +10 -0
- package/dist/runtime-kernel/system-reminder/templates.d.ts +10 -0
- package/dist/runtime-kernel/system-reminder/triggers.d.cts +10 -0
- package/dist/runtime-kernel/system-reminder/triggers.d.ts +10 -0
- package/dist/runtime-kernel/system-reminder/types.d.cts +46 -0
- package/dist/runtime-kernel/system-reminder/types.d.ts +46 -0
- package/dist/runtime-kernel/telemetry/index.d.cts +3 -0
- package/dist/runtime-kernel/telemetry/index.d.ts +3 -0
- package/dist/runtime-kernel/telemetry/noopTelemetry.d.cts +5 -0
- package/dist/runtime-kernel/telemetry/noopTelemetry.d.ts +5 -0
- package/dist/runtime-kernel/telemetry/telemetryEvents.d.cts +5 -0
- package/dist/runtime-kernel/telemetry/telemetryEvents.d.ts +5 -0
- package/dist/runtime-kernel/telemetry/telemetryPort.d.cts +95 -0
- package/dist/runtime-kernel/telemetry/telemetryPort.d.ts +95 -0
- package/dist/runtime-kernel/testkit/defaultGraphExecutor.d.cts +23 -0
- package/dist/runtime-kernel/testkit/defaultGraphExecutor.d.ts +23 -0
- package/dist/runtime-kernel/testkit/graphLoopHarness.d.cts +49 -0
- package/dist/runtime-kernel/testkit/graphLoopHarness.d.ts +49 -0
- package/dist/runtime-kernel/token-accounting/functions.d.cts +27 -0
- package/dist/runtime-kernel/token-accounting/functions.d.ts +27 -0
- package/dist/runtime-kernel/token-accounting/index.d.cts +1 -0
- package/dist/runtime-kernel/token-accounting/index.d.ts +1 -0
- package/dist/runtime-kernel/tools/argNormalizer.d.cts +10 -0
- package/dist/runtime-kernel/tools/argNormalizer.d.ts +10 -0
- package/dist/runtime-kernel/tools/conversationView.d.cts +22 -0
- package/dist/runtime-kernel/tools/conversationView.d.ts +22 -0
- package/dist/runtime-kernel/tools/idempotency/toolIdempotency.d.cts +25 -0
- package/dist/runtime-kernel/tools/idempotency/toolIdempotency.d.ts +25 -0
- package/dist/runtime-kernel/tools/index.d.cts +15 -0
- package/dist/runtime-kernel/tools/index.d.ts +15 -0
- package/dist/runtime-kernel/tools/model-input/definitions/toolModelInput.d.cts +51 -0
- package/dist/runtime-kernel/tools/model-input/definitions/toolModelInput.d.ts +51 -0
- package/dist/runtime-kernel/tools/model-input/definitions/toolModelInputPolicy.d.cts +17 -0
- package/dist/runtime-kernel/tools/model-input/definitions/toolModelInputPolicy.d.ts +17 -0
- package/dist/runtime-kernel/tools/model-input/functions/parseToolModelInputDeclaration.d.cts +17 -0
- package/dist/runtime-kernel/tools/model-input/functions/parseToolModelInputDeclaration.d.ts +17 -0
- package/dist/runtime-kernel/tools/model-input/orchestration/resolveToolModelInput.d.cts +16 -0
- package/dist/runtime-kernel/tools/model-input/orchestration/resolveToolModelInput.d.ts +16 -0
- package/dist/runtime-kernel/tools/ports.d.cts +119 -0
- package/dist/runtime-kernel/tools/ports.d.ts +119 -0
- package/dist/runtime-kernel/tools/schema/functions/assertToolParameterSchema.d.cts +15 -0
- package/dist/runtime-kernel/tools/schema/functions/assertToolParameterSchema.d.ts +15 -0
- package/dist/runtime-kernel/tools/toolContextPatch.d.cts +14 -0
- package/dist/runtime-kernel/tools/toolContextPatch.d.ts +14 -0
- package/dist/runtime-kernel/tools/toolContextRuntime.d.cts +37 -0
- package/dist/runtime-kernel/tools/toolContextRuntime.d.ts +37 -0
- package/dist/runtime-kernel/tools/toolContracts.d.cts +109 -0
- package/dist/runtime-kernel/tools/toolContracts.d.ts +109 -0
- package/dist/runtime-kernel/tools/toolExecutionContext.d.cts +104 -0
- package/dist/runtime-kernel/tools/toolExecutionContext.d.ts +104 -0
- package/dist/runtime-kernel/tools/ui-types.d.cts +72 -0
- package/dist/runtime-kernel/tools/ui-types.d.ts +72 -0
- package/dist/runtime-kernel.cjs +35 -14
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.d.cts +106 -20
- package/dist/runtime-kernel.d.ts +106 -20
- package/dist/runtime-kernel.js +35 -14
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/shared/defaultTokenizerPort.d.cts +29 -0
- package/dist/shared/defaultTokenizerPort.d.ts +29 -0
- package/dist/shared/errorClassifier.d.cts +42 -0
- package/dist/shared/errorClassifier.d.ts +42 -0
- package/dist/shared/llmAuditProjection.d.cts +11 -0
- package/dist/shared/llmAuditProjection.d.ts +11 -0
- package/dist/shared/llmAuditRecorder.d.cts +44 -0
- package/dist/shared/llmAuditRecorder.d.ts +44 -0
- package/dist/shared/llmImageInputError.d.cts +34 -0
- package/dist/shared/llmImageInputError.d.ts +34 -0
- package/dist/shared/llmTelemetryContext.d.cts +52 -0
- package/dist/shared/llmTelemetryContext.d.ts +52 -0
- package/dist/shared/logger.d.cts +12 -0
- package/dist/shared/logger.d.ts +12 -0
- package/dist/{prompt-budget-yciFkC9U.d.cts → shared/prompt-budget.d.cts} +2 -1
- package/dist/{prompt-budget-yciFkC9U.d.ts → shared/prompt-budget.d.ts} +2 -1
- package/dist/testkit/agent-harness/assertions.d.cts +10 -0
- package/dist/testkit/agent-harness/assertions.d.ts +10 -0
- package/dist/testkit/agent-harness/scriptedInferenceHarness.d.cts +52 -0
- package/dist/testkit/agent-harness/scriptedInferenceHarness.d.ts +52 -0
- package/dist/testkit/context-harness/invariants/index.d.cts +7 -0
- package/dist/testkit/context-harness/invariants/index.d.ts +7 -0
- package/dist/testkit/context-harness/invariants/types.d.cts +32 -0
- package/dist/testkit/context-harness/invariants/types.d.ts +32 -0
- package/dist/testkit/context-harness/replayHarness.d.cts +18 -0
- package/dist/testkit/context-harness/replayHarness.d.ts +18 -0
- package/dist/testkit/mocks/tokenizerPort.d.cts +17 -0
- package/dist/testkit/mocks/tokenizerPort.d.ts +17 -0
- package/dist/testkit/run-harness/collectingAuditPort.d.cts +21 -0
- package/dist/testkit/run-harness/collectingAuditPort.d.ts +21 -0
- package/dist/testkit/run-harness/invariants/index.d.cts +7 -0
- package/dist/testkit/run-harness/invariants/index.d.ts +7 -0
- package/dist/testkit/run-harness/invariants/types.d.cts +48 -0
- package/dist/testkit/run-harness/invariants/types.d.ts +48 -0
- package/dist/testkit/run-harness/mockTelemetryPort.d.cts +35 -0
- package/dist/testkit/run-harness/mockTelemetryPort.d.ts +35 -0
- package/dist/testkit/run-harness/runSupervisorHarness.d.cts +60 -0
- package/dist/testkit/run-harness/runSupervisorHarness.d.ts +60 -0
- package/dist/testkit/tool-fixtures/toolContext.d.cts +19 -0
- package/dist/testkit/tool-fixtures/toolContext.d.ts +19 -0
- package/dist/testkit.cjs +35 -14
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.d.cts +17 -277
- package/dist/testkit.d.ts +17 -277
- package/dist/testkit.js +35 -14
- package/dist/testkit.js.map +1 -1
- package/package.json +6 -4
- package/dist/base-DRRrRhxS.d.cts +0 -216
- package/dist/base-DVyQIl_d.d.ts +0 -216
- package/dist/defaultGraphExecutor-Chr16eYO.d.cts +0 -914
- package/dist/defaultGraphExecutor-hT7dchpC.d.ts +0 -914
- package/dist/index-1pE6gSpV.d.cts +0 -172
- package/dist/index-C2PSqU1I.d.cts +0 -1971
- package/dist/index-CZMXtw4h.d.ts +0 -1971
- package/dist/index-D_csW7Zl.d.ts +0 -172
- package/dist/index-DpSWZ1L6.d.ts +0 -67
- package/dist/index-oCM3XEu2.d.cts +0 -67
- package/dist/llm-input-materialization-Vce5Swvc.d.ts +0 -366
- package/dist/llm-input-materialization-r-V3n9U-.d.cts +0 -366
- package/dist/runHandle--l0kE205.d.cts +0 -490
- package/dist/runHandle-ouLd6Tgp.d.ts +0 -490
- package/dist/token-accounting-19cXG7hM.d.cts +0 -3342
- package/dist/token-accounting-CVW37Uri.d.ts +0 -3342
- package/dist/toolContracts--KrHHNCY.d.cts +0 -424
- package/dist/toolContracts-BQ4kIso_.d.ts +0 -424
|
@@ -1,70 +1,7 @@
|
|
|
1
|
-
import { c as RunId, T as ToolCallId, S as SubrunId, d as TurnId, e as RuntimeEventId, f as AnswerSegmentId, g as SerializableJsonValue, h as ThoughtMessageId, A as AiMessage, i as AiMessageId, j as AiMessageIdSchema, k as AnswerSegmentIdSchema, b as AssistantMessage, a as AssistantReplayPart, l as AssistantReplayParts, m as AuditEnvelopeId, n as AuditEnvelopeIdSchema, C as ContextLedgerEntryId, o as ContextLedgerEntryIdSchema, p as ControlTargetReferenceId, q as ControlTargetReferenceIdSchema, r as ConversationId, s as ConversationIdSchema, E as ExecutionId, t as ExecutionIdSchema, H as HistoryMessageReferenceId, u as HistoryMessageReferenceIdSchema, v as HistorySummaryMeta, I as InteractionId, w as InteractionIdSchema, O as ObservationTruncationMeta, x as PersistentMetadata, P as ProviderContinuation, y as ProviderContinuationProducer, z as ProviderContinuations, B as ResumeToken, D as ResumeTokenSchema, F as RunIdSchema, G as RunResumeClaimId, J as RunResumeClaimIdSchema, K as RuntimeEventIdSchema, R as RuntimeResourceRef, L as RuntimeResourceRefs, M as SerializableJsonRecord, N as SourceEventId, Q as SourceEventIdSchema, U as SubrunIdSchema, V as SystemMessage, W as TaskTrackingMeta, X as ThoughtMessageIdSchema, Y as ToolCallIdSchema, Z as ToolCallWire, _ as ToolCallsMeta, $ as ToolMessage, a0 as ToolOutputMeta, a1 as TraceId, a2 as TraceIdSchema, a3 as TurnIdSchema, a4 as UserMessage, a5 as createAssistantMessage, a6 as createHistorySummaryMessage, a7 as createSystemMessage, a8 as createToolMessage, a9 as createUserMessage, aa as hasToolCalls, ab as isAssistantMessage, ac as isHistorySummaryMessage, ad as isSystemMessage, ae as isToolMessage, af as isUserMessage, ag as toSerializableJsonRecord, ah as toSerializableJsonValue, ai as validateAiMessage, aj as validateHistorySummaryMeta } from './provider-continuation-CTZdCB--.js';
|
|
2
|
-
import { g as AgentCapability, c as AgentSpec, h as AgentSpecAuditConfig, i as AgentSpecBudgetPolicy, j as AgentSpecContextCompactionPolicy, d as AgentSpecContextPolicy, e as AgentSpecContextPolicyInput, a as AgentSpecContextTracePolicy, k as AgentSpecMessageType, l as AgentSpecMustKeepPolicy, m as AgentSpecMustKeepTruncationRule, n as AgentSpecSystemReminderExtraRule, b as AgentSpecSystemReminderPolicy, o as AgentSpecSystemReminderTrigger, f as AgentSpecTokenEstimationPolicy, p as AgentSpecToolHistoryPolicy, q as AgentSpecToolObservationGovernancePolicy, A as AgentSpecToolOutputPolicy, r as AgentSpecWorkingMemoryPolicy, s as ContextComponentTokenLedgerEntry, C as ContextTokenComponent, t as ContextTokenComponentKind, u as CostBreakdown, L as LlmUsageTokenLedgerEntry, R as RunTokenUsageAggregate, S as SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS, v as SubRunTraceKind, w as SubRunTracePayload, x as SubRunTraceToolCallDecision, T as TokenCostComponent, y as TokenLedgerAggregate, z as TokenLedgerEntry, B as TokenLedgerEntryKind, D as TokenPricing, E as TokenUsageTotals, F as ToolBindingSpec, G as defineContextPolicy, H as validateSubRunTracePayloadSemantics } from './token-accounting-CVW37Uri.js';
|
|
3
|
-
import { d as CONTEXT_COMPACTION_FAILED_ERROR_CODE, e as CONTEXT_COMPACTION_INSUFFICIENT_ERROR_CODE, C as ContextBuildTokenEstimate, b as ContextCompactionCandidate, f as ContextCompactionErrorCode, c as ContextCompactionPlan, D as DEFAULT_CONTEXT_COMPACTION_POLICY, R as ResolvedContextCompactionPolicy, a as TokenUsageCalibrationSample, T as TokenUsageCalibrationTrace } from './token-calibration-GtFyMJtM.js';
|
|
4
|
-
import { A as AUDIT_ACTIONS, a as AUDIT_DECISION_OUTCOMES, b as AuditActor, c as AuditCostDelta, d as AuditDecision, e as AuditEnvelope, f as AuditEvidence, g as AuditScope } from './audit-XsNMTt0-.js';
|
|
5
|
-
import { T as ToolOutputEventResult, R as RuntimeEvent, A as AuditEnvelopeEvent, B as BaseEvent, C as ContextUsageSnapshotEvent, a as ControlEvent, E as ErrorEvent, F as FinalAnswerChunkEvent, b as FinalAnswerCompletionReason, c as FinalAnswerEvent, d as FinalAnswerResetEvent, H as HistorySummaryEvent, e as RequiresUserInteractionEvent, f as RoutedRuntimeEvent, g as RunExecutionMetricsEvent, h as RunExecutionOutcome, i as RuntimeEventInput, j as RuntimeEventRoutingIdentity, k as RuntimeEventVisibility, l as RuntimeRunLane, m as RuntimeRunStatus, S as SubRunTraceEvent, n as ThoughtEvent, o as ToolCallDecisionEvent, p as ToolCallDecisionPayload, q as ToolOutputEvent, r as ToolProcessEvent, U as UserInputEvent, s as createAuditEnvelopeEvent, t as createContextUsageSnapshotEvent, u as createErrorEvent, v as createFinalAnswerChunkEvent, w as createFinalAnswerEvent, x as createFinalAnswerResetEvent, y as createHistorySummaryEvent, z as createRequiresUserInteractionEvent, D as createRunExecutionMetricsEvent, G as createSubRunTraceEvent, I as createThoughtEvent, J as createToolCallDecisionEvent, K as createToolOutputEvent, L as createToolProcessEvent, M as createUserInputEvent, N as isRoutedRuntimeEvent, O as parseRoutedRuntimeEvent, P as parseRuntimeEventRoutingIdentity, Q as parseRuntimeEvents, V as routeRuntimeEvent, W as validateRuntimeEvent, X as validateRuntimeEvents } from './final-answer-oOQ_7nPt.js';
|
|
6
|
-
import { E as EventEnvelope, a as ExecutionTraceContext } from './execution-B7e01ZjW.js';
|
|
7
1
|
import { z } from 'zod';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Runtime 身份生成器的唯一实现。
|
|
13
|
-
*
|
|
14
|
-
* 每个函数只创建名称对应的实体身份。调用点必须选择真实业务身份,禁止用某个
|
|
15
|
-
* “通用 message ID”代替 event、tool call、interaction 等不同实体。完整 UUID
|
|
16
|
-
* 保留足够的全局唯一性;前缀只用于诊断,不承担类型判断。
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
declare function generateRuntimeEventId(): string;
|
|
20
|
-
declare function generateAiMessageId(): string;
|
|
21
|
-
declare function generateAnswerSegmentId(): string;
|
|
22
|
-
declare function generateConversationId(): string;
|
|
23
|
-
declare function generateTurnId(): string;
|
|
24
|
-
declare function generateRunId(): RunId;
|
|
25
|
-
declare function generateExecutionId(): string;
|
|
26
|
-
declare function generateTraceId(): string;
|
|
27
|
-
declare function generateInferenceAttemptId(): string;
|
|
28
|
-
declare function generateThoughtMessageId(): string;
|
|
29
|
-
declare function generateToolCallId(): ToolCallId;
|
|
30
|
-
declare function generateInteractionId(): string;
|
|
31
|
-
declare function generateResumeToken(): string;
|
|
32
|
-
declare function generateSubrunId(): string;
|
|
33
|
-
declare function generateRunResumeClaimId(): string;
|
|
34
|
-
declare function generateAuditEnvelopeId(): string;
|
|
35
|
-
declare function generateContextLedgerEntryId(): string;
|
|
36
|
-
/** Host-only 持久化沿用 turn identity 时,显式建立其 Run 身份语义。 */
|
|
37
|
-
declare function runIdFromTurnId(turnId: TurnId): RunId;
|
|
38
|
-
/** Child run 沿用 subrun identity 时,显式建立其 Run 身份语义。 */
|
|
39
|
-
declare function runIdFromSubrunId(subrunId: SubrunId): RunId;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* 校验 final_answer 的正式身份关系。
|
|
43
|
-
*
|
|
44
|
-
* final_answer 与 answer segment 一一对应,所以新事实必须满足 `event.id === answer_id`。
|
|
45
|
-
* final_answer 与 answer segment 一一对应,所有创建、持久化和读取边界均执行同一合同。
|
|
46
|
-
*/
|
|
47
|
-
declare function assertCanonicalFinalAnswerIdentity(input: {
|
|
48
|
-
readonly id: RuntimeEventId;
|
|
49
|
-
readonly answer_id: AnswerSegmentId;
|
|
50
|
-
}): AnswerSegmentId;
|
|
51
|
-
/**
|
|
52
|
-
* chunk 是独立的增量事实,必须拥有不同于 answer segment 的 event ID。
|
|
53
|
-
*
|
|
54
|
-
* 如果二者相等,前端 processed-event 账本会先记录 chunk,随后把同 ID 的 seal 当成
|
|
55
|
-
* 重复事件跳过,答案将永远无法封口。这条关系由新事实 admission 强制执行。
|
|
56
|
-
*/
|
|
57
|
-
declare function assertDistinctAnswerChunkIdentity(input: {
|
|
58
|
-
readonly id: RuntimeEventId;
|
|
59
|
-
readonly answer_id: AnswerSegmentId;
|
|
60
|
-
}): void;
|
|
61
|
-
|
|
62
|
-
declare const ToolCallPhase: z.ZodEnum<["start", "update", "complete", "error"]>;
|
|
63
|
-
type ToolCallPhase = z.infer<typeof ToolCallPhase>;
|
|
64
|
-
declare const Status: z.ZodEnum<["loading", "success", "error"]>;
|
|
65
|
-
type Status = z.infer<typeof Status>;
|
|
66
|
-
|
|
67
|
-
declare const DEFAULT_MAX_STEPS = 80;
|
|
2
|
+
import { SerializableJsonValue } from './json.cjs';
|
|
3
|
+
import { ToolOutputEventResult, RuntimeEvent } from './events.cjs';
|
|
4
|
+
import { ThoughtMessageId } from './identity/definitions.cjs';
|
|
68
5
|
|
|
69
6
|
declare const BaseSSEEvent: z.ZodObject<{
|
|
70
7
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -84,7 +21,7 @@ declare const BaseSSEEvent: z.ZodObject<{
|
|
|
84
21
|
turn_id: string;
|
|
85
22
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
86
23
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
87
|
-
lane?: "
|
|
24
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
88
25
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
89
26
|
execution_id?: string | undefined;
|
|
90
27
|
execution_seq?: number | undefined;
|
|
@@ -95,7 +32,7 @@ declare const BaseSSEEvent: z.ZodObject<{
|
|
|
95
32
|
turn_id: string;
|
|
96
33
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
97
34
|
run_id?: string | undefined;
|
|
98
|
-
lane?: "
|
|
35
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
99
36
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
100
37
|
execution_id?: string | undefined;
|
|
101
38
|
execution_seq?: number | undefined;
|
|
@@ -146,11 +83,11 @@ declare const SSEThoughtEvent: z.ZodObject<{
|
|
|
146
83
|
is_complete: boolean;
|
|
147
84
|
content?: string | undefined;
|
|
148
85
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
149
|
-
delta?: string | undefined;
|
|
150
86
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
151
|
-
lane?: "
|
|
87
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
152
88
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
153
89
|
thought_message_id?: string | undefined;
|
|
90
|
+
delta?: string | undefined;
|
|
154
91
|
execution_id?: string | undefined;
|
|
155
92
|
execution_seq?: number | undefined;
|
|
156
93
|
}, {
|
|
@@ -161,11 +98,11 @@ declare const SSEThoughtEvent: z.ZodObject<{
|
|
|
161
98
|
turn_id: string;
|
|
162
99
|
content?: string | undefined;
|
|
163
100
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
164
|
-
delta?: string | undefined;
|
|
165
101
|
run_id?: string | undefined;
|
|
166
|
-
lane?: "
|
|
102
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
167
103
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
168
104
|
thought_message_id?: string | undefined;
|
|
105
|
+
delta?: string | undefined;
|
|
169
106
|
is_complete?: boolean | undefined;
|
|
170
107
|
execution_id?: string | undefined;
|
|
171
108
|
execution_seq?: number | undefined;
|
|
@@ -192,32 +129,32 @@ declare const SSEFinalAnswerChunkEvent: z.ZodObject<{
|
|
|
192
129
|
id: string;
|
|
193
130
|
type: "final_answer_chunk";
|
|
194
131
|
timestamp: number;
|
|
195
|
-
answer_id: string;
|
|
196
|
-
seq: number;
|
|
197
132
|
conversation_id: string;
|
|
198
133
|
turn_id: string;
|
|
134
|
+
answer_id: string;
|
|
135
|
+
seq: number;
|
|
199
136
|
chunk: string;
|
|
200
137
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
201
|
-
is_last?: boolean | undefined;
|
|
202
138
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
203
|
-
lane?: "
|
|
139
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
204
140
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
141
|
+
is_last?: boolean | undefined;
|
|
205
142
|
execution_id?: string | undefined;
|
|
206
143
|
execution_seq?: number | undefined;
|
|
207
144
|
}, {
|
|
208
145
|
id: string;
|
|
209
146
|
type: "final_answer_chunk";
|
|
210
147
|
timestamp: number;
|
|
211
|
-
answer_id: string;
|
|
212
|
-
seq: number;
|
|
213
148
|
conversation_id: string;
|
|
214
149
|
turn_id: string;
|
|
150
|
+
answer_id: string;
|
|
151
|
+
seq: number;
|
|
215
152
|
chunk: string;
|
|
216
153
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
217
|
-
is_last?: boolean | undefined;
|
|
218
154
|
run_id?: string | undefined;
|
|
219
|
-
lane?: "
|
|
155
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
220
156
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
157
|
+
is_last?: boolean | undefined;
|
|
221
158
|
execution_id?: string | undefined;
|
|
222
159
|
execution_seq?: number | undefined;
|
|
223
160
|
}>;
|
|
@@ -244,10 +181,10 @@ declare const SSEFinalAnswerResetEvent: z.ZodObject<{
|
|
|
244
181
|
conversation_id: string;
|
|
245
182
|
turn_id: string;
|
|
246
183
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
247
|
-
answer_id?: string | undefined;
|
|
248
184
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
249
|
-
lane?: "
|
|
185
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
250
186
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
187
|
+
answer_id?: string | undefined;
|
|
251
188
|
thought_message_ids?: string[] | undefined;
|
|
252
189
|
execution_id?: string | undefined;
|
|
253
190
|
execution_seq?: number | undefined;
|
|
@@ -258,10 +195,10 @@ declare const SSEFinalAnswerResetEvent: z.ZodObject<{
|
|
|
258
195
|
conversation_id: string;
|
|
259
196
|
turn_id: string;
|
|
260
197
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
261
|
-
answer_id?: string | undefined;
|
|
262
198
|
run_id?: string | undefined;
|
|
263
|
-
lane?: "
|
|
199
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
264
200
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
201
|
+
answer_id?: string | undefined;
|
|
265
202
|
thought_message_ids?: string[] | undefined;
|
|
266
203
|
execution_id?: string | undefined;
|
|
267
204
|
execution_seq?: number | undefined;
|
|
@@ -287,33 +224,33 @@ declare const SSEFinalAnswerEvent: z.ZodObject<{
|
|
|
287
224
|
}, "strip", z.ZodTypeAny, {
|
|
288
225
|
id: string;
|
|
289
226
|
type: "final_answer";
|
|
290
|
-
completion_reason: "
|
|
227
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
291
228
|
content: string;
|
|
292
229
|
timestamp: number;
|
|
293
|
-
answer_id: string;
|
|
294
230
|
conversation_id: string;
|
|
295
231
|
turn_id: string;
|
|
232
|
+
answer_id: string;
|
|
296
233
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
297
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
298
234
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
299
|
-
lane?: "
|
|
235
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
300
236
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
237
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
301
238
|
execution_id?: string | undefined;
|
|
302
239
|
execution_seq?: number | undefined;
|
|
303
240
|
}, {
|
|
304
241
|
id: string;
|
|
305
242
|
type: "final_answer";
|
|
306
|
-
completion_reason: "
|
|
243
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
307
244
|
content: string;
|
|
308
245
|
timestamp: number;
|
|
309
|
-
answer_id: string;
|
|
310
246
|
conversation_id: string;
|
|
311
247
|
turn_id: string;
|
|
248
|
+
answer_id: string;
|
|
312
249
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
313
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
314
250
|
run_id?: string | undefined;
|
|
315
|
-
lane?: "
|
|
251
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
316
252
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
253
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
317
254
|
execution_id?: string | undefined;
|
|
318
255
|
execution_seq?: number | undefined;
|
|
319
256
|
}>;
|
|
@@ -343,10 +280,10 @@ declare const SSEMarkdownChunkEvent: z.ZodObject<{
|
|
|
343
280
|
turn_id: string;
|
|
344
281
|
content_type: "code" | "image" | "text" | "table";
|
|
345
282
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
346
|
-
seq?: number | undefined;
|
|
347
283
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
348
|
-
lane?: "
|
|
284
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
349
285
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
286
|
+
seq?: number | undefined;
|
|
350
287
|
execution_id?: string | undefined;
|
|
351
288
|
execution_seq?: number | undefined;
|
|
352
289
|
}, {
|
|
@@ -357,10 +294,10 @@ declare const SSEMarkdownChunkEvent: z.ZodObject<{
|
|
|
357
294
|
conversation_id: string;
|
|
358
295
|
turn_id: string;
|
|
359
296
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
360
|
-
seq?: number | undefined;
|
|
361
297
|
run_id?: string | undefined;
|
|
362
|
-
lane?: "
|
|
298
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
363
299
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
300
|
+
seq?: number | undefined;
|
|
364
301
|
execution_id?: string | undefined;
|
|
365
302
|
execution_seq?: number | undefined;
|
|
366
303
|
content_type?: "code" | "image" | "text" | "table" | undefined;
|
|
@@ -394,16 +331,16 @@ declare const SSEToolCallDecisionEvent: z.ZodObject<{
|
|
|
394
331
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
395
332
|
tool_name: string;
|
|
396
333
|
timestamp: number;
|
|
397
|
-
phase: "error" | "start" | "update" | "complete";
|
|
398
334
|
conversation_id: string;
|
|
399
335
|
turn_id: string;
|
|
336
|
+
phase: "error" | "start" | "update" | "complete";
|
|
400
337
|
payload?: SerializableJsonValue | undefined;
|
|
401
338
|
args?: SerializableJsonValue | undefined;
|
|
402
339
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
403
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
404
340
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
405
|
-
lane?: "
|
|
341
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
406
342
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
343
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
407
344
|
execution_id?: string | undefined;
|
|
408
345
|
execution_seq?: number | undefined;
|
|
409
346
|
}, {
|
|
@@ -413,16 +350,16 @@ declare const SSEToolCallDecisionEvent: z.ZodObject<{
|
|
|
413
350
|
tool_call_id: string;
|
|
414
351
|
tool_name: string;
|
|
415
352
|
timestamp: number;
|
|
416
|
-
phase: "error" | "start" | "update" | "complete";
|
|
417
353
|
conversation_id: string;
|
|
418
354
|
turn_id: string;
|
|
355
|
+
phase: "error" | "start" | "update" | "complete";
|
|
419
356
|
payload?: SerializableJsonValue | undefined;
|
|
420
357
|
args?: SerializableJsonValue | undefined;
|
|
421
358
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
422
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
423
359
|
run_id?: string | undefined;
|
|
424
|
-
lane?: "
|
|
360
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
425
361
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
362
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
426
363
|
execution_id?: string | undefined;
|
|
427
364
|
execution_seq?: number | undefined;
|
|
428
365
|
}>;
|
|
@@ -455,16 +392,16 @@ declare const SSEToolProcessEvent: z.ZodObject<{
|
|
|
455
392
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
456
393
|
tool_name: string;
|
|
457
394
|
timestamp: number;
|
|
458
|
-
phase: "error" | "start" | "update" | "complete";
|
|
459
395
|
conversation_id: string;
|
|
460
396
|
turn_id: string;
|
|
397
|
+
phase: "error" | "start" | "update" | "complete";
|
|
461
398
|
payload?: SerializableJsonValue | undefined;
|
|
462
399
|
args?: SerializableJsonValue | undefined;
|
|
463
400
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
464
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
465
401
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
466
|
-
lane?: "
|
|
402
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
467
403
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
404
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
468
405
|
execution_id?: string | undefined;
|
|
469
406
|
execution_seq?: number | undefined;
|
|
470
407
|
}, {
|
|
@@ -474,16 +411,16 @@ declare const SSEToolProcessEvent: z.ZodObject<{
|
|
|
474
411
|
tool_call_id: string;
|
|
475
412
|
tool_name: string;
|
|
476
413
|
timestamp: number;
|
|
477
|
-
phase: "error" | "start" | "update" | "complete";
|
|
478
414
|
conversation_id: string;
|
|
479
415
|
turn_id: string;
|
|
416
|
+
phase: "error" | "start" | "update" | "complete";
|
|
480
417
|
payload?: SerializableJsonValue | undefined;
|
|
481
418
|
args?: SerializableJsonValue | undefined;
|
|
482
419
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
483
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
484
420
|
run_id?: string | undefined;
|
|
485
|
-
lane?: "
|
|
421
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
486
422
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
423
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
487
424
|
execution_id?: string | undefined;
|
|
488
425
|
execution_seq?: number | undefined;
|
|
489
426
|
}>;
|
|
@@ -568,11 +505,11 @@ declare const SSEToolOutputEvent: z.ZodObject<{
|
|
|
568
505
|
fileName?: string | undefined;
|
|
569
506
|
label?: string | undefined;
|
|
570
507
|
}[] | undefined;
|
|
571
|
-
duration_ms?: number | undefined;
|
|
572
508
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
573
|
-
lane?: "
|
|
509
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
574
510
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
575
511
|
error_code?: string | undefined;
|
|
512
|
+
duration_ms?: number | undefined;
|
|
576
513
|
execution_id?: string | undefined;
|
|
577
514
|
execution_seq?: number | undefined;
|
|
578
515
|
}, {
|
|
@@ -600,11 +537,11 @@ declare const SSEToolOutputEvent: z.ZodObject<{
|
|
|
600
537
|
fileName?: string | undefined;
|
|
601
538
|
label?: string | undefined;
|
|
602
539
|
}[] | undefined;
|
|
603
|
-
duration_ms?: number | undefined;
|
|
604
540
|
run_id?: string | undefined;
|
|
605
|
-
lane?: "
|
|
541
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
606
542
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
607
543
|
error_code?: string | undefined;
|
|
544
|
+
duration_ms?: number | undefined;
|
|
608
545
|
execution_id?: string | undefined;
|
|
609
546
|
execution_seq?: number | undefined;
|
|
610
547
|
}>;
|
|
@@ -694,22 +631,22 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
694
631
|
type: z.ZodLiteral<"subrun_trace">;
|
|
695
632
|
}, "strip", z.ZodTypeAny, {
|
|
696
633
|
id: string;
|
|
697
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "
|
|
634
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
698
635
|
type: "subrun_trace";
|
|
699
636
|
timestamp: number;
|
|
637
|
+
conversation_id: string;
|
|
638
|
+
turn_id: string;
|
|
700
639
|
parent_tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
701
640
|
subrun_id: string;
|
|
702
641
|
source_event_id: string;
|
|
703
|
-
conversation_id: string;
|
|
704
|
-
turn_id: string;
|
|
705
642
|
status?: "error" | "loading" | "success" | undefined;
|
|
706
|
-
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
707
643
|
tool_calls?: {
|
|
708
644
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
709
645
|
tool_name: string;
|
|
710
646
|
args: Record<string, SerializableJsonValue>;
|
|
711
647
|
}[] | undefined;
|
|
712
|
-
|
|
648
|
+
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
649
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
713
650
|
tool_name?: string | undefined;
|
|
714
651
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
715
652
|
content?: string | undefined;
|
|
@@ -726,42 +663,42 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
726
663
|
fileName?: string | undefined;
|
|
727
664
|
label?: string | undefined;
|
|
728
665
|
}[] | undefined;
|
|
729
|
-
|
|
666
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
667
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
668
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
730
669
|
delta?: string | undefined;
|
|
670
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
671
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
672
|
+
duration_ms?: number | undefined;
|
|
673
|
+
subrun_parent_id?: string | undefined;
|
|
731
674
|
answer_id?: string | undefined;
|
|
732
675
|
seq?: number | undefined;
|
|
733
676
|
is_last?: boolean | undefined;
|
|
734
|
-
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
735
677
|
output?: SerializableJsonValue | undefined;
|
|
736
|
-
duration_ms?: number | undefined;
|
|
737
678
|
original_message_count?: number | undefined;
|
|
738
679
|
compression_ratio?: number | undefined;
|
|
739
680
|
included_old_summary?: boolean | undefined;
|
|
740
681
|
replaced_message_ids?: string[] | undefined;
|
|
741
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
742
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
743
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
744
|
-
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
745
682
|
execution_id?: string | undefined;
|
|
746
683
|
execution_seq?: number | undefined;
|
|
747
684
|
}, {
|
|
748
685
|
id: string;
|
|
749
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "
|
|
686
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
750
687
|
type: "subrun_trace";
|
|
751
688
|
timestamp: number;
|
|
689
|
+
conversation_id: string;
|
|
690
|
+
turn_id: string;
|
|
752
691
|
parent_tool_call_id: string;
|
|
753
692
|
subrun_id: string;
|
|
754
693
|
source_event_id: string;
|
|
755
|
-
conversation_id: string;
|
|
756
|
-
turn_id: string;
|
|
757
694
|
status?: "error" | "loading" | "success" | undefined;
|
|
758
|
-
tool_call_id?: string | undefined;
|
|
759
695
|
tool_calls?: {
|
|
760
696
|
tool_call_id: string;
|
|
761
697
|
tool_name: string;
|
|
762
698
|
args: Record<string, SerializableJsonValue>;
|
|
763
699
|
}[] | undefined;
|
|
764
|
-
|
|
700
|
+
tool_call_id?: string | undefined;
|
|
701
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
765
702
|
tool_name?: string | undefined;
|
|
766
703
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
767
704
|
content?: string | undefined;
|
|
@@ -778,22 +715,22 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
778
715
|
fileName?: string | undefined;
|
|
779
716
|
label?: string | undefined;
|
|
780
717
|
}[] | undefined;
|
|
781
|
-
|
|
718
|
+
run_id?: string | undefined;
|
|
719
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
720
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
782
721
|
delta?: string | undefined;
|
|
722
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
723
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
724
|
+
duration_ms?: number | undefined;
|
|
725
|
+
subrun_parent_id?: string | undefined;
|
|
783
726
|
answer_id?: string | undefined;
|
|
784
727
|
seq?: number | undefined;
|
|
785
728
|
is_last?: boolean | undefined;
|
|
786
|
-
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
787
729
|
output?: SerializableJsonValue | undefined;
|
|
788
|
-
duration_ms?: number | undefined;
|
|
789
730
|
original_message_count?: number | undefined;
|
|
790
731
|
compression_ratio?: number | undefined;
|
|
791
732
|
included_old_summary?: boolean | undefined;
|
|
792
733
|
replaced_message_ids?: string[] | undefined;
|
|
793
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
794
|
-
run_id?: string | undefined;
|
|
795
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
796
|
-
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
797
734
|
execution_id?: string | undefined;
|
|
798
735
|
execution_seq?: number | undefined;
|
|
799
736
|
}>;
|
|
@@ -832,7 +769,7 @@ declare const SSERequiresUserInteractionEvent: z.ZodObject<{
|
|
|
832
769
|
resume_token: string;
|
|
833
770
|
interaction_status: "pending";
|
|
834
771
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
835
|
-
lane?: "
|
|
772
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
836
773
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
837
774
|
form?: SerializableJsonValue | undefined;
|
|
838
775
|
interaction_type?: string | undefined;
|
|
@@ -852,7 +789,7 @@ declare const SSERequiresUserInteractionEvent: z.ZodObject<{
|
|
|
852
789
|
resume_token: string;
|
|
853
790
|
interaction_status: "pending";
|
|
854
791
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
855
|
-
lane?: "
|
|
792
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
856
793
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
857
794
|
form?: SerializableJsonValue | undefined;
|
|
858
795
|
interaction_type?: string | undefined;
|
|
@@ -887,7 +824,7 @@ declare const SSEErrorEvent: z.ZodObject<{
|
|
|
887
824
|
turn_id: string;
|
|
888
825
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
889
826
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
890
|
-
lane?: "
|
|
827
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
891
828
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
892
829
|
error_code?: string | undefined;
|
|
893
830
|
details?: SerializableJsonValue | undefined;
|
|
@@ -903,7 +840,7 @@ declare const SSEErrorEvent: z.ZodObject<{
|
|
|
903
840
|
turn_id: string;
|
|
904
841
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
905
842
|
run_id?: string | undefined;
|
|
906
|
-
lane?: "
|
|
843
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
907
844
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
908
845
|
error_code?: string | undefined;
|
|
909
846
|
details?: SerializableJsonValue | undefined;
|
|
@@ -944,7 +881,7 @@ declare const SSETransportErrorEvent: z.ZodObject<{
|
|
|
944
881
|
execution_id: string;
|
|
945
882
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
946
883
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
947
|
-
lane?: "
|
|
884
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
948
885
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
949
886
|
error_code?: string | undefined;
|
|
950
887
|
details?: SerializableJsonValue | undefined;
|
|
@@ -960,7 +897,7 @@ declare const SSETransportErrorEvent: z.ZodObject<{
|
|
|
960
897
|
execution_id: string;
|
|
961
898
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
962
899
|
run_id?: string | undefined;
|
|
963
|
-
lane?: "
|
|
900
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
964
901
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
965
902
|
error_code?: string | undefined;
|
|
966
903
|
details?: SerializableJsonValue | undefined;
|
|
@@ -1009,7 +946,6 @@ declare const SSEContextUsageSnapshotEvent: z.ZodObject<{
|
|
|
1009
946
|
measured_at: z.ZodNumber;
|
|
1010
947
|
}, "strict", z.ZodTypeAny, {
|
|
1011
948
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
1012
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1013
949
|
basis: "last_completed_llm_prompt";
|
|
1014
950
|
budget_model_id: string;
|
|
1015
951
|
used_tokens: number;
|
|
@@ -1022,11 +958,11 @@ declare const SSEContextUsageSnapshotEvent: z.ZodObject<{
|
|
|
1022
958
|
input_budget_tokens: number;
|
|
1023
959
|
remaining_tokens: number;
|
|
1024
960
|
output_limit_tokens: number;
|
|
961
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1025
962
|
measured_at: number;
|
|
1026
963
|
served_model_id?: string | undefined;
|
|
1027
964
|
}, {
|
|
1028
965
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
1029
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1030
966
|
basis: "last_completed_llm_prompt";
|
|
1031
967
|
budget_model_id: string;
|
|
1032
968
|
used_tokens: number;
|
|
@@ -1039,11 +975,11 @@ declare const SSEContextUsageSnapshotEvent: z.ZodObject<{
|
|
|
1039
975
|
input_budget_tokens: number;
|
|
1040
976
|
remaining_tokens: number;
|
|
1041
977
|
output_limit_tokens: number;
|
|
978
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1042
979
|
measured_at: number;
|
|
1043
980
|
served_model_id?: string | undefined;
|
|
1044
981
|
}>, {
|
|
1045
982
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
1046
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1047
983
|
basis: "last_completed_llm_prompt";
|
|
1048
984
|
budget_model_id: string;
|
|
1049
985
|
used_tokens: number;
|
|
@@ -1056,11 +992,11 @@ declare const SSEContextUsageSnapshotEvent: z.ZodObject<{
|
|
|
1056
992
|
input_budget_tokens: number;
|
|
1057
993
|
remaining_tokens: number;
|
|
1058
994
|
output_limit_tokens: number;
|
|
995
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1059
996
|
measured_at: number;
|
|
1060
997
|
served_model_id?: string | undefined;
|
|
1061
998
|
}, {
|
|
1062
999
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
1063
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1064
1000
|
basis: "last_completed_llm_prompt";
|
|
1065
1001
|
budget_model_id: string;
|
|
1066
1002
|
used_tokens: number;
|
|
@@ -1073,6 +1009,7 @@ declare const SSEContextUsageSnapshotEvent: z.ZodObject<{
|
|
|
1073
1009
|
input_budget_tokens: number;
|
|
1074
1010
|
remaining_tokens: number;
|
|
1075
1011
|
output_limit_tokens: number;
|
|
1012
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1076
1013
|
measured_at: number;
|
|
1077
1014
|
served_model_id?: string | undefined;
|
|
1078
1015
|
}>;
|
|
@@ -1084,7 +1021,6 @@ declare const SSEContextUsageSnapshotEvent: z.ZodObject<{
|
|
|
1084
1021
|
turn_id: string;
|
|
1085
1022
|
context_usage: {
|
|
1086
1023
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
1087
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1088
1024
|
basis: "last_completed_llm_prompt";
|
|
1089
1025
|
budget_model_id: string;
|
|
1090
1026
|
used_tokens: number;
|
|
@@ -1097,12 +1033,13 @@ declare const SSEContextUsageSnapshotEvent: z.ZodObject<{
|
|
|
1097
1033
|
input_budget_tokens: number;
|
|
1098
1034
|
remaining_tokens: number;
|
|
1099
1035
|
output_limit_tokens: number;
|
|
1036
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1100
1037
|
measured_at: number;
|
|
1101
1038
|
served_model_id?: string | undefined;
|
|
1102
1039
|
};
|
|
1103
1040
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1104
1041
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1105
|
-
lane?: "
|
|
1042
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1106
1043
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1107
1044
|
user_message_id?: string | undefined;
|
|
1108
1045
|
execution_id?: string | undefined;
|
|
@@ -1115,7 +1052,6 @@ declare const SSEContextUsageSnapshotEvent: z.ZodObject<{
|
|
|
1115
1052
|
turn_id: string;
|
|
1116
1053
|
context_usage: {
|
|
1117
1054
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
1118
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1119
1055
|
basis: "last_completed_llm_prompt";
|
|
1120
1056
|
budget_model_id: string;
|
|
1121
1057
|
used_tokens: number;
|
|
@@ -1128,12 +1064,13 @@ declare const SSEContextUsageSnapshotEvent: z.ZodObject<{
|
|
|
1128
1064
|
input_budget_tokens: number;
|
|
1129
1065
|
remaining_tokens: number;
|
|
1130
1066
|
output_limit_tokens: number;
|
|
1067
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1131
1068
|
measured_at: number;
|
|
1132
1069
|
served_model_id?: string | undefined;
|
|
1133
1070
|
};
|
|
1134
1071
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1135
1072
|
run_id?: string | undefined;
|
|
1136
|
-
lane?: "
|
|
1073
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1137
1074
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1138
1075
|
user_message_id?: string | undefined;
|
|
1139
1076
|
execution_id?: string | undefined;
|
|
@@ -1183,7 +1120,6 @@ declare const SSERunExecutionMetricsEvent: z.ZodObject<{
|
|
|
1183
1120
|
measured_at: z.ZodNumber;
|
|
1184
1121
|
}, "strict", z.ZodTypeAny, {
|
|
1185
1122
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
1186
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1187
1123
|
basis: "last_completed_llm_prompt";
|
|
1188
1124
|
budget_model_id: string;
|
|
1189
1125
|
used_tokens: number;
|
|
@@ -1196,11 +1132,11 @@ declare const SSERunExecutionMetricsEvent: z.ZodObject<{
|
|
|
1196
1132
|
input_budget_tokens: number;
|
|
1197
1133
|
remaining_tokens: number;
|
|
1198
1134
|
output_limit_tokens: number;
|
|
1135
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1199
1136
|
measured_at: number;
|
|
1200
1137
|
served_model_id?: string | undefined;
|
|
1201
1138
|
}, {
|
|
1202
1139
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
1203
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1204
1140
|
basis: "last_completed_llm_prompt";
|
|
1205
1141
|
budget_model_id: string;
|
|
1206
1142
|
used_tokens: number;
|
|
@@ -1213,11 +1149,11 @@ declare const SSERunExecutionMetricsEvent: z.ZodObject<{
|
|
|
1213
1149
|
input_budget_tokens: number;
|
|
1214
1150
|
remaining_tokens: number;
|
|
1215
1151
|
output_limit_tokens: number;
|
|
1152
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1216
1153
|
measured_at: number;
|
|
1217
1154
|
served_model_id?: string | undefined;
|
|
1218
1155
|
}>, {
|
|
1219
1156
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
1220
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1221
1157
|
basis: "last_completed_llm_prompt";
|
|
1222
1158
|
budget_model_id: string;
|
|
1223
1159
|
used_tokens: number;
|
|
@@ -1230,11 +1166,11 @@ declare const SSERunExecutionMetricsEvent: z.ZodObject<{
|
|
|
1230
1166
|
input_budget_tokens: number;
|
|
1231
1167
|
remaining_tokens: number;
|
|
1232
1168
|
output_limit_tokens: number;
|
|
1169
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1233
1170
|
measured_at: number;
|
|
1234
1171
|
served_model_id?: string | undefined;
|
|
1235
1172
|
}, {
|
|
1236
1173
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
1237
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1238
1174
|
basis: "last_completed_llm_prompt";
|
|
1239
1175
|
budget_model_id: string;
|
|
1240
1176
|
used_tokens: number;
|
|
@@ -1247,6 +1183,7 @@ declare const SSERunExecutionMetricsEvent: z.ZodObject<{
|
|
|
1247
1183
|
input_budget_tokens: number;
|
|
1248
1184
|
remaining_tokens: number;
|
|
1249
1185
|
output_limit_tokens: number;
|
|
1186
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1250
1187
|
measured_at: number;
|
|
1251
1188
|
served_model_id?: string | undefined;
|
|
1252
1189
|
}>>;
|
|
@@ -1255,18 +1192,17 @@ declare const SSERunExecutionMetricsEvent: z.ZodObject<{
|
|
|
1255
1192
|
type: "run_execution_metrics";
|
|
1256
1193
|
timestamp: number;
|
|
1257
1194
|
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
1258
|
-
duration_ms: number;
|
|
1259
1195
|
conversation_id: string;
|
|
1260
1196
|
turn_id: string;
|
|
1197
|
+
duration_ms: number;
|
|
1261
1198
|
execution_id: string;
|
|
1262
1199
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1263
1200
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1264
|
-
lane?: "
|
|
1201
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1265
1202
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1266
1203
|
user_message_id?: string | undefined;
|
|
1267
1204
|
context_usage?: {
|
|
1268
1205
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
1269
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1270
1206
|
basis: "last_completed_llm_prompt";
|
|
1271
1207
|
budget_model_id: string;
|
|
1272
1208
|
used_tokens: number;
|
|
@@ -1279,6 +1215,7 @@ declare const SSERunExecutionMetricsEvent: z.ZodObject<{
|
|
|
1279
1215
|
input_budget_tokens: number;
|
|
1280
1216
|
remaining_tokens: number;
|
|
1281
1217
|
output_limit_tokens: number;
|
|
1218
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1282
1219
|
measured_at: number;
|
|
1283
1220
|
served_model_id?: string | undefined;
|
|
1284
1221
|
} | undefined;
|
|
@@ -1288,18 +1225,17 @@ declare const SSERunExecutionMetricsEvent: z.ZodObject<{
|
|
|
1288
1225
|
type: "run_execution_metrics";
|
|
1289
1226
|
timestamp: number;
|
|
1290
1227
|
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
1291
|
-
duration_ms: number;
|
|
1292
1228
|
conversation_id: string;
|
|
1293
1229
|
turn_id: string;
|
|
1230
|
+
duration_ms: number;
|
|
1294
1231
|
execution_id: string;
|
|
1295
1232
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1296
1233
|
run_id?: string | undefined;
|
|
1297
|
-
lane?: "
|
|
1234
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1298
1235
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1299
1236
|
user_message_id?: string | undefined;
|
|
1300
1237
|
context_usage?: {
|
|
1301
1238
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
1302
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1303
1239
|
basis: "last_completed_llm_prompt";
|
|
1304
1240
|
budget_model_id: string;
|
|
1305
1241
|
used_tokens: number;
|
|
@@ -1312,6 +1248,7 @@ declare const SSERunExecutionMetricsEvent: z.ZodObject<{
|
|
|
1312
1248
|
input_budget_tokens: number;
|
|
1313
1249
|
remaining_tokens: number;
|
|
1314
1250
|
output_limit_tokens: number;
|
|
1251
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
1315
1252
|
measured_at: number;
|
|
1316
1253
|
served_model_id?: string | undefined;
|
|
1317
1254
|
} | undefined;
|
|
@@ -1343,7 +1280,7 @@ declare const SSERunStatusEvent: z.ZodObject<{
|
|
|
1343
1280
|
turn_id: string;
|
|
1344
1281
|
execution_id: string;
|
|
1345
1282
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1346
|
-
lane?: "
|
|
1283
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1347
1284
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1348
1285
|
execution_seq?: number | undefined;
|
|
1349
1286
|
reason_message?: string | undefined;
|
|
@@ -1357,7 +1294,7 @@ declare const SSERunStatusEvent: z.ZodObject<{
|
|
|
1357
1294
|
turn_id: string;
|
|
1358
1295
|
execution_id: string;
|
|
1359
1296
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1360
|
-
lane?: "
|
|
1297
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1361
1298
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1362
1299
|
execution_seq?: number | undefined;
|
|
1363
1300
|
reason_message?: string | undefined;
|
|
@@ -1388,7 +1325,7 @@ declare const SSETransportEndEvent: z.ZodObject<{
|
|
|
1388
1325
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1389
1326
|
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
1390
1327
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1391
|
-
lane?: "
|
|
1328
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1392
1329
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1393
1330
|
execution_seq?: number | undefined;
|
|
1394
1331
|
reason_message?: string | undefined;
|
|
@@ -1402,7 +1339,7 @@ declare const SSETransportEndEvent: z.ZodObject<{
|
|
|
1402
1339
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1403
1340
|
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
1404
1341
|
run_id?: string | undefined;
|
|
1405
|
-
lane?: "
|
|
1342
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1406
1343
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1407
1344
|
execution_seq?: number | undefined;
|
|
1408
1345
|
reason_message?: string | undefined;
|
|
@@ -1434,18 +1371,18 @@ declare const SSEHistorySummaryEvent: z.ZodObject<{
|
|
|
1434
1371
|
type: "history_summary";
|
|
1435
1372
|
content: string;
|
|
1436
1373
|
timestamp: number;
|
|
1437
|
-
original_message_count: number;
|
|
1438
|
-
replaced_message_ids: string[];
|
|
1439
1374
|
conversation_id: string;
|
|
1440
1375
|
turn_id: string;
|
|
1376
|
+
original_message_count: number;
|
|
1377
|
+
replaced_message_ids: string[];
|
|
1441
1378
|
summary_seq: number;
|
|
1442
1379
|
summary_id: string;
|
|
1443
1380
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1444
|
-
compression_ratio?: number | undefined;
|
|
1445
|
-
included_old_summary?: boolean | undefined;
|
|
1446
1381
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1447
|
-
lane?: "
|
|
1382
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1448
1383
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1384
|
+
compression_ratio?: number | undefined;
|
|
1385
|
+
included_old_summary?: boolean | undefined;
|
|
1449
1386
|
execution_id?: string | undefined;
|
|
1450
1387
|
execution_seq?: number | undefined;
|
|
1451
1388
|
}, {
|
|
@@ -1453,18 +1390,18 @@ declare const SSEHistorySummaryEvent: z.ZodObject<{
|
|
|
1453
1390
|
type: "history_summary";
|
|
1454
1391
|
content: string;
|
|
1455
1392
|
timestamp: number;
|
|
1456
|
-
original_message_count: number;
|
|
1457
|
-
replaced_message_ids: string[];
|
|
1458
1393
|
conversation_id: string;
|
|
1459
1394
|
turn_id: string;
|
|
1395
|
+
original_message_count: number;
|
|
1396
|
+
replaced_message_ids: string[];
|
|
1460
1397
|
summary_seq: number;
|
|
1461
1398
|
summary_id: string;
|
|
1462
1399
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1463
|
-
compression_ratio?: number | undefined;
|
|
1464
|
-
included_old_summary?: boolean | undefined;
|
|
1465
1400
|
run_id?: string | undefined;
|
|
1466
|
-
lane?: "
|
|
1401
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1467
1402
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1403
|
+
compression_ratio?: number | undefined;
|
|
1404
|
+
included_old_summary?: boolean | undefined;
|
|
1468
1405
|
execution_id?: string | undefined;
|
|
1469
1406
|
execution_seq?: number | undefined;
|
|
1470
1407
|
}>;
|
|
@@ -1493,7 +1430,7 @@ declare const SSESummarizationStartEvent: z.ZodObject<{
|
|
|
1493
1430
|
execution_id: string;
|
|
1494
1431
|
summarization_id: string;
|
|
1495
1432
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1496
|
-
lane?: "
|
|
1433
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1497
1434
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1498
1435
|
execution_seq?: number | undefined;
|
|
1499
1436
|
}, {
|
|
@@ -1506,7 +1443,7 @@ declare const SSESummarizationStartEvent: z.ZodObject<{
|
|
|
1506
1443
|
execution_id: string;
|
|
1507
1444
|
summarization_id: string;
|
|
1508
1445
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1509
|
-
lane?: "
|
|
1446
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1510
1447
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1511
1448
|
execution_seq?: number | undefined;
|
|
1512
1449
|
}>;
|
|
@@ -1533,35 +1470,35 @@ declare const SSESummarizationEndEvent: z.ZodObject<{
|
|
|
1533
1470
|
id: string;
|
|
1534
1471
|
type: "summarization_end";
|
|
1535
1472
|
timestamp: number;
|
|
1536
|
-
original_message_count: number;
|
|
1537
1473
|
run_id: string & z.BRAND<"RunId">;
|
|
1538
1474
|
conversation_id: string;
|
|
1539
1475
|
turn_id: string;
|
|
1476
|
+
original_message_count: number;
|
|
1540
1477
|
execution_id: string;
|
|
1541
1478
|
summary_id: string;
|
|
1542
1479
|
summarization_id: string;
|
|
1543
1480
|
compressed_message_count: number;
|
|
1544
1481
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1545
|
-
|
|
1546
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
1482
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1547
1483
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1484
|
+
compression_ratio?: number | undefined;
|
|
1548
1485
|
execution_seq?: number | undefined;
|
|
1549
1486
|
}, {
|
|
1550
1487
|
id: string;
|
|
1551
1488
|
type: "summarization_end";
|
|
1552
1489
|
timestamp: number;
|
|
1553
|
-
original_message_count: number;
|
|
1554
1490
|
run_id: string;
|
|
1555
1491
|
conversation_id: string;
|
|
1556
1492
|
turn_id: string;
|
|
1493
|
+
original_message_count: number;
|
|
1557
1494
|
execution_id: string;
|
|
1558
1495
|
summary_id: string;
|
|
1559
1496
|
summarization_id: string;
|
|
1560
1497
|
compressed_message_count: number;
|
|
1561
1498
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1562
|
-
|
|
1563
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
1499
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1564
1500
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1501
|
+
compression_ratio?: number | undefined;
|
|
1565
1502
|
execution_seq?: number | undefined;
|
|
1566
1503
|
}>;
|
|
1567
1504
|
type SSESummarizationEndEvent = z.infer<typeof SSESummarizationEndEvent>;
|
|
@@ -1591,7 +1528,7 @@ declare const SSESummarizationErrorEvent: z.ZodObject<{
|
|
|
1591
1528
|
execution_id: string;
|
|
1592
1529
|
summarization_id: string;
|
|
1593
1530
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1594
|
-
lane?: "
|
|
1531
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1595
1532
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1596
1533
|
execution_seq?: number | undefined;
|
|
1597
1534
|
}, {
|
|
@@ -1605,7 +1542,7 @@ declare const SSESummarizationErrorEvent: z.ZodObject<{
|
|
|
1605
1542
|
execution_id: string;
|
|
1606
1543
|
summarization_id: string;
|
|
1607
1544
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1608
|
-
lane?: "
|
|
1545
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1609
1546
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1610
1547
|
execution_seq?: number | undefined;
|
|
1611
1548
|
}>;
|
|
@@ -1636,11 +1573,11 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1636
1573
|
is_complete: boolean;
|
|
1637
1574
|
content?: string | undefined;
|
|
1638
1575
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1639
|
-
delta?: string | undefined;
|
|
1640
1576
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1641
|
-
lane?: "
|
|
1577
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1642
1578
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1643
1579
|
thought_message_id?: string | undefined;
|
|
1580
|
+
delta?: string | undefined;
|
|
1644
1581
|
execution_id?: string | undefined;
|
|
1645
1582
|
execution_seq?: number | undefined;
|
|
1646
1583
|
}, {
|
|
@@ -1651,11 +1588,11 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1651
1588
|
turn_id: string;
|
|
1652
1589
|
content?: string | undefined;
|
|
1653
1590
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1654
|
-
delta?: string | undefined;
|
|
1655
1591
|
run_id?: string | undefined;
|
|
1656
|
-
lane?: "
|
|
1592
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1657
1593
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1658
1594
|
thought_message_id?: string | undefined;
|
|
1595
|
+
delta?: string | undefined;
|
|
1659
1596
|
is_complete?: boolean | undefined;
|
|
1660
1597
|
execution_id?: string | undefined;
|
|
1661
1598
|
execution_seq?: number | undefined;
|
|
@@ -1680,32 +1617,32 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1680
1617
|
id: string;
|
|
1681
1618
|
type: "final_answer_chunk";
|
|
1682
1619
|
timestamp: number;
|
|
1683
|
-
answer_id: string;
|
|
1684
|
-
seq: number;
|
|
1685
1620
|
conversation_id: string;
|
|
1686
1621
|
turn_id: string;
|
|
1622
|
+
answer_id: string;
|
|
1623
|
+
seq: number;
|
|
1687
1624
|
chunk: string;
|
|
1688
1625
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1689
|
-
is_last?: boolean | undefined;
|
|
1690
1626
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1691
|
-
lane?: "
|
|
1627
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1692
1628
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1629
|
+
is_last?: boolean | undefined;
|
|
1693
1630
|
execution_id?: string | undefined;
|
|
1694
1631
|
execution_seq?: number | undefined;
|
|
1695
1632
|
}, {
|
|
1696
1633
|
id: string;
|
|
1697
1634
|
type: "final_answer_chunk";
|
|
1698
1635
|
timestamp: number;
|
|
1699
|
-
answer_id: string;
|
|
1700
|
-
seq: number;
|
|
1701
1636
|
conversation_id: string;
|
|
1702
1637
|
turn_id: string;
|
|
1638
|
+
answer_id: string;
|
|
1639
|
+
seq: number;
|
|
1703
1640
|
chunk: string;
|
|
1704
1641
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1705
|
-
is_last?: boolean | undefined;
|
|
1706
1642
|
run_id?: string | undefined;
|
|
1707
|
-
lane?: "
|
|
1643
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1708
1644
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1645
|
+
is_last?: boolean | undefined;
|
|
1709
1646
|
execution_id?: string | undefined;
|
|
1710
1647
|
execution_seq?: number | undefined;
|
|
1711
1648
|
}>, z.ZodObject<{
|
|
@@ -1730,10 +1667,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1730
1667
|
conversation_id: string;
|
|
1731
1668
|
turn_id: string;
|
|
1732
1669
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1733
|
-
answer_id?: string | undefined;
|
|
1734
1670
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1735
|
-
lane?: "
|
|
1671
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1736
1672
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1673
|
+
answer_id?: string | undefined;
|
|
1737
1674
|
thought_message_ids?: string[] | undefined;
|
|
1738
1675
|
execution_id?: string | undefined;
|
|
1739
1676
|
execution_seq?: number | undefined;
|
|
@@ -1744,10 +1681,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1744
1681
|
conversation_id: string;
|
|
1745
1682
|
turn_id: string;
|
|
1746
1683
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1747
|
-
answer_id?: string | undefined;
|
|
1748
1684
|
run_id?: string | undefined;
|
|
1749
|
-
lane?: "
|
|
1685
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1750
1686
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1687
|
+
answer_id?: string | undefined;
|
|
1751
1688
|
thought_message_ids?: string[] | undefined;
|
|
1752
1689
|
execution_id?: string | undefined;
|
|
1753
1690
|
execution_seq?: number | undefined;
|
|
@@ -1771,33 +1708,33 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1771
1708
|
}, "strip", z.ZodTypeAny, {
|
|
1772
1709
|
id: string;
|
|
1773
1710
|
type: "final_answer";
|
|
1774
|
-
completion_reason: "
|
|
1711
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1775
1712
|
content: string;
|
|
1776
1713
|
timestamp: number;
|
|
1777
|
-
answer_id: string;
|
|
1778
1714
|
conversation_id: string;
|
|
1779
1715
|
turn_id: string;
|
|
1716
|
+
answer_id: string;
|
|
1780
1717
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1781
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1782
1718
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1783
|
-
lane?: "
|
|
1719
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1784
1720
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1721
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1785
1722
|
execution_id?: string | undefined;
|
|
1786
1723
|
execution_seq?: number | undefined;
|
|
1787
1724
|
}, {
|
|
1788
1725
|
id: string;
|
|
1789
1726
|
type: "final_answer";
|
|
1790
|
-
completion_reason: "
|
|
1727
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1791
1728
|
content: string;
|
|
1792
1729
|
timestamp: number;
|
|
1793
|
-
answer_id: string;
|
|
1794
1730
|
conversation_id: string;
|
|
1795
1731
|
turn_id: string;
|
|
1732
|
+
answer_id: string;
|
|
1796
1733
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1797
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1798
1734
|
run_id?: string | undefined;
|
|
1799
|
-
lane?: "
|
|
1735
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1800
1736
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1737
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1801
1738
|
execution_id?: string | undefined;
|
|
1802
1739
|
execution_seq?: number | undefined;
|
|
1803
1740
|
}>, z.ZodObject<{
|
|
@@ -1825,10 +1762,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1825
1762
|
turn_id: string;
|
|
1826
1763
|
content_type: "code" | "image" | "text" | "table";
|
|
1827
1764
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1828
|
-
seq?: number | undefined;
|
|
1829
1765
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1830
|
-
lane?: "
|
|
1766
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1831
1767
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1768
|
+
seq?: number | undefined;
|
|
1832
1769
|
execution_id?: string | undefined;
|
|
1833
1770
|
execution_seq?: number | undefined;
|
|
1834
1771
|
}, {
|
|
@@ -1839,10 +1776,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1839
1776
|
conversation_id: string;
|
|
1840
1777
|
turn_id: string;
|
|
1841
1778
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1842
|
-
seq?: number | undefined;
|
|
1843
1779
|
run_id?: string | undefined;
|
|
1844
|
-
lane?: "
|
|
1780
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1845
1781
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1782
|
+
seq?: number | undefined;
|
|
1846
1783
|
execution_id?: string | undefined;
|
|
1847
1784
|
execution_seq?: number | undefined;
|
|
1848
1785
|
content_type?: "code" | "image" | "text" | "table" | undefined;
|
|
@@ -1874,16 +1811,16 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1874
1811
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1875
1812
|
tool_name: string;
|
|
1876
1813
|
timestamp: number;
|
|
1877
|
-
phase: "error" | "start" | "update" | "complete";
|
|
1878
1814
|
conversation_id: string;
|
|
1879
1815
|
turn_id: string;
|
|
1816
|
+
phase: "error" | "start" | "update" | "complete";
|
|
1880
1817
|
payload?: SerializableJsonValue | undefined;
|
|
1881
1818
|
args?: SerializableJsonValue | undefined;
|
|
1882
1819
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1883
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1884
1820
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1885
|
-
lane?: "
|
|
1821
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1886
1822
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1823
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1887
1824
|
execution_id?: string | undefined;
|
|
1888
1825
|
execution_seq?: number | undefined;
|
|
1889
1826
|
}, {
|
|
@@ -1893,16 +1830,16 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1893
1830
|
tool_call_id: string;
|
|
1894
1831
|
tool_name: string;
|
|
1895
1832
|
timestamp: number;
|
|
1896
|
-
phase: "error" | "start" | "update" | "complete";
|
|
1897
1833
|
conversation_id: string;
|
|
1898
1834
|
turn_id: string;
|
|
1835
|
+
phase: "error" | "start" | "update" | "complete";
|
|
1899
1836
|
payload?: SerializableJsonValue | undefined;
|
|
1900
1837
|
args?: SerializableJsonValue | undefined;
|
|
1901
1838
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1902
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1903
1839
|
run_id?: string | undefined;
|
|
1904
|
-
lane?: "
|
|
1840
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1905
1841
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1842
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1906
1843
|
execution_id?: string | undefined;
|
|
1907
1844
|
execution_seq?: number | undefined;
|
|
1908
1845
|
}>, z.ZodObject<{
|
|
@@ -1933,16 +1870,16 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1933
1870
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1934
1871
|
tool_name: string;
|
|
1935
1872
|
timestamp: number;
|
|
1936
|
-
phase: "error" | "start" | "update" | "complete";
|
|
1937
1873
|
conversation_id: string;
|
|
1938
1874
|
turn_id: string;
|
|
1875
|
+
phase: "error" | "start" | "update" | "complete";
|
|
1939
1876
|
payload?: SerializableJsonValue | undefined;
|
|
1940
1877
|
args?: SerializableJsonValue | undefined;
|
|
1941
1878
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1942
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1943
1879
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1944
|
-
lane?: "
|
|
1880
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1945
1881
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1882
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1946
1883
|
execution_id?: string | undefined;
|
|
1947
1884
|
execution_seq?: number | undefined;
|
|
1948
1885
|
}, {
|
|
@@ -1952,16 +1889,16 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1952
1889
|
tool_call_id: string;
|
|
1953
1890
|
tool_name: string;
|
|
1954
1891
|
timestamp: number;
|
|
1955
|
-
phase: "error" | "start" | "update" | "complete";
|
|
1956
1892
|
conversation_id: string;
|
|
1957
1893
|
turn_id: string;
|
|
1894
|
+
phase: "error" | "start" | "update" | "complete";
|
|
1958
1895
|
payload?: SerializableJsonValue | undefined;
|
|
1959
1896
|
args?: SerializableJsonValue | undefined;
|
|
1960
1897
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1961
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1962
1898
|
run_id?: string | undefined;
|
|
1963
|
-
lane?: "
|
|
1899
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1964
1900
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1901
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1965
1902
|
execution_id?: string | undefined;
|
|
1966
1903
|
execution_seq?: number | undefined;
|
|
1967
1904
|
}>, z.ZodObject<{
|
|
@@ -2044,11 +1981,11 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2044
1981
|
fileName?: string | undefined;
|
|
2045
1982
|
label?: string | undefined;
|
|
2046
1983
|
}[] | undefined;
|
|
2047
|
-
duration_ms?: number | undefined;
|
|
2048
1984
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2049
|
-
lane?: "
|
|
1985
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2050
1986
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2051
1987
|
error_code?: string | undefined;
|
|
1988
|
+
duration_ms?: number | undefined;
|
|
2052
1989
|
execution_id?: string | undefined;
|
|
2053
1990
|
execution_seq?: number | undefined;
|
|
2054
1991
|
}, {
|
|
@@ -2076,11 +2013,11 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2076
2013
|
fileName?: string | undefined;
|
|
2077
2014
|
label?: string | undefined;
|
|
2078
2015
|
}[] | undefined;
|
|
2079
|
-
duration_ms?: number | undefined;
|
|
2080
2016
|
run_id?: string | undefined;
|
|
2081
|
-
lane?: "
|
|
2017
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2082
2018
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2083
2019
|
error_code?: string | undefined;
|
|
2020
|
+
duration_ms?: number | undefined;
|
|
2084
2021
|
execution_id?: string | undefined;
|
|
2085
2022
|
execution_seq?: number | undefined;
|
|
2086
2023
|
}>, z.ZodObject<{
|
|
@@ -2168,22 +2105,22 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2168
2105
|
type: z.ZodLiteral<"subrun_trace">;
|
|
2169
2106
|
}, "strip", z.ZodTypeAny, {
|
|
2170
2107
|
id: string;
|
|
2171
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "
|
|
2108
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
2172
2109
|
type: "subrun_trace";
|
|
2173
2110
|
timestamp: number;
|
|
2111
|
+
conversation_id: string;
|
|
2112
|
+
turn_id: string;
|
|
2174
2113
|
parent_tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
2175
2114
|
subrun_id: string;
|
|
2176
2115
|
source_event_id: string;
|
|
2177
|
-
conversation_id: string;
|
|
2178
|
-
turn_id: string;
|
|
2179
2116
|
status?: "error" | "loading" | "success" | undefined;
|
|
2180
|
-
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
2181
2117
|
tool_calls?: {
|
|
2182
2118
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
2183
2119
|
tool_name: string;
|
|
2184
2120
|
args: Record<string, SerializableJsonValue>;
|
|
2185
2121
|
}[] | undefined;
|
|
2186
|
-
|
|
2122
|
+
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
2123
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
2187
2124
|
tool_name?: string | undefined;
|
|
2188
2125
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
2189
2126
|
content?: string | undefined;
|
|
@@ -2200,42 +2137,42 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2200
2137
|
fileName?: string | undefined;
|
|
2201
2138
|
label?: string | undefined;
|
|
2202
2139
|
}[] | undefined;
|
|
2203
|
-
|
|
2140
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2141
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2142
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2204
2143
|
delta?: string | undefined;
|
|
2144
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
2145
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
2146
|
+
duration_ms?: number | undefined;
|
|
2147
|
+
subrun_parent_id?: string | undefined;
|
|
2205
2148
|
answer_id?: string | undefined;
|
|
2206
2149
|
seq?: number | undefined;
|
|
2207
2150
|
is_last?: boolean | undefined;
|
|
2208
|
-
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
2209
2151
|
output?: SerializableJsonValue | undefined;
|
|
2210
|
-
duration_ms?: number | undefined;
|
|
2211
2152
|
original_message_count?: number | undefined;
|
|
2212
2153
|
compression_ratio?: number | undefined;
|
|
2213
2154
|
included_old_summary?: boolean | undefined;
|
|
2214
2155
|
replaced_message_ids?: string[] | undefined;
|
|
2215
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
2216
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2217
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
2218
|
-
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2219
2156
|
execution_id?: string | undefined;
|
|
2220
2157
|
execution_seq?: number | undefined;
|
|
2221
2158
|
}, {
|
|
2222
2159
|
id: string;
|
|
2223
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "
|
|
2160
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
2224
2161
|
type: "subrun_trace";
|
|
2225
2162
|
timestamp: number;
|
|
2163
|
+
conversation_id: string;
|
|
2164
|
+
turn_id: string;
|
|
2226
2165
|
parent_tool_call_id: string;
|
|
2227
2166
|
subrun_id: string;
|
|
2228
2167
|
source_event_id: string;
|
|
2229
|
-
conversation_id: string;
|
|
2230
|
-
turn_id: string;
|
|
2231
2168
|
status?: "error" | "loading" | "success" | undefined;
|
|
2232
|
-
tool_call_id?: string | undefined;
|
|
2233
2169
|
tool_calls?: {
|
|
2234
2170
|
tool_call_id: string;
|
|
2235
2171
|
tool_name: string;
|
|
2236
2172
|
args: Record<string, SerializableJsonValue>;
|
|
2237
2173
|
}[] | undefined;
|
|
2238
|
-
|
|
2174
|
+
tool_call_id?: string | undefined;
|
|
2175
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
2239
2176
|
tool_name?: string | undefined;
|
|
2240
2177
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
2241
2178
|
content?: string | undefined;
|
|
@@ -2252,22 +2189,22 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2252
2189
|
fileName?: string | undefined;
|
|
2253
2190
|
label?: string | undefined;
|
|
2254
2191
|
}[] | undefined;
|
|
2255
|
-
|
|
2192
|
+
run_id?: string | undefined;
|
|
2193
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2194
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2256
2195
|
delta?: string | undefined;
|
|
2196
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
2197
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
2198
|
+
duration_ms?: number | undefined;
|
|
2199
|
+
subrun_parent_id?: string | undefined;
|
|
2257
2200
|
answer_id?: string | undefined;
|
|
2258
2201
|
seq?: number | undefined;
|
|
2259
2202
|
is_last?: boolean | undefined;
|
|
2260
|
-
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
2261
2203
|
output?: SerializableJsonValue | undefined;
|
|
2262
|
-
duration_ms?: number | undefined;
|
|
2263
2204
|
original_message_count?: number | undefined;
|
|
2264
2205
|
compression_ratio?: number | undefined;
|
|
2265
2206
|
included_old_summary?: boolean | undefined;
|
|
2266
2207
|
replaced_message_ids?: string[] | undefined;
|
|
2267
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
2268
|
-
run_id?: string | undefined;
|
|
2269
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
2270
|
-
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2271
2208
|
execution_id?: string | undefined;
|
|
2272
2209
|
execution_seq?: number | undefined;
|
|
2273
2210
|
}>, z.ZodObject<{
|
|
@@ -2304,7 +2241,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2304
2241
|
resume_token: string;
|
|
2305
2242
|
interaction_status: "pending";
|
|
2306
2243
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2307
|
-
lane?: "
|
|
2244
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2308
2245
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2309
2246
|
form?: SerializableJsonValue | undefined;
|
|
2310
2247
|
interaction_type?: string | undefined;
|
|
@@ -2324,7 +2261,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2324
2261
|
resume_token: string;
|
|
2325
2262
|
interaction_status: "pending";
|
|
2326
2263
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2327
|
-
lane?: "
|
|
2264
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2328
2265
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2329
2266
|
form?: SerializableJsonValue | undefined;
|
|
2330
2267
|
interaction_type?: string | undefined;
|
|
@@ -2357,7 +2294,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2357
2294
|
turn_id: string;
|
|
2358
2295
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2359
2296
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2360
|
-
lane?: "
|
|
2297
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2361
2298
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2362
2299
|
error_code?: string | undefined;
|
|
2363
2300
|
details?: SerializableJsonValue | undefined;
|
|
@@ -2373,7 +2310,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2373
2310
|
turn_id: string;
|
|
2374
2311
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2375
2312
|
run_id?: string | undefined;
|
|
2376
|
-
lane?: "
|
|
2313
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2377
2314
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2378
2315
|
error_code?: string | undefined;
|
|
2379
2316
|
details?: SerializableJsonValue | undefined;
|
|
@@ -2407,7 +2344,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2407
2344
|
execution_id: string;
|
|
2408
2345
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2409
2346
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2410
|
-
lane?: "
|
|
2347
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2411
2348
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2412
2349
|
error_code?: string | undefined;
|
|
2413
2350
|
details?: SerializableJsonValue | undefined;
|
|
@@ -2423,7 +2360,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2423
2360
|
execution_id: string;
|
|
2424
2361
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2425
2362
|
run_id?: string | undefined;
|
|
2426
|
-
lane?: "
|
|
2363
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2427
2364
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2428
2365
|
error_code?: string | undefined;
|
|
2429
2366
|
details?: SerializableJsonValue | undefined;
|
|
@@ -2470,7 +2407,6 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2470
2407
|
measured_at: z.ZodNumber;
|
|
2471
2408
|
}, "strict", z.ZodTypeAny, {
|
|
2472
2409
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
2473
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2474
2410
|
basis: "last_completed_llm_prompt";
|
|
2475
2411
|
budget_model_id: string;
|
|
2476
2412
|
used_tokens: number;
|
|
@@ -2483,11 +2419,11 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2483
2419
|
input_budget_tokens: number;
|
|
2484
2420
|
remaining_tokens: number;
|
|
2485
2421
|
output_limit_tokens: number;
|
|
2422
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2486
2423
|
measured_at: number;
|
|
2487
2424
|
served_model_id?: string | undefined;
|
|
2488
2425
|
}, {
|
|
2489
2426
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
2490
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2491
2427
|
basis: "last_completed_llm_prompt";
|
|
2492
2428
|
budget_model_id: string;
|
|
2493
2429
|
used_tokens: number;
|
|
@@ -2500,11 +2436,11 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2500
2436
|
input_budget_tokens: number;
|
|
2501
2437
|
remaining_tokens: number;
|
|
2502
2438
|
output_limit_tokens: number;
|
|
2439
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2503
2440
|
measured_at: number;
|
|
2504
2441
|
served_model_id?: string | undefined;
|
|
2505
2442
|
}>, {
|
|
2506
2443
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
2507
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2508
2444
|
basis: "last_completed_llm_prompt";
|
|
2509
2445
|
budget_model_id: string;
|
|
2510
2446
|
used_tokens: number;
|
|
@@ -2517,11 +2453,11 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2517
2453
|
input_budget_tokens: number;
|
|
2518
2454
|
remaining_tokens: number;
|
|
2519
2455
|
output_limit_tokens: number;
|
|
2456
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2520
2457
|
measured_at: number;
|
|
2521
2458
|
served_model_id?: string | undefined;
|
|
2522
2459
|
}, {
|
|
2523
2460
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
2524
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2525
2461
|
basis: "last_completed_llm_prompt";
|
|
2526
2462
|
budget_model_id: string;
|
|
2527
2463
|
used_tokens: number;
|
|
@@ -2534,6 +2470,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2534
2470
|
input_budget_tokens: number;
|
|
2535
2471
|
remaining_tokens: number;
|
|
2536
2472
|
output_limit_tokens: number;
|
|
2473
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2537
2474
|
measured_at: number;
|
|
2538
2475
|
served_model_id?: string | undefined;
|
|
2539
2476
|
}>;
|
|
@@ -2545,7 +2482,6 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2545
2482
|
turn_id: string;
|
|
2546
2483
|
context_usage: {
|
|
2547
2484
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
2548
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2549
2485
|
basis: "last_completed_llm_prompt";
|
|
2550
2486
|
budget_model_id: string;
|
|
2551
2487
|
used_tokens: number;
|
|
@@ -2558,12 +2494,13 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2558
2494
|
input_budget_tokens: number;
|
|
2559
2495
|
remaining_tokens: number;
|
|
2560
2496
|
output_limit_tokens: number;
|
|
2497
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2561
2498
|
measured_at: number;
|
|
2562
2499
|
served_model_id?: string | undefined;
|
|
2563
2500
|
};
|
|
2564
2501
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2565
2502
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2566
|
-
lane?: "
|
|
2503
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2567
2504
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2568
2505
|
user_message_id?: string | undefined;
|
|
2569
2506
|
execution_id?: string | undefined;
|
|
@@ -2576,7 +2513,6 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2576
2513
|
turn_id: string;
|
|
2577
2514
|
context_usage: {
|
|
2578
2515
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
2579
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2580
2516
|
basis: "last_completed_llm_prompt";
|
|
2581
2517
|
budget_model_id: string;
|
|
2582
2518
|
used_tokens: number;
|
|
@@ -2589,12 +2525,13 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2589
2525
|
input_budget_tokens: number;
|
|
2590
2526
|
remaining_tokens: number;
|
|
2591
2527
|
output_limit_tokens: number;
|
|
2528
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2592
2529
|
measured_at: number;
|
|
2593
2530
|
served_model_id?: string | undefined;
|
|
2594
2531
|
};
|
|
2595
2532
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2596
2533
|
run_id?: string | undefined;
|
|
2597
|
-
lane?: "
|
|
2534
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2598
2535
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2599
2536
|
user_message_id?: string | undefined;
|
|
2600
2537
|
execution_id?: string | undefined;
|
|
@@ -2642,7 +2579,6 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2642
2579
|
measured_at: z.ZodNumber;
|
|
2643
2580
|
}, "strict", z.ZodTypeAny, {
|
|
2644
2581
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
2645
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2646
2582
|
basis: "last_completed_llm_prompt";
|
|
2647
2583
|
budget_model_id: string;
|
|
2648
2584
|
used_tokens: number;
|
|
@@ -2655,11 +2591,11 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2655
2591
|
input_budget_tokens: number;
|
|
2656
2592
|
remaining_tokens: number;
|
|
2657
2593
|
output_limit_tokens: number;
|
|
2594
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2658
2595
|
measured_at: number;
|
|
2659
2596
|
served_model_id?: string | undefined;
|
|
2660
2597
|
}, {
|
|
2661
2598
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
2662
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2663
2599
|
basis: "last_completed_llm_prompt";
|
|
2664
2600
|
budget_model_id: string;
|
|
2665
2601
|
used_tokens: number;
|
|
@@ -2672,11 +2608,11 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2672
2608
|
input_budget_tokens: number;
|
|
2673
2609
|
remaining_tokens: number;
|
|
2674
2610
|
output_limit_tokens: number;
|
|
2611
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2675
2612
|
measured_at: number;
|
|
2676
2613
|
served_model_id?: string | undefined;
|
|
2677
2614
|
}>, {
|
|
2678
2615
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
2679
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2680
2616
|
basis: "last_completed_llm_prompt";
|
|
2681
2617
|
budget_model_id: string;
|
|
2682
2618
|
used_tokens: number;
|
|
@@ -2689,11 +2625,11 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2689
2625
|
input_budget_tokens: number;
|
|
2690
2626
|
remaining_tokens: number;
|
|
2691
2627
|
output_limit_tokens: number;
|
|
2628
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2692
2629
|
measured_at: number;
|
|
2693
2630
|
served_model_id?: string | undefined;
|
|
2694
2631
|
}, {
|
|
2695
2632
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
2696
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2697
2633
|
basis: "last_completed_llm_prompt";
|
|
2698
2634
|
budget_model_id: string;
|
|
2699
2635
|
used_tokens: number;
|
|
@@ -2706,6 +2642,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2706
2642
|
input_budget_tokens: number;
|
|
2707
2643
|
remaining_tokens: number;
|
|
2708
2644
|
output_limit_tokens: number;
|
|
2645
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2709
2646
|
measured_at: number;
|
|
2710
2647
|
served_model_id?: string | undefined;
|
|
2711
2648
|
}>>;
|
|
@@ -2714,18 +2651,17 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2714
2651
|
type: "run_execution_metrics";
|
|
2715
2652
|
timestamp: number;
|
|
2716
2653
|
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
2717
|
-
duration_ms: number;
|
|
2718
2654
|
conversation_id: string;
|
|
2719
2655
|
turn_id: string;
|
|
2656
|
+
duration_ms: number;
|
|
2720
2657
|
execution_id: string;
|
|
2721
2658
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2722
2659
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2723
|
-
lane?: "
|
|
2660
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2724
2661
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2725
2662
|
user_message_id?: string | undefined;
|
|
2726
2663
|
context_usage?: {
|
|
2727
2664
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
2728
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2729
2665
|
basis: "last_completed_llm_prompt";
|
|
2730
2666
|
budget_model_id: string;
|
|
2731
2667
|
used_tokens: number;
|
|
@@ -2738,6 +2674,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2738
2674
|
input_budget_tokens: number;
|
|
2739
2675
|
remaining_tokens: number;
|
|
2740
2676
|
output_limit_tokens: number;
|
|
2677
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2741
2678
|
measured_at: number;
|
|
2742
2679
|
served_model_id?: string | undefined;
|
|
2743
2680
|
} | undefined;
|
|
@@ -2747,18 +2684,17 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2747
2684
|
type: "run_execution_metrics";
|
|
2748
2685
|
timestamp: number;
|
|
2749
2686
|
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
2750
|
-
duration_ms: number;
|
|
2751
2687
|
conversation_id: string;
|
|
2752
2688
|
turn_id: string;
|
|
2689
|
+
duration_ms: number;
|
|
2753
2690
|
execution_id: string;
|
|
2754
2691
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2755
2692
|
run_id?: string | undefined;
|
|
2756
|
-
lane?: "
|
|
2693
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2757
2694
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2758
2695
|
user_message_id?: string | undefined;
|
|
2759
2696
|
context_usage?: {
|
|
2760
2697
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
2761
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2762
2698
|
basis: "last_completed_llm_prompt";
|
|
2763
2699
|
budget_model_id: string;
|
|
2764
2700
|
used_tokens: number;
|
|
@@ -2771,6 +2707,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2771
2707
|
input_budget_tokens: number;
|
|
2772
2708
|
remaining_tokens: number;
|
|
2773
2709
|
output_limit_tokens: number;
|
|
2710
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
2774
2711
|
measured_at: number;
|
|
2775
2712
|
served_model_id?: string | undefined;
|
|
2776
2713
|
} | undefined;
|
|
@@ -2800,7 +2737,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2800
2737
|
turn_id: string;
|
|
2801
2738
|
execution_id: string;
|
|
2802
2739
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2803
|
-
lane?: "
|
|
2740
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2804
2741
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2805
2742
|
execution_seq?: number | undefined;
|
|
2806
2743
|
reason_message?: string | undefined;
|
|
@@ -2814,7 +2751,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2814
2751
|
turn_id: string;
|
|
2815
2752
|
execution_id: string;
|
|
2816
2753
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2817
|
-
lane?: "
|
|
2754
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2818
2755
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2819
2756
|
execution_seq?: number | undefined;
|
|
2820
2757
|
reason_message?: string | undefined;
|
|
@@ -2843,7 +2780,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2843
2780
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2844
2781
|
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
2845
2782
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2846
|
-
lane?: "
|
|
2783
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2847
2784
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2848
2785
|
execution_seq?: number | undefined;
|
|
2849
2786
|
reason_message?: string | undefined;
|
|
@@ -2857,7 +2794,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2857
2794
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2858
2795
|
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
2859
2796
|
run_id?: string | undefined;
|
|
2860
|
-
lane?: "
|
|
2797
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2861
2798
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2862
2799
|
execution_seq?: number | undefined;
|
|
2863
2800
|
reason_message?: string | undefined;
|
|
@@ -2887,18 +2824,18 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2887
2824
|
type: "history_summary";
|
|
2888
2825
|
content: string;
|
|
2889
2826
|
timestamp: number;
|
|
2890
|
-
original_message_count: number;
|
|
2891
|
-
replaced_message_ids: string[];
|
|
2892
2827
|
conversation_id: string;
|
|
2893
2828
|
turn_id: string;
|
|
2829
|
+
original_message_count: number;
|
|
2830
|
+
replaced_message_ids: string[];
|
|
2894
2831
|
summary_seq: number;
|
|
2895
2832
|
summary_id: string;
|
|
2896
2833
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2897
|
-
compression_ratio?: number | undefined;
|
|
2898
|
-
included_old_summary?: boolean | undefined;
|
|
2899
2834
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2900
|
-
lane?: "
|
|
2835
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2901
2836
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2837
|
+
compression_ratio?: number | undefined;
|
|
2838
|
+
included_old_summary?: boolean | undefined;
|
|
2902
2839
|
execution_id?: string | undefined;
|
|
2903
2840
|
execution_seq?: number | undefined;
|
|
2904
2841
|
}, {
|
|
@@ -2906,18 +2843,18 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2906
2843
|
type: "history_summary";
|
|
2907
2844
|
content: string;
|
|
2908
2845
|
timestamp: number;
|
|
2909
|
-
original_message_count: number;
|
|
2910
|
-
replaced_message_ids: string[];
|
|
2911
2846
|
conversation_id: string;
|
|
2912
2847
|
turn_id: string;
|
|
2848
|
+
original_message_count: number;
|
|
2849
|
+
replaced_message_ids: string[];
|
|
2913
2850
|
summary_seq: number;
|
|
2914
2851
|
summary_id: string;
|
|
2915
2852
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2916
|
-
compression_ratio?: number | undefined;
|
|
2917
|
-
included_old_summary?: boolean | undefined;
|
|
2918
2853
|
run_id?: string | undefined;
|
|
2919
|
-
lane?: "
|
|
2854
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2920
2855
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2856
|
+
compression_ratio?: number | undefined;
|
|
2857
|
+
included_old_summary?: boolean | undefined;
|
|
2921
2858
|
execution_id?: string | undefined;
|
|
2922
2859
|
execution_seq?: number | undefined;
|
|
2923
2860
|
}>, z.ZodObject<{
|
|
@@ -2944,7 +2881,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2944
2881
|
execution_id: string;
|
|
2945
2882
|
summarization_id: string;
|
|
2946
2883
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2947
|
-
lane?: "
|
|
2884
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2948
2885
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2949
2886
|
execution_seq?: number | undefined;
|
|
2950
2887
|
}, {
|
|
@@ -2957,7 +2894,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2957
2894
|
execution_id: string;
|
|
2958
2895
|
summarization_id: string;
|
|
2959
2896
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2960
|
-
lane?: "
|
|
2897
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2961
2898
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2962
2899
|
execution_seq?: number | undefined;
|
|
2963
2900
|
}>, z.ZodObject<{
|
|
@@ -2982,35 +2919,35 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2982
2919
|
id: string;
|
|
2983
2920
|
type: "summarization_end";
|
|
2984
2921
|
timestamp: number;
|
|
2985
|
-
original_message_count: number;
|
|
2986
2922
|
run_id: string & z.BRAND<"RunId">;
|
|
2987
2923
|
conversation_id: string;
|
|
2988
2924
|
turn_id: string;
|
|
2925
|
+
original_message_count: number;
|
|
2989
2926
|
execution_id: string;
|
|
2990
2927
|
summary_id: string;
|
|
2991
2928
|
summarization_id: string;
|
|
2992
2929
|
compressed_message_count: number;
|
|
2993
2930
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2994
|
-
|
|
2995
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
2931
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2996
2932
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2933
|
+
compression_ratio?: number | undefined;
|
|
2997
2934
|
execution_seq?: number | undefined;
|
|
2998
2935
|
}, {
|
|
2999
2936
|
id: string;
|
|
3000
2937
|
type: "summarization_end";
|
|
3001
2938
|
timestamp: number;
|
|
3002
|
-
original_message_count: number;
|
|
3003
2939
|
run_id: string;
|
|
3004
2940
|
conversation_id: string;
|
|
3005
2941
|
turn_id: string;
|
|
2942
|
+
original_message_count: number;
|
|
3006
2943
|
execution_id: string;
|
|
3007
2944
|
summary_id: string;
|
|
3008
2945
|
summarization_id: string;
|
|
3009
2946
|
compressed_message_count: number;
|
|
3010
2947
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3011
|
-
|
|
3012
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
2948
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3013
2949
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2950
|
+
compression_ratio?: number | undefined;
|
|
3014
2951
|
execution_seq?: number | undefined;
|
|
3015
2952
|
}>, z.ZodObject<{
|
|
3016
2953
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -3038,7 +2975,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3038
2975
|
execution_id: string;
|
|
3039
2976
|
summarization_id: string;
|
|
3040
2977
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3041
|
-
lane?: "
|
|
2978
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3042
2979
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3043
2980
|
execution_seq?: number | undefined;
|
|
3044
2981
|
}, {
|
|
@@ -3052,7 +2989,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3052
2989
|
execution_id: string;
|
|
3053
2990
|
summarization_id: string;
|
|
3054
2991
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3055
|
-
lane?: "
|
|
2992
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3056
2993
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3057
2994
|
execution_seq?: number | undefined;
|
|
3058
2995
|
}>]>, {
|
|
@@ -3064,27 +3001,27 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3064
3001
|
is_complete: boolean;
|
|
3065
3002
|
content?: string | undefined;
|
|
3066
3003
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3067
|
-
delta?: string | undefined;
|
|
3068
3004
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3069
|
-
lane?: "
|
|
3005
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3070
3006
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3071
3007
|
thought_message_id?: string | undefined;
|
|
3008
|
+
delta?: string | undefined;
|
|
3072
3009
|
execution_id?: string | undefined;
|
|
3073
3010
|
execution_seq?: number | undefined;
|
|
3074
3011
|
} | {
|
|
3075
3012
|
id: string;
|
|
3076
3013
|
type: "final_answer_chunk";
|
|
3077
3014
|
timestamp: number;
|
|
3078
|
-
answer_id: string;
|
|
3079
|
-
seq: number;
|
|
3080
3015
|
conversation_id: string;
|
|
3081
3016
|
turn_id: string;
|
|
3017
|
+
answer_id: string;
|
|
3018
|
+
seq: number;
|
|
3082
3019
|
chunk: string;
|
|
3083
3020
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3084
|
-
is_last?: boolean | undefined;
|
|
3085
3021
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3086
|
-
lane?: "
|
|
3022
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3087
3023
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3024
|
+
is_last?: boolean | undefined;
|
|
3088
3025
|
execution_id?: string | undefined;
|
|
3089
3026
|
execution_seq?: number | undefined;
|
|
3090
3027
|
} | {
|
|
@@ -3094,27 +3031,27 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3094
3031
|
conversation_id: string;
|
|
3095
3032
|
turn_id: string;
|
|
3096
3033
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3097
|
-
answer_id?: string | undefined;
|
|
3098
3034
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3099
|
-
lane?: "
|
|
3035
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3100
3036
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3037
|
+
answer_id?: string | undefined;
|
|
3101
3038
|
thought_message_ids?: string[] | undefined;
|
|
3102
3039
|
execution_id?: string | undefined;
|
|
3103
3040
|
execution_seq?: number | undefined;
|
|
3104
3041
|
} | {
|
|
3105
3042
|
id: string;
|
|
3106
3043
|
type: "final_answer";
|
|
3107
|
-
completion_reason: "
|
|
3044
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
3108
3045
|
content: string;
|
|
3109
3046
|
timestamp: number;
|
|
3110
|
-
answer_id: string;
|
|
3111
3047
|
conversation_id: string;
|
|
3112
3048
|
turn_id: string;
|
|
3049
|
+
answer_id: string;
|
|
3113
3050
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3114
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3115
3051
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3116
|
-
lane?: "
|
|
3052
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3117
3053
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3054
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3118
3055
|
execution_id?: string | undefined;
|
|
3119
3056
|
execution_seq?: number | undefined;
|
|
3120
3057
|
} | {
|
|
@@ -3126,10 +3063,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3126
3063
|
turn_id: string;
|
|
3127
3064
|
content_type: "code" | "image" | "text" | "table";
|
|
3128
3065
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3129
|
-
seq?: number | undefined;
|
|
3130
3066
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3131
|
-
lane?: "
|
|
3067
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3132
3068
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3069
|
+
seq?: number | undefined;
|
|
3133
3070
|
execution_id?: string | undefined;
|
|
3134
3071
|
execution_seq?: number | undefined;
|
|
3135
3072
|
} | {
|
|
@@ -3139,16 +3076,16 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3139
3076
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3140
3077
|
tool_name: string;
|
|
3141
3078
|
timestamp: number;
|
|
3142
|
-
phase: "error" | "start" | "update" | "complete";
|
|
3143
3079
|
conversation_id: string;
|
|
3144
3080
|
turn_id: string;
|
|
3081
|
+
phase: "error" | "start" | "update" | "complete";
|
|
3145
3082
|
payload?: SerializableJsonValue | undefined;
|
|
3146
3083
|
args?: SerializableJsonValue | undefined;
|
|
3147
3084
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3148
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3149
3085
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3150
|
-
lane?: "
|
|
3086
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3151
3087
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3088
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3152
3089
|
execution_id?: string | undefined;
|
|
3153
3090
|
execution_seq?: number | undefined;
|
|
3154
3091
|
} | {
|
|
@@ -3158,16 +3095,16 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3158
3095
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3159
3096
|
tool_name: string;
|
|
3160
3097
|
timestamp: number;
|
|
3161
|
-
phase: "error" | "start" | "update" | "complete";
|
|
3162
3098
|
conversation_id: string;
|
|
3163
3099
|
turn_id: string;
|
|
3100
|
+
phase: "error" | "start" | "update" | "complete";
|
|
3164
3101
|
payload?: SerializableJsonValue | undefined;
|
|
3165
3102
|
args?: SerializableJsonValue | undefined;
|
|
3166
3103
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3167
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3168
3104
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3169
|
-
lane?: "
|
|
3105
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3170
3106
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3107
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3171
3108
|
execution_id?: string | undefined;
|
|
3172
3109
|
execution_seq?: number | undefined;
|
|
3173
3110
|
} | {
|
|
@@ -3195,31 +3132,31 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3195
3132
|
fileName?: string | undefined;
|
|
3196
3133
|
label?: string | undefined;
|
|
3197
3134
|
}[] | undefined;
|
|
3198
|
-
duration_ms?: number | undefined;
|
|
3199
3135
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3200
|
-
lane?: "
|
|
3136
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3201
3137
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3202
3138
|
error_code?: string | undefined;
|
|
3139
|
+
duration_ms?: number | undefined;
|
|
3203
3140
|
execution_id?: string | undefined;
|
|
3204
3141
|
execution_seq?: number | undefined;
|
|
3205
3142
|
} | {
|
|
3206
3143
|
id: string;
|
|
3207
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "
|
|
3144
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
3208
3145
|
type: "subrun_trace";
|
|
3209
3146
|
timestamp: number;
|
|
3147
|
+
conversation_id: string;
|
|
3148
|
+
turn_id: string;
|
|
3210
3149
|
parent_tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3211
3150
|
subrun_id: string;
|
|
3212
3151
|
source_event_id: string;
|
|
3213
|
-
conversation_id: string;
|
|
3214
|
-
turn_id: string;
|
|
3215
3152
|
status?: "error" | "loading" | "success" | undefined;
|
|
3216
|
-
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
3217
3153
|
tool_calls?: {
|
|
3218
3154
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3219
3155
|
tool_name: string;
|
|
3220
3156
|
args: Record<string, SerializableJsonValue>;
|
|
3221
3157
|
}[] | undefined;
|
|
3222
|
-
|
|
3158
|
+
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
3159
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
3223
3160
|
tool_name?: string | undefined;
|
|
3224
3161
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3225
3162
|
content?: string | undefined;
|
|
@@ -3236,22 +3173,22 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3236
3173
|
fileName?: string | undefined;
|
|
3237
3174
|
label?: string | undefined;
|
|
3238
3175
|
}[] | undefined;
|
|
3239
|
-
|
|
3176
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3177
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3178
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3240
3179
|
delta?: string | undefined;
|
|
3180
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
3181
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3182
|
+
duration_ms?: number | undefined;
|
|
3183
|
+
subrun_parent_id?: string | undefined;
|
|
3241
3184
|
answer_id?: string | undefined;
|
|
3242
3185
|
seq?: number | undefined;
|
|
3243
3186
|
is_last?: boolean | undefined;
|
|
3244
|
-
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
3245
3187
|
output?: SerializableJsonValue | undefined;
|
|
3246
|
-
duration_ms?: number | undefined;
|
|
3247
3188
|
original_message_count?: number | undefined;
|
|
3248
3189
|
compression_ratio?: number | undefined;
|
|
3249
3190
|
included_old_summary?: boolean | undefined;
|
|
3250
3191
|
replaced_message_ids?: string[] | undefined;
|
|
3251
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3252
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3253
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
3254
|
-
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3255
3192
|
execution_id?: string | undefined;
|
|
3256
3193
|
execution_seq?: number | undefined;
|
|
3257
3194
|
} | {
|
|
@@ -3267,7 +3204,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3267
3204
|
resume_token: string;
|
|
3268
3205
|
interaction_status: "pending";
|
|
3269
3206
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3270
|
-
lane?: "
|
|
3207
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3271
3208
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3272
3209
|
form?: SerializableJsonValue | undefined;
|
|
3273
3210
|
interaction_type?: string | undefined;
|
|
@@ -3283,7 +3220,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3283
3220
|
turn_id: string;
|
|
3284
3221
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3285
3222
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3286
|
-
lane?: "
|
|
3223
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3287
3224
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3288
3225
|
error_code?: string | undefined;
|
|
3289
3226
|
details?: SerializableJsonValue | undefined;
|
|
@@ -3300,7 +3237,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3300
3237
|
execution_id: string;
|
|
3301
3238
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3302
3239
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3303
|
-
lane?: "
|
|
3240
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3304
3241
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3305
3242
|
error_code?: string | undefined;
|
|
3306
3243
|
details?: SerializableJsonValue | undefined;
|
|
@@ -3314,7 +3251,6 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3314
3251
|
turn_id: string;
|
|
3315
3252
|
context_usage: {
|
|
3316
3253
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
3317
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
3318
3254
|
basis: "last_completed_llm_prompt";
|
|
3319
3255
|
budget_model_id: string;
|
|
3320
3256
|
used_tokens: number;
|
|
@@ -3327,12 +3263,13 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3327
3263
|
input_budget_tokens: number;
|
|
3328
3264
|
remaining_tokens: number;
|
|
3329
3265
|
output_limit_tokens: number;
|
|
3266
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
3330
3267
|
measured_at: number;
|
|
3331
3268
|
served_model_id?: string | undefined;
|
|
3332
3269
|
};
|
|
3333
3270
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3334
3271
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3335
|
-
lane?: "
|
|
3272
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3336
3273
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3337
3274
|
user_message_id?: string | undefined;
|
|
3338
3275
|
execution_id?: string | undefined;
|
|
@@ -3342,18 +3279,17 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3342
3279
|
type: "run_execution_metrics";
|
|
3343
3280
|
timestamp: number;
|
|
3344
3281
|
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
3345
|
-
duration_ms: number;
|
|
3346
3282
|
conversation_id: string;
|
|
3347
3283
|
turn_id: string;
|
|
3284
|
+
duration_ms: number;
|
|
3348
3285
|
execution_id: string;
|
|
3349
3286
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3350
3287
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3351
|
-
lane?: "
|
|
3288
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3352
3289
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3353
3290
|
user_message_id?: string | undefined;
|
|
3354
3291
|
context_usage?: {
|
|
3355
3292
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
3356
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
3357
3293
|
basis: "last_completed_llm_prompt";
|
|
3358
3294
|
budget_model_id: string;
|
|
3359
3295
|
used_tokens: number;
|
|
@@ -3366,6 +3302,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3366
3302
|
input_budget_tokens: number;
|
|
3367
3303
|
remaining_tokens: number;
|
|
3368
3304
|
output_limit_tokens: number;
|
|
3305
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
3369
3306
|
measured_at: number;
|
|
3370
3307
|
served_model_id?: string | undefined;
|
|
3371
3308
|
} | undefined;
|
|
@@ -3380,7 +3317,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3380
3317
|
turn_id: string;
|
|
3381
3318
|
execution_id: string;
|
|
3382
3319
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3383
|
-
lane?: "
|
|
3320
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3384
3321
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3385
3322
|
execution_seq?: number | undefined;
|
|
3386
3323
|
reason_message?: string | undefined;
|
|
@@ -3394,7 +3331,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3394
3331
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3395
3332
|
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
3396
3333
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3397
|
-
lane?: "
|
|
3334
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3398
3335
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3399
3336
|
execution_seq?: number | undefined;
|
|
3400
3337
|
reason_message?: string | undefined;
|
|
@@ -3403,18 +3340,18 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3403
3340
|
type: "history_summary";
|
|
3404
3341
|
content: string;
|
|
3405
3342
|
timestamp: number;
|
|
3406
|
-
original_message_count: number;
|
|
3407
|
-
replaced_message_ids: string[];
|
|
3408
3343
|
conversation_id: string;
|
|
3409
3344
|
turn_id: string;
|
|
3345
|
+
original_message_count: number;
|
|
3346
|
+
replaced_message_ids: string[];
|
|
3410
3347
|
summary_seq: number;
|
|
3411
3348
|
summary_id: string;
|
|
3412
3349
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3413
|
-
compression_ratio?: number | undefined;
|
|
3414
|
-
included_old_summary?: boolean | undefined;
|
|
3415
3350
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3416
|
-
lane?: "
|
|
3351
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3417
3352
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3353
|
+
compression_ratio?: number | undefined;
|
|
3354
|
+
included_old_summary?: boolean | undefined;
|
|
3418
3355
|
execution_id?: string | undefined;
|
|
3419
3356
|
execution_seq?: number | undefined;
|
|
3420
3357
|
} | {
|
|
@@ -3427,25 +3364,25 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3427
3364
|
execution_id: string;
|
|
3428
3365
|
summarization_id: string;
|
|
3429
3366
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3430
|
-
lane?: "
|
|
3367
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3431
3368
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3432
3369
|
execution_seq?: number | undefined;
|
|
3433
3370
|
} | {
|
|
3434
3371
|
id: string;
|
|
3435
3372
|
type: "summarization_end";
|
|
3436
3373
|
timestamp: number;
|
|
3437
|
-
original_message_count: number;
|
|
3438
3374
|
run_id: string & z.BRAND<"RunId">;
|
|
3439
3375
|
conversation_id: string;
|
|
3440
3376
|
turn_id: string;
|
|
3377
|
+
original_message_count: number;
|
|
3441
3378
|
execution_id: string;
|
|
3442
3379
|
summary_id: string;
|
|
3443
3380
|
summarization_id: string;
|
|
3444
3381
|
compressed_message_count: number;
|
|
3445
3382
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3446
|
-
|
|
3447
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
3383
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3448
3384
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3385
|
+
compression_ratio?: number | undefined;
|
|
3449
3386
|
execution_seq?: number | undefined;
|
|
3450
3387
|
} | {
|
|
3451
3388
|
id: string;
|
|
@@ -3458,7 +3395,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3458
3395
|
execution_id: string;
|
|
3459
3396
|
summarization_id: string;
|
|
3460
3397
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3461
|
-
lane?: "
|
|
3398
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3462
3399
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3463
3400
|
execution_seq?: number | undefined;
|
|
3464
3401
|
}, {
|
|
@@ -3469,11 +3406,11 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3469
3406
|
turn_id: string;
|
|
3470
3407
|
content?: string | undefined;
|
|
3471
3408
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3472
|
-
delta?: string | undefined;
|
|
3473
3409
|
run_id?: string | undefined;
|
|
3474
|
-
lane?: "
|
|
3410
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3475
3411
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3476
3412
|
thought_message_id?: string | undefined;
|
|
3413
|
+
delta?: string | undefined;
|
|
3477
3414
|
is_complete?: boolean | undefined;
|
|
3478
3415
|
execution_id?: string | undefined;
|
|
3479
3416
|
execution_seq?: number | undefined;
|
|
@@ -3481,16 +3418,16 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3481
3418
|
id: string;
|
|
3482
3419
|
type: "final_answer_chunk";
|
|
3483
3420
|
timestamp: number;
|
|
3484
|
-
answer_id: string;
|
|
3485
|
-
seq: number;
|
|
3486
3421
|
conversation_id: string;
|
|
3487
3422
|
turn_id: string;
|
|
3423
|
+
answer_id: string;
|
|
3424
|
+
seq: number;
|
|
3488
3425
|
chunk: string;
|
|
3489
3426
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3490
|
-
is_last?: boolean | undefined;
|
|
3491
3427
|
run_id?: string | undefined;
|
|
3492
|
-
lane?: "
|
|
3428
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3493
3429
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3430
|
+
is_last?: boolean | undefined;
|
|
3494
3431
|
execution_id?: string | undefined;
|
|
3495
3432
|
execution_seq?: number | undefined;
|
|
3496
3433
|
} | {
|
|
@@ -3500,27 +3437,27 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3500
3437
|
conversation_id: string;
|
|
3501
3438
|
turn_id: string;
|
|
3502
3439
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3503
|
-
answer_id?: string | undefined;
|
|
3504
3440
|
run_id?: string | undefined;
|
|
3505
|
-
lane?: "
|
|
3441
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3506
3442
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3443
|
+
answer_id?: string | undefined;
|
|
3507
3444
|
thought_message_ids?: string[] | undefined;
|
|
3508
3445
|
execution_id?: string | undefined;
|
|
3509
3446
|
execution_seq?: number | undefined;
|
|
3510
3447
|
} | {
|
|
3511
3448
|
id: string;
|
|
3512
3449
|
type: "final_answer";
|
|
3513
|
-
completion_reason: "
|
|
3450
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
3514
3451
|
content: string;
|
|
3515
3452
|
timestamp: number;
|
|
3516
|
-
answer_id: string;
|
|
3517
3453
|
conversation_id: string;
|
|
3518
3454
|
turn_id: string;
|
|
3455
|
+
answer_id: string;
|
|
3519
3456
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3520
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3521
3457
|
run_id?: string | undefined;
|
|
3522
|
-
lane?: "
|
|
3458
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3523
3459
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3460
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3524
3461
|
execution_id?: string | undefined;
|
|
3525
3462
|
execution_seq?: number | undefined;
|
|
3526
3463
|
} | {
|
|
@@ -3531,10 +3468,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3531
3468
|
conversation_id: string;
|
|
3532
3469
|
turn_id: string;
|
|
3533
3470
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3534
|
-
seq?: number | undefined;
|
|
3535
3471
|
run_id?: string | undefined;
|
|
3536
|
-
lane?: "
|
|
3472
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3537
3473
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3474
|
+
seq?: number | undefined;
|
|
3538
3475
|
execution_id?: string | undefined;
|
|
3539
3476
|
execution_seq?: number | undefined;
|
|
3540
3477
|
content_type?: "code" | "image" | "text" | "table" | undefined;
|
|
@@ -3545,16 +3482,16 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3545
3482
|
tool_call_id: string;
|
|
3546
3483
|
tool_name: string;
|
|
3547
3484
|
timestamp: number;
|
|
3548
|
-
phase: "error" | "start" | "update" | "complete";
|
|
3549
3485
|
conversation_id: string;
|
|
3550
3486
|
turn_id: string;
|
|
3487
|
+
phase: "error" | "start" | "update" | "complete";
|
|
3551
3488
|
payload?: SerializableJsonValue | undefined;
|
|
3552
3489
|
args?: SerializableJsonValue | undefined;
|
|
3553
3490
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3554
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3555
3491
|
run_id?: string | undefined;
|
|
3556
|
-
lane?: "
|
|
3492
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3557
3493
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3494
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3558
3495
|
execution_id?: string | undefined;
|
|
3559
3496
|
execution_seq?: number | undefined;
|
|
3560
3497
|
} | {
|
|
@@ -3564,16 +3501,16 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3564
3501
|
tool_call_id: string;
|
|
3565
3502
|
tool_name: string;
|
|
3566
3503
|
timestamp: number;
|
|
3567
|
-
phase: "error" | "start" | "update" | "complete";
|
|
3568
3504
|
conversation_id: string;
|
|
3569
3505
|
turn_id: string;
|
|
3506
|
+
phase: "error" | "start" | "update" | "complete";
|
|
3570
3507
|
payload?: SerializableJsonValue | undefined;
|
|
3571
3508
|
args?: SerializableJsonValue | undefined;
|
|
3572
3509
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3573
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3574
3510
|
run_id?: string | undefined;
|
|
3575
|
-
lane?: "
|
|
3511
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3576
3512
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3513
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3577
3514
|
execution_id?: string | undefined;
|
|
3578
3515
|
execution_seq?: number | undefined;
|
|
3579
3516
|
} | {
|
|
@@ -3601,31 +3538,31 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3601
3538
|
fileName?: string | undefined;
|
|
3602
3539
|
label?: string | undefined;
|
|
3603
3540
|
}[] | undefined;
|
|
3604
|
-
duration_ms?: number | undefined;
|
|
3605
3541
|
run_id?: string | undefined;
|
|
3606
|
-
lane?: "
|
|
3542
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3607
3543
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3608
3544
|
error_code?: string | undefined;
|
|
3545
|
+
duration_ms?: number | undefined;
|
|
3609
3546
|
execution_id?: string | undefined;
|
|
3610
3547
|
execution_seq?: number | undefined;
|
|
3611
3548
|
} | {
|
|
3612
3549
|
id: string;
|
|
3613
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "
|
|
3550
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
3614
3551
|
type: "subrun_trace";
|
|
3615
3552
|
timestamp: number;
|
|
3553
|
+
conversation_id: string;
|
|
3554
|
+
turn_id: string;
|
|
3616
3555
|
parent_tool_call_id: string;
|
|
3617
3556
|
subrun_id: string;
|
|
3618
3557
|
source_event_id: string;
|
|
3619
|
-
conversation_id: string;
|
|
3620
|
-
turn_id: string;
|
|
3621
3558
|
status?: "error" | "loading" | "success" | undefined;
|
|
3622
|
-
tool_call_id?: string | undefined;
|
|
3623
3559
|
tool_calls?: {
|
|
3624
3560
|
tool_call_id: string;
|
|
3625
3561
|
tool_name: string;
|
|
3626
3562
|
args: Record<string, SerializableJsonValue>;
|
|
3627
3563
|
}[] | undefined;
|
|
3628
|
-
|
|
3564
|
+
tool_call_id?: string | undefined;
|
|
3565
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
3629
3566
|
tool_name?: string | undefined;
|
|
3630
3567
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3631
3568
|
content?: string | undefined;
|
|
@@ -3642,22 +3579,22 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3642
3579
|
fileName?: string | undefined;
|
|
3643
3580
|
label?: string | undefined;
|
|
3644
3581
|
}[] | undefined;
|
|
3645
|
-
|
|
3582
|
+
run_id?: string | undefined;
|
|
3583
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3584
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3646
3585
|
delta?: string | undefined;
|
|
3586
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
3587
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3588
|
+
duration_ms?: number | undefined;
|
|
3589
|
+
subrun_parent_id?: string | undefined;
|
|
3647
3590
|
answer_id?: string | undefined;
|
|
3648
3591
|
seq?: number | undefined;
|
|
3649
3592
|
is_last?: boolean | undefined;
|
|
3650
|
-
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
3651
3593
|
output?: SerializableJsonValue | undefined;
|
|
3652
|
-
duration_ms?: number | undefined;
|
|
3653
3594
|
original_message_count?: number | undefined;
|
|
3654
3595
|
compression_ratio?: number | undefined;
|
|
3655
3596
|
included_old_summary?: boolean | undefined;
|
|
3656
3597
|
replaced_message_ids?: string[] | undefined;
|
|
3657
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3658
|
-
run_id?: string | undefined;
|
|
3659
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
3660
|
-
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3661
3598
|
execution_id?: string | undefined;
|
|
3662
3599
|
execution_seq?: number | undefined;
|
|
3663
3600
|
} | {
|
|
@@ -3673,7 +3610,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3673
3610
|
resume_token: string;
|
|
3674
3611
|
interaction_status: "pending";
|
|
3675
3612
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3676
|
-
lane?: "
|
|
3613
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3677
3614
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3678
3615
|
form?: SerializableJsonValue | undefined;
|
|
3679
3616
|
interaction_type?: string | undefined;
|
|
@@ -3689,7 +3626,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3689
3626
|
turn_id: string;
|
|
3690
3627
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3691
3628
|
run_id?: string | undefined;
|
|
3692
|
-
lane?: "
|
|
3629
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3693
3630
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3694
3631
|
error_code?: string | undefined;
|
|
3695
3632
|
details?: SerializableJsonValue | undefined;
|
|
@@ -3706,7 +3643,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3706
3643
|
execution_id: string;
|
|
3707
3644
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3708
3645
|
run_id?: string | undefined;
|
|
3709
|
-
lane?: "
|
|
3646
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3710
3647
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3711
3648
|
error_code?: string | undefined;
|
|
3712
3649
|
details?: SerializableJsonValue | undefined;
|
|
@@ -3720,7 +3657,6 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3720
3657
|
turn_id: string;
|
|
3721
3658
|
context_usage: {
|
|
3722
3659
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
3723
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
3724
3660
|
basis: "last_completed_llm_prompt";
|
|
3725
3661
|
budget_model_id: string;
|
|
3726
3662
|
used_tokens: number;
|
|
@@ -3733,12 +3669,13 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3733
3669
|
input_budget_tokens: number;
|
|
3734
3670
|
remaining_tokens: number;
|
|
3735
3671
|
output_limit_tokens: number;
|
|
3672
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
3736
3673
|
measured_at: number;
|
|
3737
3674
|
served_model_id?: string | undefined;
|
|
3738
3675
|
};
|
|
3739
3676
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3740
3677
|
run_id?: string | undefined;
|
|
3741
|
-
lane?: "
|
|
3678
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3742
3679
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3743
3680
|
user_message_id?: string | undefined;
|
|
3744
3681
|
execution_id?: string | undefined;
|
|
@@ -3748,18 +3685,17 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3748
3685
|
type: "run_execution_metrics";
|
|
3749
3686
|
timestamp: number;
|
|
3750
3687
|
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
3751
|
-
duration_ms: number;
|
|
3752
3688
|
conversation_id: string;
|
|
3753
3689
|
turn_id: string;
|
|
3690
|
+
duration_ms: number;
|
|
3754
3691
|
execution_id: string;
|
|
3755
3692
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3756
3693
|
run_id?: string | undefined;
|
|
3757
|
-
lane?: "
|
|
3694
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3758
3695
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3759
3696
|
user_message_id?: string | undefined;
|
|
3760
3697
|
context_usage?: {
|
|
3761
3698
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
3762
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
3763
3699
|
basis: "last_completed_llm_prompt";
|
|
3764
3700
|
budget_model_id: string;
|
|
3765
3701
|
used_tokens: number;
|
|
@@ -3772,6 +3708,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3772
3708
|
input_budget_tokens: number;
|
|
3773
3709
|
remaining_tokens: number;
|
|
3774
3710
|
output_limit_tokens: number;
|
|
3711
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
3775
3712
|
measured_at: number;
|
|
3776
3713
|
served_model_id?: string | undefined;
|
|
3777
3714
|
} | undefined;
|
|
@@ -3786,7 +3723,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3786
3723
|
turn_id: string;
|
|
3787
3724
|
execution_id: string;
|
|
3788
3725
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3789
|
-
lane?: "
|
|
3726
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3790
3727
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3791
3728
|
execution_seq?: number | undefined;
|
|
3792
3729
|
reason_message?: string | undefined;
|
|
@@ -3800,7 +3737,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3800
3737
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3801
3738
|
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
3802
3739
|
run_id?: string | undefined;
|
|
3803
|
-
lane?: "
|
|
3740
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3804
3741
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3805
3742
|
execution_seq?: number | undefined;
|
|
3806
3743
|
reason_message?: string | undefined;
|
|
@@ -3809,18 +3746,18 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3809
3746
|
type: "history_summary";
|
|
3810
3747
|
content: string;
|
|
3811
3748
|
timestamp: number;
|
|
3812
|
-
original_message_count: number;
|
|
3813
|
-
replaced_message_ids: string[];
|
|
3814
3749
|
conversation_id: string;
|
|
3815
3750
|
turn_id: string;
|
|
3751
|
+
original_message_count: number;
|
|
3752
|
+
replaced_message_ids: string[];
|
|
3816
3753
|
summary_seq: number;
|
|
3817
3754
|
summary_id: string;
|
|
3818
3755
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3819
|
-
compression_ratio?: number | undefined;
|
|
3820
|
-
included_old_summary?: boolean | undefined;
|
|
3821
3756
|
run_id?: string | undefined;
|
|
3822
|
-
lane?: "
|
|
3757
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3823
3758
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3759
|
+
compression_ratio?: number | undefined;
|
|
3760
|
+
included_old_summary?: boolean | undefined;
|
|
3824
3761
|
execution_id?: string | undefined;
|
|
3825
3762
|
execution_seq?: number | undefined;
|
|
3826
3763
|
} | {
|
|
@@ -3833,25 +3770,25 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3833
3770
|
execution_id: string;
|
|
3834
3771
|
summarization_id: string;
|
|
3835
3772
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3836
|
-
lane?: "
|
|
3773
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3837
3774
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3838
3775
|
execution_seq?: number | undefined;
|
|
3839
3776
|
} | {
|
|
3840
3777
|
id: string;
|
|
3841
3778
|
type: "summarization_end";
|
|
3842
3779
|
timestamp: number;
|
|
3843
|
-
original_message_count: number;
|
|
3844
3780
|
run_id: string;
|
|
3845
3781
|
conversation_id: string;
|
|
3846
3782
|
turn_id: string;
|
|
3783
|
+
original_message_count: number;
|
|
3847
3784
|
execution_id: string;
|
|
3848
3785
|
summary_id: string;
|
|
3849
3786
|
summarization_id: string;
|
|
3850
3787
|
compressed_message_count: number;
|
|
3851
3788
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3852
|
-
|
|
3853
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
3789
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3854
3790
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3791
|
+
compression_ratio?: number | undefined;
|
|
3855
3792
|
execution_seq?: number | undefined;
|
|
3856
3793
|
} | {
|
|
3857
3794
|
id: string;
|
|
@@ -3864,7 +3801,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3864
3801
|
execution_id: string;
|
|
3865
3802
|
summarization_id: string;
|
|
3866
3803
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3867
|
-
lane?: "
|
|
3804
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3868
3805
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3869
3806
|
execution_seq?: number | undefined;
|
|
3870
3807
|
}>;
|
|
@@ -3879,11 +3816,11 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
3879
3816
|
turn_id: string;
|
|
3880
3817
|
content?: string | undefined;
|
|
3881
3818
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3882
|
-
delta?: string | undefined;
|
|
3883
3819
|
run_id?: string | undefined;
|
|
3884
|
-
lane?: "
|
|
3820
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3885
3821
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3886
3822
|
thought_message_id?: string | undefined;
|
|
3823
|
+
delta?: string | undefined;
|
|
3887
3824
|
is_complete?: boolean | undefined;
|
|
3888
3825
|
execution_id?: string | undefined;
|
|
3889
3826
|
execution_seq?: number | undefined;
|
|
@@ -3891,16 +3828,16 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
3891
3828
|
id: string;
|
|
3892
3829
|
type: "final_answer_chunk";
|
|
3893
3830
|
timestamp: number;
|
|
3894
|
-
answer_id: string;
|
|
3895
|
-
seq: number;
|
|
3896
3831
|
conversation_id: string;
|
|
3897
3832
|
turn_id: string;
|
|
3833
|
+
answer_id: string;
|
|
3834
|
+
seq: number;
|
|
3898
3835
|
chunk: string;
|
|
3899
3836
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3900
|
-
is_last?: boolean | undefined;
|
|
3901
3837
|
run_id?: string | undefined;
|
|
3902
|
-
lane?: "
|
|
3838
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3903
3839
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3840
|
+
is_last?: boolean | undefined;
|
|
3904
3841
|
execution_id?: string | undefined;
|
|
3905
3842
|
execution_seq?: number | undefined;
|
|
3906
3843
|
} | {
|
|
@@ -3910,27 +3847,27 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
3910
3847
|
conversation_id: string;
|
|
3911
3848
|
turn_id: string;
|
|
3912
3849
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3913
|
-
answer_id?: string | undefined;
|
|
3914
3850
|
run_id?: string | undefined;
|
|
3915
|
-
lane?: "
|
|
3851
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3916
3852
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3853
|
+
answer_id?: string | undefined;
|
|
3917
3854
|
thought_message_ids?: string[] | undefined;
|
|
3918
3855
|
execution_id?: string | undefined;
|
|
3919
3856
|
execution_seq?: number | undefined;
|
|
3920
3857
|
} | {
|
|
3921
3858
|
id: string;
|
|
3922
3859
|
type: "final_answer";
|
|
3923
|
-
completion_reason: "
|
|
3860
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
3924
3861
|
content: string;
|
|
3925
3862
|
timestamp: number;
|
|
3926
|
-
answer_id: string;
|
|
3927
3863
|
conversation_id: string;
|
|
3928
3864
|
turn_id: string;
|
|
3865
|
+
answer_id: string;
|
|
3929
3866
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3930
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3931
3867
|
run_id?: string | undefined;
|
|
3932
|
-
lane?: "
|
|
3868
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3933
3869
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3870
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3934
3871
|
execution_id?: string | undefined;
|
|
3935
3872
|
execution_seq?: number | undefined;
|
|
3936
3873
|
} | {
|
|
@@ -3941,10 +3878,10 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
3941
3878
|
conversation_id: string;
|
|
3942
3879
|
turn_id: string;
|
|
3943
3880
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3944
|
-
seq?: number | undefined;
|
|
3945
3881
|
run_id?: string | undefined;
|
|
3946
|
-
lane?: "
|
|
3882
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3947
3883
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3884
|
+
seq?: number | undefined;
|
|
3948
3885
|
execution_id?: string | undefined;
|
|
3949
3886
|
execution_seq?: number | undefined;
|
|
3950
3887
|
content_type?: "code" | "image" | "text" | "table" | undefined;
|
|
@@ -3955,16 +3892,16 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
3955
3892
|
tool_call_id: string;
|
|
3956
3893
|
tool_name: string;
|
|
3957
3894
|
timestamp: number;
|
|
3958
|
-
phase: "error" | "start" | "update" | "complete";
|
|
3959
3895
|
conversation_id: string;
|
|
3960
3896
|
turn_id: string;
|
|
3897
|
+
phase: "error" | "start" | "update" | "complete";
|
|
3961
3898
|
payload?: SerializableJsonValue | undefined;
|
|
3962
3899
|
args?: SerializableJsonValue | undefined;
|
|
3963
3900
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3964
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3965
3901
|
run_id?: string | undefined;
|
|
3966
|
-
lane?: "
|
|
3902
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3967
3903
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3904
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3968
3905
|
execution_id?: string | undefined;
|
|
3969
3906
|
execution_seq?: number | undefined;
|
|
3970
3907
|
} | {
|
|
@@ -3974,16 +3911,16 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
3974
3911
|
tool_call_id: string;
|
|
3975
3912
|
tool_name: string;
|
|
3976
3913
|
timestamp: number;
|
|
3977
|
-
phase: "error" | "start" | "update" | "complete";
|
|
3978
3914
|
conversation_id: string;
|
|
3979
3915
|
turn_id: string;
|
|
3916
|
+
phase: "error" | "start" | "update" | "complete";
|
|
3980
3917
|
payload?: SerializableJsonValue | undefined;
|
|
3981
3918
|
args?: SerializableJsonValue | undefined;
|
|
3982
3919
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3983
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3984
3920
|
run_id?: string | undefined;
|
|
3985
|
-
lane?: "
|
|
3921
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3986
3922
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3923
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3987
3924
|
execution_id?: string | undefined;
|
|
3988
3925
|
execution_seq?: number | undefined;
|
|
3989
3926
|
} | {
|
|
@@ -4011,31 +3948,31 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4011
3948
|
fileName?: string | undefined;
|
|
4012
3949
|
label?: string | undefined;
|
|
4013
3950
|
}[] | undefined;
|
|
4014
|
-
duration_ms?: number | undefined;
|
|
4015
3951
|
run_id?: string | undefined;
|
|
4016
|
-
lane?: "
|
|
3952
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4017
3953
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4018
3954
|
error_code?: string | undefined;
|
|
3955
|
+
duration_ms?: number | undefined;
|
|
4019
3956
|
execution_id?: string | undefined;
|
|
4020
3957
|
execution_seq?: number | undefined;
|
|
4021
3958
|
} | {
|
|
4022
3959
|
id: string;
|
|
4023
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "
|
|
3960
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
4024
3961
|
type: "subrun_trace";
|
|
4025
3962
|
timestamp: number;
|
|
3963
|
+
conversation_id: string;
|
|
3964
|
+
turn_id: string;
|
|
4026
3965
|
parent_tool_call_id: string;
|
|
4027
3966
|
subrun_id: string;
|
|
4028
3967
|
source_event_id: string;
|
|
4029
|
-
conversation_id: string;
|
|
4030
|
-
turn_id: string;
|
|
4031
3968
|
status?: "error" | "loading" | "success" | undefined;
|
|
4032
|
-
tool_call_id?: string | undefined;
|
|
4033
3969
|
tool_calls?: {
|
|
4034
3970
|
tool_call_id: string;
|
|
4035
3971
|
tool_name: string;
|
|
4036
3972
|
args: Record<string, SerializableJsonValue>;
|
|
4037
3973
|
}[] | undefined;
|
|
4038
|
-
|
|
3974
|
+
tool_call_id?: string | undefined;
|
|
3975
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
4039
3976
|
tool_name?: string | undefined;
|
|
4040
3977
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
4041
3978
|
content?: string | undefined;
|
|
@@ -4052,22 +3989,22 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4052
3989
|
fileName?: string | undefined;
|
|
4053
3990
|
label?: string | undefined;
|
|
4054
3991
|
}[] | undefined;
|
|
4055
|
-
|
|
3992
|
+
run_id?: string | undefined;
|
|
3993
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3994
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4056
3995
|
delta?: string | undefined;
|
|
3996
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
3997
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3998
|
+
duration_ms?: number | undefined;
|
|
3999
|
+
subrun_parent_id?: string | undefined;
|
|
4057
4000
|
answer_id?: string | undefined;
|
|
4058
4001
|
seq?: number | undefined;
|
|
4059
4002
|
is_last?: boolean | undefined;
|
|
4060
|
-
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
4061
4003
|
output?: SerializableJsonValue | undefined;
|
|
4062
|
-
duration_ms?: number | undefined;
|
|
4063
4004
|
original_message_count?: number | undefined;
|
|
4064
4005
|
compression_ratio?: number | undefined;
|
|
4065
4006
|
included_old_summary?: boolean | undefined;
|
|
4066
4007
|
replaced_message_ids?: string[] | undefined;
|
|
4067
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4068
|
-
run_id?: string | undefined;
|
|
4069
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
4070
|
-
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4071
4008
|
execution_id?: string | undefined;
|
|
4072
4009
|
execution_seq?: number | undefined;
|
|
4073
4010
|
} | {
|
|
@@ -4083,7 +4020,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4083
4020
|
resume_token: string;
|
|
4084
4021
|
interaction_status: "pending";
|
|
4085
4022
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4086
|
-
lane?: "
|
|
4023
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4087
4024
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4088
4025
|
form?: SerializableJsonValue | undefined;
|
|
4089
4026
|
interaction_type?: string | undefined;
|
|
@@ -4099,7 +4036,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4099
4036
|
turn_id: string;
|
|
4100
4037
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4101
4038
|
run_id?: string | undefined;
|
|
4102
|
-
lane?: "
|
|
4039
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4103
4040
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4104
4041
|
error_code?: string | undefined;
|
|
4105
4042
|
details?: SerializableJsonValue | undefined;
|
|
@@ -4116,7 +4053,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4116
4053
|
execution_id: string;
|
|
4117
4054
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4118
4055
|
run_id?: string | undefined;
|
|
4119
|
-
lane?: "
|
|
4056
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4120
4057
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4121
4058
|
error_code?: string | undefined;
|
|
4122
4059
|
details?: SerializableJsonValue | undefined;
|
|
@@ -4130,7 +4067,6 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4130
4067
|
turn_id: string;
|
|
4131
4068
|
context_usage: {
|
|
4132
4069
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
4133
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
4134
4070
|
basis: "last_completed_llm_prompt";
|
|
4135
4071
|
budget_model_id: string;
|
|
4136
4072
|
used_tokens: number;
|
|
@@ -4143,12 +4079,13 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4143
4079
|
input_budget_tokens: number;
|
|
4144
4080
|
remaining_tokens: number;
|
|
4145
4081
|
output_limit_tokens: number;
|
|
4082
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
4146
4083
|
measured_at: number;
|
|
4147
4084
|
served_model_id?: string | undefined;
|
|
4148
4085
|
};
|
|
4149
4086
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4150
4087
|
run_id?: string | undefined;
|
|
4151
|
-
lane?: "
|
|
4088
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4152
4089
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4153
4090
|
user_message_id?: string | undefined;
|
|
4154
4091
|
execution_id?: string | undefined;
|
|
@@ -4158,18 +4095,17 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4158
4095
|
type: "run_execution_metrics";
|
|
4159
4096
|
timestamp: number;
|
|
4160
4097
|
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
4161
|
-
duration_ms: number;
|
|
4162
4098
|
conversation_id: string;
|
|
4163
4099
|
turn_id: string;
|
|
4100
|
+
duration_ms: number;
|
|
4164
4101
|
execution_id: string;
|
|
4165
4102
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4166
4103
|
run_id?: string | undefined;
|
|
4167
|
-
lane?: "
|
|
4104
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4168
4105
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4169
4106
|
user_message_id?: string | undefined;
|
|
4170
4107
|
context_usage?: {
|
|
4171
4108
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
4172
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
4173
4109
|
basis: "last_completed_llm_prompt";
|
|
4174
4110
|
budget_model_id: string;
|
|
4175
4111
|
used_tokens: number;
|
|
@@ -4182,6 +4118,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4182
4118
|
input_budget_tokens: number;
|
|
4183
4119
|
remaining_tokens: number;
|
|
4184
4120
|
output_limit_tokens: number;
|
|
4121
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
4185
4122
|
measured_at: number;
|
|
4186
4123
|
served_model_id?: string | undefined;
|
|
4187
4124
|
} | undefined;
|
|
@@ -4196,7 +4133,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4196
4133
|
turn_id: string;
|
|
4197
4134
|
execution_id: string;
|
|
4198
4135
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4199
|
-
lane?: "
|
|
4136
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4200
4137
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4201
4138
|
execution_seq?: number | undefined;
|
|
4202
4139
|
reason_message?: string | undefined;
|
|
@@ -4210,7 +4147,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4210
4147
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4211
4148
|
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
4212
4149
|
run_id?: string | undefined;
|
|
4213
|
-
lane?: "
|
|
4150
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4214
4151
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4215
4152
|
execution_seq?: number | undefined;
|
|
4216
4153
|
reason_message?: string | undefined;
|
|
@@ -4219,18 +4156,18 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4219
4156
|
type: "history_summary";
|
|
4220
4157
|
content: string;
|
|
4221
4158
|
timestamp: number;
|
|
4222
|
-
original_message_count: number;
|
|
4223
|
-
replaced_message_ids: string[];
|
|
4224
4159
|
conversation_id: string;
|
|
4225
4160
|
turn_id: string;
|
|
4161
|
+
original_message_count: number;
|
|
4162
|
+
replaced_message_ids: string[];
|
|
4226
4163
|
summary_seq: number;
|
|
4227
4164
|
summary_id: string;
|
|
4228
4165
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4229
|
-
compression_ratio?: number | undefined;
|
|
4230
|
-
included_old_summary?: boolean | undefined;
|
|
4231
4166
|
run_id?: string | undefined;
|
|
4232
|
-
lane?: "
|
|
4167
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4233
4168
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4169
|
+
compression_ratio?: number | undefined;
|
|
4170
|
+
included_old_summary?: boolean | undefined;
|
|
4234
4171
|
execution_id?: string | undefined;
|
|
4235
4172
|
execution_seq?: number | undefined;
|
|
4236
4173
|
} | {
|
|
@@ -4243,25 +4180,25 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4243
4180
|
execution_id: string;
|
|
4244
4181
|
summarization_id: string;
|
|
4245
4182
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4246
|
-
lane?: "
|
|
4183
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4247
4184
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4248
4185
|
execution_seq?: number | undefined;
|
|
4249
4186
|
} | {
|
|
4250
4187
|
id: string;
|
|
4251
4188
|
type: "summarization_end";
|
|
4252
4189
|
timestamp: number;
|
|
4253
|
-
original_message_count: number;
|
|
4254
4190
|
run_id: string;
|
|
4255
4191
|
conversation_id: string;
|
|
4256
4192
|
turn_id: string;
|
|
4193
|
+
original_message_count: number;
|
|
4257
4194
|
execution_id: string;
|
|
4258
4195
|
summary_id: string;
|
|
4259
4196
|
summarization_id: string;
|
|
4260
4197
|
compressed_message_count: number;
|
|
4261
4198
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4262
|
-
|
|
4263
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
4199
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4264
4200
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4201
|
+
compression_ratio?: number | undefined;
|
|
4265
4202
|
execution_seq?: number | undefined;
|
|
4266
4203
|
} | {
|
|
4267
4204
|
id: string;
|
|
@@ -4274,7 +4211,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4274
4211
|
execution_id: string;
|
|
4275
4212
|
summarization_id: string;
|
|
4276
4213
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4277
|
-
lane?: "
|
|
4214
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4278
4215
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4279
4216
|
execution_seq?: number | undefined;
|
|
4280
4217
|
}, {
|
|
@@ -4286,27 +4223,27 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4286
4223
|
is_complete: boolean;
|
|
4287
4224
|
content?: string | undefined;
|
|
4288
4225
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4289
|
-
delta?: string | undefined;
|
|
4290
4226
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4291
|
-
lane?: "
|
|
4227
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4292
4228
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4293
4229
|
thought_message_id?: string | undefined;
|
|
4230
|
+
delta?: string | undefined;
|
|
4294
4231
|
execution_id?: string | undefined;
|
|
4295
4232
|
execution_seq?: number | undefined;
|
|
4296
4233
|
} | {
|
|
4297
4234
|
id: string;
|
|
4298
4235
|
type: "final_answer_chunk";
|
|
4299
4236
|
timestamp: number;
|
|
4300
|
-
answer_id: string;
|
|
4301
|
-
seq: number;
|
|
4302
4237
|
conversation_id: string;
|
|
4303
4238
|
turn_id: string;
|
|
4239
|
+
answer_id: string;
|
|
4240
|
+
seq: number;
|
|
4304
4241
|
chunk: string;
|
|
4305
4242
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4306
|
-
is_last?: boolean | undefined;
|
|
4307
4243
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4308
|
-
lane?: "
|
|
4244
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4309
4245
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4246
|
+
is_last?: boolean | undefined;
|
|
4310
4247
|
execution_id?: string | undefined;
|
|
4311
4248
|
execution_seq?: number | undefined;
|
|
4312
4249
|
} | {
|
|
@@ -4316,27 +4253,27 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4316
4253
|
conversation_id: string;
|
|
4317
4254
|
turn_id: string;
|
|
4318
4255
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4319
|
-
answer_id?: string | undefined;
|
|
4320
4256
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4321
|
-
lane?: "
|
|
4257
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4322
4258
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4259
|
+
answer_id?: string | undefined;
|
|
4323
4260
|
thought_message_ids?: string[] | undefined;
|
|
4324
4261
|
execution_id?: string | undefined;
|
|
4325
4262
|
execution_seq?: number | undefined;
|
|
4326
4263
|
} | {
|
|
4327
4264
|
id: string;
|
|
4328
4265
|
type: "final_answer";
|
|
4329
|
-
completion_reason: "
|
|
4266
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
4330
4267
|
content: string;
|
|
4331
4268
|
timestamp: number;
|
|
4332
|
-
answer_id: string;
|
|
4333
4269
|
conversation_id: string;
|
|
4334
4270
|
turn_id: string;
|
|
4271
|
+
answer_id: string;
|
|
4335
4272
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4336
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4337
4273
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4338
|
-
lane?: "
|
|
4274
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4339
4275
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4276
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4340
4277
|
execution_id?: string | undefined;
|
|
4341
4278
|
execution_seq?: number | undefined;
|
|
4342
4279
|
} | {
|
|
@@ -4348,10 +4285,10 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4348
4285
|
turn_id: string;
|
|
4349
4286
|
content_type: "code" | "image" | "text" | "table";
|
|
4350
4287
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4351
|
-
seq?: number | undefined;
|
|
4352
4288
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4353
|
-
lane?: "
|
|
4289
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4354
4290
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4291
|
+
seq?: number | undefined;
|
|
4355
4292
|
execution_id?: string | undefined;
|
|
4356
4293
|
execution_seq?: number | undefined;
|
|
4357
4294
|
} | {
|
|
@@ -4361,16 +4298,16 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4361
4298
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4362
4299
|
tool_name: string;
|
|
4363
4300
|
timestamp: number;
|
|
4364
|
-
phase: "error" | "start" | "update" | "complete";
|
|
4365
4301
|
conversation_id: string;
|
|
4366
4302
|
turn_id: string;
|
|
4303
|
+
phase: "error" | "start" | "update" | "complete";
|
|
4367
4304
|
payload?: SerializableJsonValue | undefined;
|
|
4368
4305
|
args?: SerializableJsonValue | undefined;
|
|
4369
4306
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4370
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4371
4307
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4372
|
-
lane?: "
|
|
4308
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4373
4309
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4310
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4374
4311
|
execution_id?: string | undefined;
|
|
4375
4312
|
execution_seq?: number | undefined;
|
|
4376
4313
|
} | {
|
|
@@ -4380,16 +4317,16 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4380
4317
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4381
4318
|
tool_name: string;
|
|
4382
4319
|
timestamp: number;
|
|
4383
|
-
phase: "error" | "start" | "update" | "complete";
|
|
4384
4320
|
conversation_id: string;
|
|
4385
4321
|
turn_id: string;
|
|
4322
|
+
phase: "error" | "start" | "update" | "complete";
|
|
4386
4323
|
payload?: SerializableJsonValue | undefined;
|
|
4387
4324
|
args?: SerializableJsonValue | undefined;
|
|
4388
4325
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4389
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4390
4326
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4391
|
-
lane?: "
|
|
4327
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4392
4328
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4329
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4393
4330
|
execution_id?: string | undefined;
|
|
4394
4331
|
execution_seq?: number | undefined;
|
|
4395
4332
|
} | {
|
|
@@ -4417,31 +4354,31 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4417
4354
|
fileName?: string | undefined;
|
|
4418
4355
|
label?: string | undefined;
|
|
4419
4356
|
}[] | undefined;
|
|
4420
|
-
duration_ms?: number | undefined;
|
|
4421
4357
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4422
|
-
lane?: "
|
|
4358
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4423
4359
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4424
4360
|
error_code?: string | undefined;
|
|
4361
|
+
duration_ms?: number | undefined;
|
|
4425
4362
|
execution_id?: string | undefined;
|
|
4426
4363
|
execution_seq?: number | undefined;
|
|
4427
4364
|
} | {
|
|
4428
4365
|
id: string;
|
|
4429
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "
|
|
4366
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
4430
4367
|
type: "subrun_trace";
|
|
4431
4368
|
timestamp: number;
|
|
4369
|
+
conversation_id: string;
|
|
4370
|
+
turn_id: string;
|
|
4432
4371
|
parent_tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4433
4372
|
subrun_id: string;
|
|
4434
4373
|
source_event_id: string;
|
|
4435
|
-
conversation_id: string;
|
|
4436
|
-
turn_id: string;
|
|
4437
4374
|
status?: "error" | "loading" | "success" | undefined;
|
|
4438
|
-
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
4439
4375
|
tool_calls?: {
|
|
4440
4376
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4441
4377
|
tool_name: string;
|
|
4442
4378
|
args: Record<string, SerializableJsonValue>;
|
|
4443
4379
|
}[] | undefined;
|
|
4444
|
-
|
|
4380
|
+
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
4381
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
4445
4382
|
tool_name?: string | undefined;
|
|
4446
4383
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
4447
4384
|
content?: string | undefined;
|
|
@@ -4458,22 +4395,22 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4458
4395
|
fileName?: string | undefined;
|
|
4459
4396
|
label?: string | undefined;
|
|
4460
4397
|
}[] | undefined;
|
|
4461
|
-
|
|
4398
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4399
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4400
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4462
4401
|
delta?: string | undefined;
|
|
4402
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
4403
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4404
|
+
duration_ms?: number | undefined;
|
|
4405
|
+
subrun_parent_id?: string | undefined;
|
|
4463
4406
|
answer_id?: string | undefined;
|
|
4464
4407
|
seq?: number | undefined;
|
|
4465
4408
|
is_last?: boolean | undefined;
|
|
4466
|
-
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
4467
4409
|
output?: SerializableJsonValue | undefined;
|
|
4468
|
-
duration_ms?: number | undefined;
|
|
4469
4410
|
original_message_count?: number | undefined;
|
|
4470
4411
|
compression_ratio?: number | undefined;
|
|
4471
4412
|
included_old_summary?: boolean | undefined;
|
|
4472
4413
|
replaced_message_ids?: string[] | undefined;
|
|
4473
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4474
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4475
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
4476
|
-
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4477
4414
|
execution_id?: string | undefined;
|
|
4478
4415
|
execution_seq?: number | undefined;
|
|
4479
4416
|
} | {
|
|
@@ -4489,7 +4426,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4489
4426
|
resume_token: string;
|
|
4490
4427
|
interaction_status: "pending";
|
|
4491
4428
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4492
|
-
lane?: "
|
|
4429
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4493
4430
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4494
4431
|
form?: SerializableJsonValue | undefined;
|
|
4495
4432
|
interaction_type?: string | undefined;
|
|
@@ -4505,7 +4442,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4505
4442
|
turn_id: string;
|
|
4506
4443
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4507
4444
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4508
|
-
lane?: "
|
|
4445
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4509
4446
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4510
4447
|
error_code?: string | undefined;
|
|
4511
4448
|
details?: SerializableJsonValue | undefined;
|
|
@@ -4522,7 +4459,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4522
4459
|
execution_id: string;
|
|
4523
4460
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4524
4461
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4525
|
-
lane?: "
|
|
4462
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4526
4463
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4527
4464
|
error_code?: string | undefined;
|
|
4528
4465
|
details?: SerializableJsonValue | undefined;
|
|
@@ -4536,7 +4473,6 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4536
4473
|
turn_id: string;
|
|
4537
4474
|
context_usage: {
|
|
4538
4475
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
4539
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
4540
4476
|
basis: "last_completed_llm_prompt";
|
|
4541
4477
|
budget_model_id: string;
|
|
4542
4478
|
used_tokens: number;
|
|
@@ -4549,12 +4485,13 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4549
4485
|
input_budget_tokens: number;
|
|
4550
4486
|
remaining_tokens: number;
|
|
4551
4487
|
output_limit_tokens: number;
|
|
4488
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
4552
4489
|
measured_at: number;
|
|
4553
4490
|
served_model_id?: string | undefined;
|
|
4554
4491
|
};
|
|
4555
4492
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4556
4493
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4557
|
-
lane?: "
|
|
4494
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4558
4495
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4559
4496
|
user_message_id?: string | undefined;
|
|
4560
4497
|
execution_id?: string | undefined;
|
|
@@ -4564,18 +4501,17 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4564
4501
|
type: "run_execution_metrics";
|
|
4565
4502
|
timestamp: number;
|
|
4566
4503
|
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
4567
|
-
duration_ms: number;
|
|
4568
4504
|
conversation_id: string;
|
|
4569
4505
|
turn_id: string;
|
|
4506
|
+
duration_ms: number;
|
|
4570
4507
|
execution_id: string;
|
|
4571
4508
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4572
4509
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4573
|
-
lane?: "
|
|
4510
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4574
4511
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4575
4512
|
user_message_id?: string | undefined;
|
|
4576
4513
|
context_usage?: {
|
|
4577
4514
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
4578
|
-
confidence: "estimate" | "provider-estimate" | "actual";
|
|
4579
4515
|
basis: "last_completed_llm_prompt";
|
|
4580
4516
|
budget_model_id: string;
|
|
4581
4517
|
used_tokens: number;
|
|
@@ -4588,6 +4524,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4588
4524
|
input_budget_tokens: number;
|
|
4589
4525
|
remaining_tokens: number;
|
|
4590
4526
|
output_limit_tokens: number;
|
|
4527
|
+
confidence: "estimate" | "provider-estimate" | "actual";
|
|
4591
4528
|
measured_at: number;
|
|
4592
4529
|
served_model_id?: string | undefined;
|
|
4593
4530
|
} | undefined;
|
|
@@ -4602,7 +4539,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4602
4539
|
turn_id: string;
|
|
4603
4540
|
execution_id: string;
|
|
4604
4541
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4605
|
-
lane?: "
|
|
4542
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4606
4543
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4607
4544
|
execution_seq?: number | undefined;
|
|
4608
4545
|
reason_message?: string | undefined;
|
|
@@ -4616,7 +4553,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4616
4553
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4617
4554
|
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
4618
4555
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4619
|
-
lane?: "
|
|
4556
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4620
4557
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4621
4558
|
execution_seq?: number | undefined;
|
|
4622
4559
|
reason_message?: string | undefined;
|
|
@@ -4625,18 +4562,18 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4625
4562
|
type: "history_summary";
|
|
4626
4563
|
content: string;
|
|
4627
4564
|
timestamp: number;
|
|
4628
|
-
original_message_count: number;
|
|
4629
|
-
replaced_message_ids: string[];
|
|
4630
4565
|
conversation_id: string;
|
|
4631
4566
|
turn_id: string;
|
|
4567
|
+
original_message_count: number;
|
|
4568
|
+
replaced_message_ids: string[];
|
|
4632
4569
|
summary_seq: number;
|
|
4633
4570
|
summary_id: string;
|
|
4634
4571
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4635
|
-
compression_ratio?: number | undefined;
|
|
4636
|
-
included_old_summary?: boolean | undefined;
|
|
4637
4572
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4638
|
-
lane?: "
|
|
4573
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4639
4574
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4575
|
+
compression_ratio?: number | undefined;
|
|
4576
|
+
included_old_summary?: boolean | undefined;
|
|
4640
4577
|
execution_id?: string | undefined;
|
|
4641
4578
|
execution_seq?: number | undefined;
|
|
4642
4579
|
} | {
|
|
@@ -4649,25 +4586,25 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4649
4586
|
execution_id: string;
|
|
4650
4587
|
summarization_id: string;
|
|
4651
4588
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4652
|
-
lane?: "
|
|
4589
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4653
4590
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4654
4591
|
execution_seq?: number | undefined;
|
|
4655
4592
|
} | {
|
|
4656
4593
|
id: string;
|
|
4657
4594
|
type: "summarization_end";
|
|
4658
4595
|
timestamp: number;
|
|
4659
|
-
original_message_count: number;
|
|
4660
4596
|
run_id: string & z.BRAND<"RunId">;
|
|
4661
4597
|
conversation_id: string;
|
|
4662
4598
|
turn_id: string;
|
|
4599
|
+
original_message_count: number;
|
|
4663
4600
|
execution_id: string;
|
|
4664
4601
|
summary_id: string;
|
|
4665
4602
|
summarization_id: string;
|
|
4666
4603
|
compressed_message_count: number;
|
|
4667
4604
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4668
|
-
|
|
4669
|
-
lane?: "child" | "foreground" | "auxiliary" | undefined;
|
|
4605
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4670
4606
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4607
|
+
compression_ratio?: number | undefined;
|
|
4671
4608
|
execution_seq?: number | undefined;
|
|
4672
4609
|
} | {
|
|
4673
4610
|
id: string;
|
|
@@ -4680,7 +4617,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4680
4617
|
execution_id: string;
|
|
4681
4618
|
summarization_id: string;
|
|
4682
4619
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4683
|
-
lane?: "
|
|
4620
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4684
4621
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4685
4622
|
execution_seq?: number | undefined;
|
|
4686
4623
|
}>;
|
|
@@ -4718,298 +4655,5 @@ declare const createSSERunStatusEvent: (id: string, conversationId: string, turn
|
|
|
4718
4655
|
declare const createSSETransportEndEvent: (id: string, conversationId: string, turnId: string, options: SSEEventCreatorOptions<SSETransportEndEvent> & Pick<SSETransportEndEvent, "execution_id">) => SSETransportEndEvent;
|
|
4719
4656
|
declare const createSSEHistorySummaryEvent: (id: string, conversationId: string, turnId: string, content: string, replacedMessageIds: readonly string[], originalMessageCount: number, summarySeq: number, options?: SSEEventCreatorOptions<SSEHistorySummaryEvent, "summary_id" | "content" | "replaced_message_ids" | "original_message_count" | "summary_seq">) => SSEHistorySummaryEvent;
|
|
4720
4657
|
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
*
|
|
4724
|
-
* 这里只表达 EventSource framing,不解释 `data` 中的 JSON 或业务事件类型。业务 payload
|
|
4725
|
-
* 必须继续由各接入方自己的 schema 在不可信边界校验。
|
|
4726
|
-
*/
|
|
4727
|
-
interface ServerSentEventFrame {
|
|
4728
|
-
readonly event?: string;
|
|
4729
|
-
readonly data: string;
|
|
4730
|
-
readonly id?: string;
|
|
4731
|
-
}
|
|
4732
|
-
/** 一个 parser 实例只消费一条字节流,`finish` 后不得复用。 */
|
|
4733
|
-
interface ServerSentEventFrameParser {
|
|
4734
|
-
feed(chunk: Uint8Array): readonly ServerSentEventFrame[];
|
|
4735
|
-
finish(): readonly ServerSentEventFrame[];
|
|
4736
|
-
}
|
|
4737
|
-
/** 把结构化 frame 序列化为可直接写入 SSE 字节流的 UTF-8 文本。 */
|
|
4738
|
-
declare function serializeServerSentEventFrame(frame: ServerSentEventFrame): string;
|
|
4739
|
-
/**
|
|
4740
|
-
* 创建 browser-safe 的 SSE framing parser。
|
|
4741
|
-
*
|
|
4742
|
-
* UTF-8 解码与 EventSource 分帧必须由同一个实例连续完成,才能正确处理任意网络 chunk
|
|
4743
|
-
* 边界、CR/LF/CRLF 以及多行 `data:`。本函数故意不解析 JSON,也不决定 EOF 的业务含义。
|
|
4744
|
-
*/
|
|
4745
|
-
declare function createServerSentEventFrameParser(): ServerSentEventFrameParser;
|
|
4746
|
-
|
|
4747
|
-
declare const index_AUDIT_ACTIONS: typeof AUDIT_ACTIONS;
|
|
4748
|
-
declare const index_AUDIT_DECISION_OUTCOMES: typeof AUDIT_DECISION_OUTCOMES;
|
|
4749
|
-
declare const index_AgentCapability: typeof AgentCapability;
|
|
4750
|
-
declare const index_AgentSpec: typeof AgentSpec;
|
|
4751
|
-
declare const index_AgentSpecAuditConfig: typeof AgentSpecAuditConfig;
|
|
4752
|
-
declare const index_AgentSpecBudgetPolicy: typeof AgentSpecBudgetPolicy;
|
|
4753
|
-
declare const index_AgentSpecContextCompactionPolicy: typeof AgentSpecContextCompactionPolicy;
|
|
4754
|
-
declare const index_AgentSpecContextPolicy: typeof AgentSpecContextPolicy;
|
|
4755
|
-
declare const index_AgentSpecContextPolicyInput: typeof AgentSpecContextPolicyInput;
|
|
4756
|
-
declare const index_AgentSpecContextTracePolicy: typeof AgentSpecContextTracePolicy;
|
|
4757
|
-
declare const index_AgentSpecMessageType: typeof AgentSpecMessageType;
|
|
4758
|
-
declare const index_AgentSpecMustKeepPolicy: typeof AgentSpecMustKeepPolicy;
|
|
4759
|
-
declare const index_AgentSpecMustKeepTruncationRule: typeof AgentSpecMustKeepTruncationRule;
|
|
4760
|
-
declare const index_AgentSpecSystemReminderExtraRule: typeof AgentSpecSystemReminderExtraRule;
|
|
4761
|
-
declare const index_AgentSpecSystemReminderPolicy: typeof AgentSpecSystemReminderPolicy;
|
|
4762
|
-
declare const index_AgentSpecSystemReminderTrigger: typeof AgentSpecSystemReminderTrigger;
|
|
4763
|
-
declare const index_AgentSpecTokenEstimationPolicy: typeof AgentSpecTokenEstimationPolicy;
|
|
4764
|
-
declare const index_AgentSpecToolHistoryPolicy: typeof AgentSpecToolHistoryPolicy;
|
|
4765
|
-
declare const index_AgentSpecToolObservationGovernancePolicy: typeof AgentSpecToolObservationGovernancePolicy;
|
|
4766
|
-
declare const index_AgentSpecToolOutputPolicy: typeof AgentSpecToolOutputPolicy;
|
|
4767
|
-
declare const index_AgentSpecWorkingMemoryPolicy: typeof AgentSpecWorkingMemoryPolicy;
|
|
4768
|
-
declare const index_AiMessage: typeof AiMessage;
|
|
4769
|
-
declare const index_AiMessageId: typeof AiMessageId;
|
|
4770
|
-
declare const index_AiMessageIdSchema: typeof AiMessageIdSchema;
|
|
4771
|
-
declare const index_AnswerSegmentId: typeof AnswerSegmentId;
|
|
4772
|
-
declare const index_AnswerSegmentIdSchema: typeof AnswerSegmentIdSchema;
|
|
4773
|
-
declare const index_AssistantMessage: typeof AssistantMessage;
|
|
4774
|
-
declare const index_AssistantReplayPart: typeof AssistantReplayPart;
|
|
4775
|
-
declare const index_AssistantReplayParts: typeof AssistantReplayParts;
|
|
4776
|
-
declare const index_AuditActor: typeof AuditActor;
|
|
4777
|
-
declare const index_AuditCostDelta: typeof AuditCostDelta;
|
|
4778
|
-
declare const index_AuditDecision: typeof AuditDecision;
|
|
4779
|
-
declare const index_AuditEnvelope: typeof AuditEnvelope;
|
|
4780
|
-
declare const index_AuditEnvelopeEvent: typeof AuditEnvelopeEvent;
|
|
4781
|
-
declare const index_AuditEnvelopeId: typeof AuditEnvelopeId;
|
|
4782
|
-
declare const index_AuditEnvelopeIdSchema: typeof AuditEnvelopeIdSchema;
|
|
4783
|
-
declare const index_AuditEvidence: typeof AuditEvidence;
|
|
4784
|
-
declare const index_AuditScope: typeof AuditScope;
|
|
4785
|
-
declare const index_BaseEvent: typeof BaseEvent;
|
|
4786
|
-
type index_BaseSSEEvent = BaseSSEEvent;
|
|
4787
|
-
declare const index_CONTEXT_COMPACTION_FAILED_ERROR_CODE: typeof CONTEXT_COMPACTION_FAILED_ERROR_CODE;
|
|
4788
|
-
declare const index_CONTEXT_COMPACTION_INSUFFICIENT_ERROR_CODE: typeof CONTEXT_COMPACTION_INSUFFICIENT_ERROR_CODE;
|
|
4789
|
-
declare const index_CanonicalLlmUsage: typeof CanonicalLlmUsage;
|
|
4790
|
-
declare const index_ContextBuildTokenEstimate: typeof ContextBuildTokenEstimate;
|
|
4791
|
-
declare const index_ContextCompactionCandidate: typeof ContextCompactionCandidate;
|
|
4792
|
-
declare const index_ContextCompactionErrorCode: typeof ContextCompactionErrorCode;
|
|
4793
|
-
declare const index_ContextCompactionPlan: typeof ContextCompactionPlan;
|
|
4794
|
-
declare const index_ContextComponentTokenLedgerEntry: typeof ContextComponentTokenLedgerEntry;
|
|
4795
|
-
declare const index_ContextLedgerEntryId: typeof ContextLedgerEntryId;
|
|
4796
|
-
declare const index_ContextLedgerEntryIdSchema: typeof ContextLedgerEntryIdSchema;
|
|
4797
|
-
declare const index_ContextTokenComponent: typeof ContextTokenComponent;
|
|
4798
|
-
declare const index_ContextTokenComponentKind: typeof ContextTokenComponentKind;
|
|
4799
|
-
declare const index_ContextUsageSnapshot: typeof ContextUsageSnapshot;
|
|
4800
|
-
declare const index_ContextUsageSnapshotEvent: typeof ContextUsageSnapshotEvent;
|
|
4801
|
-
declare const index_ControlEvent: typeof ControlEvent;
|
|
4802
|
-
declare const index_ControlTargetReferenceId: typeof ControlTargetReferenceId;
|
|
4803
|
-
declare const index_ControlTargetReferenceIdSchema: typeof ControlTargetReferenceIdSchema;
|
|
4804
|
-
declare const index_ConversationId: typeof ConversationId;
|
|
4805
|
-
declare const index_ConversationIdSchema: typeof ConversationIdSchema;
|
|
4806
|
-
declare const index_CostBreakdown: typeof CostBreakdown;
|
|
4807
|
-
declare const index_DEFAULT_CONTEXT_COMPACTION_POLICY: typeof DEFAULT_CONTEXT_COMPACTION_POLICY;
|
|
4808
|
-
declare const index_DEFAULT_MAX_STEPS: typeof DEFAULT_MAX_STEPS;
|
|
4809
|
-
declare const index_ErrorEvent: typeof ErrorEvent;
|
|
4810
|
-
declare const index_EventEnvelope: typeof EventEnvelope;
|
|
4811
|
-
declare const index_ExecutionId: typeof ExecutionId;
|
|
4812
|
-
declare const index_ExecutionIdSchema: typeof ExecutionIdSchema;
|
|
4813
|
-
declare const index_ExecutionTraceContext: typeof ExecutionTraceContext;
|
|
4814
|
-
declare const index_FinalAnswerChunkEvent: typeof FinalAnswerChunkEvent;
|
|
4815
|
-
declare const index_FinalAnswerCompletionReason: typeof FinalAnswerCompletionReason;
|
|
4816
|
-
declare const index_FinalAnswerEvent: typeof FinalAnswerEvent;
|
|
4817
|
-
declare const index_FinalAnswerResetEvent: typeof FinalAnswerResetEvent;
|
|
4818
|
-
declare const index_HistoryMessageReferenceId: typeof HistoryMessageReferenceId;
|
|
4819
|
-
declare const index_HistoryMessageReferenceIdSchema: typeof HistoryMessageReferenceIdSchema;
|
|
4820
|
-
declare const index_HistorySummaryEvent: typeof HistorySummaryEvent;
|
|
4821
|
-
declare const index_HistorySummaryMeta: typeof HistorySummaryMeta;
|
|
4822
|
-
declare const index_InteractionId: typeof InteractionId;
|
|
4823
|
-
declare const index_InteractionIdSchema: typeof InteractionIdSchema;
|
|
4824
|
-
declare const index_LlmUsageTokenLedgerEntry: typeof LlmUsageTokenLedgerEntry;
|
|
4825
|
-
declare const index_ModelReasoningConfig: typeof ModelReasoningConfig;
|
|
4826
|
-
declare const index_ObservationTruncationMeta: typeof ObservationTruncationMeta;
|
|
4827
|
-
declare const index_PersistentMetadata: typeof PersistentMetadata;
|
|
4828
|
-
declare const index_PromptUsageMeasurementPolicy: typeof PromptUsageMeasurementPolicy;
|
|
4829
|
-
declare const index_ProviderContinuation: typeof ProviderContinuation;
|
|
4830
|
-
declare const index_ProviderContinuationProducer: typeof ProviderContinuationProducer;
|
|
4831
|
-
declare const index_ProviderContinuations: typeof ProviderContinuations;
|
|
4832
|
-
declare const index_REASONING_EFFORTS: typeof REASONING_EFFORTS;
|
|
4833
|
-
declare const index_ReasoningEffort: typeof ReasoningEffort;
|
|
4834
|
-
declare const index_RequiresUserInteractionEvent: typeof RequiresUserInteractionEvent;
|
|
4835
|
-
declare const index_ResolvedContextCompactionPolicy: typeof ResolvedContextCompactionPolicy;
|
|
4836
|
-
declare const index_ResumeToken: typeof ResumeToken;
|
|
4837
|
-
declare const index_ResumeTokenSchema: typeof ResumeTokenSchema;
|
|
4838
|
-
declare const index_RoutedRuntimeEvent: typeof RoutedRuntimeEvent;
|
|
4839
|
-
declare const index_RunExecutionMetricsEvent: typeof RunExecutionMetricsEvent;
|
|
4840
|
-
declare const index_RunExecutionOutcome: typeof RunExecutionOutcome;
|
|
4841
|
-
declare const index_RunId: typeof RunId;
|
|
4842
|
-
declare const index_RunIdSchema: typeof RunIdSchema;
|
|
4843
|
-
declare const index_RunResumeClaimId: typeof RunResumeClaimId;
|
|
4844
|
-
declare const index_RunResumeClaimIdSchema: typeof RunResumeClaimIdSchema;
|
|
4845
|
-
declare const index_RunTokenUsageAggregate: typeof RunTokenUsageAggregate;
|
|
4846
|
-
declare const index_RuntimeEvent: typeof RuntimeEvent;
|
|
4847
|
-
declare const index_RuntimeEventId: typeof RuntimeEventId;
|
|
4848
|
-
declare const index_RuntimeEventIdSchema: typeof RuntimeEventIdSchema;
|
|
4849
|
-
declare const index_RuntimeEventInput: typeof RuntimeEventInput;
|
|
4850
|
-
declare const index_RuntimeEventRoutingIdentity: typeof RuntimeEventRoutingIdentity;
|
|
4851
|
-
declare const index_RuntimeEventVisibility: typeof RuntimeEventVisibility;
|
|
4852
|
-
declare const index_RuntimeResourceRef: typeof RuntimeResourceRef;
|
|
4853
|
-
declare const index_RuntimeResourceRefs: typeof RuntimeResourceRefs;
|
|
4854
|
-
declare const index_RuntimeRunLane: typeof RuntimeRunLane;
|
|
4855
|
-
declare const index_RuntimeRunStatus: typeof RuntimeRunStatus;
|
|
4856
|
-
type index_SSEContextUsageSnapshotEvent = SSEContextUsageSnapshotEvent;
|
|
4857
|
-
type index_SSEErrorEvent = SSEErrorEvent;
|
|
4858
|
-
type index_SSEEvent = SSEEvent;
|
|
4859
|
-
type index_SSEEventInput = SSEEventInput;
|
|
4860
|
-
type index_SSEExecutionScope = SSEExecutionScope;
|
|
4861
|
-
type index_SSEFinalAnswerChunkEvent = SSEFinalAnswerChunkEvent;
|
|
4862
|
-
type index_SSEFinalAnswerEvent = SSEFinalAnswerEvent;
|
|
4863
|
-
type index_SSEFinalAnswerResetEvent = SSEFinalAnswerResetEvent;
|
|
4864
|
-
type index_SSEHistorySummaryEvent = SSEHistorySummaryEvent;
|
|
4865
|
-
type index_SSEMarkdownChunkEvent = SSEMarkdownChunkEvent;
|
|
4866
|
-
type index_SSERequiresUserInteractionEvent = SSERequiresUserInteractionEvent;
|
|
4867
|
-
type index_SSERunExecutionMetricsEvent = SSERunExecutionMetricsEvent;
|
|
4868
|
-
type index_SSERunStatusEvent = SSERunStatusEvent;
|
|
4869
|
-
type index_SSESubRunTraceEvent = SSESubRunTraceEvent;
|
|
4870
|
-
type index_SSESummarizationEndEvent = SSESummarizationEndEvent;
|
|
4871
|
-
type index_SSESummarizationErrorEvent = SSESummarizationErrorEvent;
|
|
4872
|
-
type index_SSESummarizationStartEvent = SSESummarizationStartEvent;
|
|
4873
|
-
type index_SSEThoughtEvent = SSEThoughtEvent;
|
|
4874
|
-
type index_SSEToolCallDecisionEvent = SSEToolCallDecisionEvent;
|
|
4875
|
-
type index_SSEToolOutputEvent = SSEToolOutputEvent;
|
|
4876
|
-
type index_SSEToolProcessEvent = SSEToolProcessEvent;
|
|
4877
|
-
type index_SSETransportEndEvent = SSETransportEndEvent;
|
|
4878
|
-
type index_SSETransportErrorEvent = SSETransportErrorEvent;
|
|
4879
|
-
declare const index_SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS: typeof SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS;
|
|
4880
|
-
declare const index_SerializableJsonRecord: typeof SerializableJsonRecord;
|
|
4881
|
-
declare const index_SerializableJsonValue: typeof SerializableJsonValue;
|
|
4882
|
-
type index_ServerSentEventFrame = ServerSentEventFrame;
|
|
4883
|
-
type index_ServerSentEventFrameParser = ServerSentEventFrameParser;
|
|
4884
|
-
declare const index_SourceEventId: typeof SourceEventId;
|
|
4885
|
-
declare const index_SourceEventIdSchema: typeof SourceEventIdSchema;
|
|
4886
|
-
type index_Status = Status;
|
|
4887
|
-
declare const index_SubRunTraceEvent: typeof SubRunTraceEvent;
|
|
4888
|
-
declare const index_SubRunTraceKind: typeof SubRunTraceKind;
|
|
4889
|
-
declare const index_SubRunTracePayload: typeof SubRunTracePayload;
|
|
4890
|
-
declare const index_SubRunTraceToolCallDecision: typeof SubRunTraceToolCallDecision;
|
|
4891
|
-
declare const index_SubrunId: typeof SubrunId;
|
|
4892
|
-
declare const index_SubrunIdSchema: typeof SubrunIdSchema;
|
|
4893
|
-
declare const index_SummarizationCallbacks: typeof SummarizationCallbacks;
|
|
4894
|
-
declare const index_SystemMessage: typeof SystemMessage;
|
|
4895
|
-
declare const index_TaskTrackingMeta: typeof TaskTrackingMeta;
|
|
4896
|
-
declare const index_ThoughtEvent: typeof ThoughtEvent;
|
|
4897
|
-
declare const index_ThoughtMessageId: typeof ThoughtMessageId;
|
|
4898
|
-
declare const index_ThoughtMessageIdSchema: typeof ThoughtMessageIdSchema;
|
|
4899
|
-
declare const index_TokenCostComponent: typeof TokenCostComponent;
|
|
4900
|
-
declare const index_TokenCountConfidence: typeof TokenCountConfidence;
|
|
4901
|
-
declare const index_TokenCountSource: typeof TokenCountSource;
|
|
4902
|
-
declare const index_TokenLedgerAggregate: typeof TokenLedgerAggregate;
|
|
4903
|
-
declare const index_TokenLedgerEntry: typeof TokenLedgerEntry;
|
|
4904
|
-
declare const index_TokenLedgerEntryKind: typeof TokenLedgerEntryKind;
|
|
4905
|
-
declare const index_TokenPricing: typeof TokenPricing;
|
|
4906
|
-
declare const index_TokenRoute: typeof TokenRoute;
|
|
4907
|
-
declare const index_TokenRouteCapabilities: typeof TokenRouteCapabilities;
|
|
4908
|
-
declare const index_TokenUsageCalibrationSample: typeof TokenUsageCalibrationSample;
|
|
4909
|
-
declare const index_TokenUsageCalibrationTrace: typeof TokenUsageCalibrationTrace;
|
|
4910
|
-
declare const index_TokenUsageTotals: typeof TokenUsageTotals;
|
|
4911
|
-
declare const index_ToolBindingSpec: typeof ToolBindingSpec;
|
|
4912
|
-
declare const index_ToolCallDecisionEvent: typeof ToolCallDecisionEvent;
|
|
4913
|
-
declare const index_ToolCallDecisionPayload: typeof ToolCallDecisionPayload;
|
|
4914
|
-
declare const index_ToolCallId: typeof ToolCallId;
|
|
4915
|
-
declare const index_ToolCallIdSchema: typeof ToolCallIdSchema;
|
|
4916
|
-
type index_ToolCallPhase = ToolCallPhase;
|
|
4917
|
-
declare const index_ToolCallWire: typeof ToolCallWire;
|
|
4918
|
-
declare const index_ToolCallsMeta: typeof ToolCallsMeta;
|
|
4919
|
-
declare const index_ToolMessage: typeof ToolMessage;
|
|
4920
|
-
declare const index_ToolOutputEvent: typeof ToolOutputEvent;
|
|
4921
|
-
declare const index_ToolOutputEventResult: typeof ToolOutputEventResult;
|
|
4922
|
-
declare const index_ToolOutputMeta: typeof ToolOutputMeta;
|
|
4923
|
-
declare const index_ToolProcessEvent: typeof ToolProcessEvent;
|
|
4924
|
-
declare const index_TraceId: typeof TraceId;
|
|
4925
|
-
declare const index_TraceIdSchema: typeof TraceIdSchema;
|
|
4926
|
-
declare const index_TurnId: typeof TurnId;
|
|
4927
|
-
declare const index_TurnIdSchema: typeof TurnIdSchema;
|
|
4928
|
-
declare const index_UserInputEvent: typeof UserInputEvent;
|
|
4929
|
-
declare const index_UserMessage: typeof UserMessage;
|
|
4930
|
-
declare const index_assertCanonicalFinalAnswerIdentity: typeof assertCanonicalFinalAnswerIdentity;
|
|
4931
|
-
declare const index_assertDistinctAnswerChunkIdentity: typeof assertDistinctAnswerChunkIdentity;
|
|
4932
|
-
declare const index_createAssistantMessage: typeof createAssistantMessage;
|
|
4933
|
-
declare const index_createAuditEnvelopeEvent: typeof createAuditEnvelopeEvent;
|
|
4934
|
-
declare const index_createContextUsageSnapshotEvent: typeof createContextUsageSnapshotEvent;
|
|
4935
|
-
declare const index_createErrorEvent: typeof createErrorEvent;
|
|
4936
|
-
declare const index_createFinalAnswerChunkEvent: typeof createFinalAnswerChunkEvent;
|
|
4937
|
-
declare const index_createFinalAnswerEvent: typeof createFinalAnswerEvent;
|
|
4938
|
-
declare const index_createFinalAnswerResetEvent: typeof createFinalAnswerResetEvent;
|
|
4939
|
-
declare const index_createHistorySummaryEvent: typeof createHistorySummaryEvent;
|
|
4940
|
-
declare const index_createHistorySummaryMessage: typeof createHistorySummaryMessage;
|
|
4941
|
-
declare const index_createRequiresUserInteractionEvent: typeof createRequiresUserInteractionEvent;
|
|
4942
|
-
declare const index_createRunExecutionMetricsEvent: typeof createRunExecutionMetricsEvent;
|
|
4943
|
-
declare const index_createSSEErrorEvent: typeof createSSEErrorEvent;
|
|
4944
|
-
declare const index_createSSEFinalAnswerChunkEvent: typeof createSSEFinalAnswerChunkEvent;
|
|
4945
|
-
declare const index_createSSEFinalAnswerEvent: typeof createSSEFinalAnswerEvent;
|
|
4946
|
-
declare const index_createSSEHistorySummaryEvent: typeof createSSEHistorySummaryEvent;
|
|
4947
|
-
declare const index_createSSEMarkdownChunkEvent: typeof createSSEMarkdownChunkEvent;
|
|
4948
|
-
declare const index_createSSERequiresUserInteractionEvent: typeof createSSERequiresUserInteractionEvent;
|
|
4949
|
-
declare const index_createSSERunStatusEvent: typeof createSSERunStatusEvent;
|
|
4950
|
-
declare const index_createSSESubRunTraceEvent: typeof createSSESubRunTraceEvent;
|
|
4951
|
-
declare const index_createSSEThoughtEvent: typeof createSSEThoughtEvent;
|
|
4952
|
-
declare const index_createSSEToolCallDecisionEvent: typeof createSSEToolCallDecisionEvent;
|
|
4953
|
-
declare const index_createSSEToolOutputEvent: typeof createSSEToolOutputEvent;
|
|
4954
|
-
declare const index_createSSEToolProcessEvent: typeof createSSEToolProcessEvent;
|
|
4955
|
-
declare const index_createSSETransportEndEvent: typeof createSSETransportEndEvent;
|
|
4956
|
-
declare const index_createSSETransportErrorEvent: typeof createSSETransportErrorEvent;
|
|
4957
|
-
declare const index_createServerSentEventFrameParser: typeof createServerSentEventFrameParser;
|
|
4958
|
-
declare const index_createSubRunTraceEvent: typeof createSubRunTraceEvent;
|
|
4959
|
-
declare const index_createSystemMessage: typeof createSystemMessage;
|
|
4960
|
-
declare const index_createThoughtEvent: typeof createThoughtEvent;
|
|
4961
|
-
declare const index_createToolCallDecisionEvent: typeof createToolCallDecisionEvent;
|
|
4962
|
-
declare const index_createToolMessage: typeof createToolMessage;
|
|
4963
|
-
declare const index_createToolOutputEvent: typeof createToolOutputEvent;
|
|
4964
|
-
declare const index_createToolProcessEvent: typeof createToolProcessEvent;
|
|
4965
|
-
declare const index_createUserInputEvent: typeof createUserInputEvent;
|
|
4966
|
-
declare const index_createUserMessage: typeof createUserMessage;
|
|
4967
|
-
declare const index_defineContextPolicy: typeof defineContextPolicy;
|
|
4968
|
-
declare const index_generateAiMessageId: typeof generateAiMessageId;
|
|
4969
|
-
declare const index_generateAnswerSegmentId: typeof generateAnswerSegmentId;
|
|
4970
|
-
declare const index_generateAuditEnvelopeId: typeof generateAuditEnvelopeId;
|
|
4971
|
-
declare const index_generateContextLedgerEntryId: typeof generateContextLedgerEntryId;
|
|
4972
|
-
declare const index_generateConversationId: typeof generateConversationId;
|
|
4973
|
-
declare const index_generateExecutionId: typeof generateExecutionId;
|
|
4974
|
-
declare const index_generateInferenceAttemptId: typeof generateInferenceAttemptId;
|
|
4975
|
-
declare const index_generateInteractionId: typeof generateInteractionId;
|
|
4976
|
-
declare const index_generateResumeToken: typeof generateResumeToken;
|
|
4977
|
-
declare const index_generateRunId: typeof generateRunId;
|
|
4978
|
-
declare const index_generateRunResumeClaimId: typeof generateRunResumeClaimId;
|
|
4979
|
-
declare const index_generateRuntimeEventId: typeof generateRuntimeEventId;
|
|
4980
|
-
declare const index_generateSubrunId: typeof generateSubrunId;
|
|
4981
|
-
declare const index_generateThoughtMessageId: typeof generateThoughtMessageId;
|
|
4982
|
-
declare const index_generateToolCallId: typeof generateToolCallId;
|
|
4983
|
-
declare const index_generateTraceId: typeof generateTraceId;
|
|
4984
|
-
declare const index_generateTurnId: typeof generateTurnId;
|
|
4985
|
-
declare const index_hasToolCalls: typeof hasToolCalls;
|
|
4986
|
-
declare const index_isAssistantMessage: typeof isAssistantMessage;
|
|
4987
|
-
declare const index_isHistorySummaryMessage: typeof isHistorySummaryMessage;
|
|
4988
|
-
declare const index_isRoutedRuntimeEvent: typeof isRoutedRuntimeEvent;
|
|
4989
|
-
declare const index_isSystemMessage: typeof isSystemMessage;
|
|
4990
|
-
declare const index_isToolMessage: typeof isToolMessage;
|
|
4991
|
-
declare const index_isUserMessage: typeof isUserMessage;
|
|
4992
|
-
declare const index_isValidReasoningEffort: typeof isValidReasoningEffort;
|
|
4993
|
-
declare const index_parseRoutedRuntimeEvent: typeof parseRoutedRuntimeEvent;
|
|
4994
|
-
declare const index_parseRuntimeEventRoutingIdentity: typeof parseRuntimeEventRoutingIdentity;
|
|
4995
|
-
declare const index_parseRuntimeEvents: typeof parseRuntimeEvents;
|
|
4996
|
-
declare const index_parseSSEExecutionScope: typeof parseSSEExecutionScope;
|
|
4997
|
-
declare const index_resolveEffectiveEffort: typeof resolveEffectiveEffort;
|
|
4998
|
-
declare const index_routeRuntimeEvent: typeof routeRuntimeEvent;
|
|
4999
|
-
declare const index_runIdFromSubrunId: typeof runIdFromSubrunId;
|
|
5000
|
-
declare const index_runIdFromTurnId: typeof runIdFromTurnId;
|
|
5001
|
-
declare const index_runtimeEventToSSEEvent: typeof runtimeEventToSSEEvent;
|
|
5002
|
-
declare const index_serializeServerSentEventFrame: typeof serializeServerSentEventFrame;
|
|
5003
|
-
declare const index_toSerializableJsonRecord: typeof toSerializableJsonRecord;
|
|
5004
|
-
declare const index_toSerializableJsonValue: typeof toSerializableJsonValue;
|
|
5005
|
-
declare const index_validateAiMessage: typeof validateAiMessage;
|
|
5006
|
-
declare const index_validateHistorySummaryMeta: typeof validateHistorySummaryMeta;
|
|
5007
|
-
declare const index_validateRuntimeEvent: typeof validateRuntimeEvent;
|
|
5008
|
-
declare const index_validateRuntimeEvents: typeof validateRuntimeEvents;
|
|
5009
|
-
declare const index_validateSSEEvent: typeof validateSSEEvent;
|
|
5010
|
-
declare const index_validateSubRunTracePayloadSemantics: typeof validateSubRunTracePayloadSemantics;
|
|
5011
|
-
declare namespace index {
|
|
5012
|
-
export { index_AUDIT_ACTIONS as AUDIT_ACTIONS, index_AUDIT_DECISION_OUTCOMES as AUDIT_DECISION_OUTCOMES, index_AgentCapability as AgentCapability, index_AgentSpec as AgentSpec, index_AgentSpecAuditConfig as AgentSpecAuditConfig, index_AgentSpecBudgetPolicy as AgentSpecBudgetPolicy, index_AgentSpecContextCompactionPolicy as AgentSpecContextCompactionPolicy, index_AgentSpecContextPolicy as AgentSpecContextPolicy, index_AgentSpecContextPolicyInput as AgentSpecContextPolicyInput, index_AgentSpecContextTracePolicy as AgentSpecContextTracePolicy, index_AgentSpecMessageType as AgentSpecMessageType, index_AgentSpecMustKeepPolicy as AgentSpecMustKeepPolicy, index_AgentSpecMustKeepTruncationRule as AgentSpecMustKeepTruncationRule, index_AgentSpecSystemReminderExtraRule as AgentSpecSystemReminderExtraRule, index_AgentSpecSystemReminderPolicy as AgentSpecSystemReminderPolicy, index_AgentSpecSystemReminderTrigger as AgentSpecSystemReminderTrigger, index_AgentSpecTokenEstimationPolicy as AgentSpecTokenEstimationPolicy, index_AgentSpecToolHistoryPolicy as AgentSpecToolHistoryPolicy, index_AgentSpecToolObservationGovernancePolicy as AgentSpecToolObservationGovernancePolicy, index_AgentSpecToolOutputPolicy as AgentSpecToolOutputPolicy, index_AgentSpecWorkingMemoryPolicy as AgentSpecWorkingMemoryPolicy, index_AiMessage as AiMessage, index_AiMessageId as AiMessageId, index_AiMessageIdSchema as AiMessageIdSchema, index_AnswerSegmentId as AnswerSegmentId, index_AnswerSegmentIdSchema as AnswerSegmentIdSchema, index_AssistantMessage as AssistantMessage, index_AssistantReplayPart as AssistantReplayPart, index_AssistantReplayParts as AssistantReplayParts, index_AuditActor as AuditActor, index_AuditCostDelta as AuditCostDelta, index_AuditDecision as AuditDecision, index_AuditEnvelope as AuditEnvelope, index_AuditEnvelopeEvent as AuditEnvelopeEvent, index_AuditEnvelopeId as AuditEnvelopeId, index_AuditEnvelopeIdSchema as AuditEnvelopeIdSchema, index_AuditEvidence as AuditEvidence, index_AuditScope as AuditScope, index_BaseEvent as BaseEvent, type index_BaseSSEEvent as BaseSSEEvent, index_CONTEXT_COMPACTION_FAILED_ERROR_CODE as CONTEXT_COMPACTION_FAILED_ERROR_CODE, index_CONTEXT_COMPACTION_INSUFFICIENT_ERROR_CODE as CONTEXT_COMPACTION_INSUFFICIENT_ERROR_CODE, index_CanonicalLlmUsage as CanonicalLlmUsage, index_ContextBuildTokenEstimate as ContextBuildTokenEstimate, index_ContextCompactionCandidate as ContextCompactionCandidate, index_ContextCompactionErrorCode as ContextCompactionErrorCode, index_ContextCompactionPlan as ContextCompactionPlan, index_ContextComponentTokenLedgerEntry as ContextComponentTokenLedgerEntry, index_ContextLedgerEntryId as ContextLedgerEntryId, index_ContextLedgerEntryIdSchema as ContextLedgerEntryIdSchema, index_ContextTokenComponent as ContextTokenComponent, index_ContextTokenComponentKind as ContextTokenComponentKind, index_ContextUsageSnapshot as ContextUsageSnapshot, index_ContextUsageSnapshotEvent as ContextUsageSnapshotEvent, index_ControlEvent as ControlEvent, index_ControlTargetReferenceId as ControlTargetReferenceId, index_ControlTargetReferenceIdSchema as ControlTargetReferenceIdSchema, index_ConversationId as ConversationId, index_ConversationIdSchema as ConversationIdSchema, index_CostBreakdown as CostBreakdown, index_DEFAULT_CONTEXT_COMPACTION_POLICY as DEFAULT_CONTEXT_COMPACTION_POLICY, index_DEFAULT_MAX_STEPS as DEFAULT_MAX_STEPS, index_ErrorEvent as ErrorEvent, index_EventEnvelope as EventEnvelope, index_ExecutionId as ExecutionId, index_ExecutionIdSchema as ExecutionIdSchema, index_ExecutionTraceContext as ExecutionTraceContext, index_FinalAnswerChunkEvent as FinalAnswerChunkEvent, index_FinalAnswerCompletionReason as FinalAnswerCompletionReason, index_FinalAnswerEvent as FinalAnswerEvent, index_FinalAnswerResetEvent as FinalAnswerResetEvent, index_HistoryMessageReferenceId as HistoryMessageReferenceId, index_HistoryMessageReferenceIdSchema as HistoryMessageReferenceIdSchema, index_HistorySummaryEvent as HistorySummaryEvent, index_HistorySummaryMeta as HistorySummaryMeta, index_InteractionId as InteractionId, index_InteractionIdSchema as InteractionIdSchema, index_LlmUsageTokenLedgerEntry as LlmUsageTokenLedgerEntry, index_ModelReasoningConfig as ModelReasoningConfig, index_ObservationTruncationMeta as ObservationTruncationMeta, index_PersistentMetadata as PersistentMetadata, index_PromptUsageMeasurementPolicy as PromptUsageMeasurementPolicy, index_ProviderContinuation as ProviderContinuation, index_ProviderContinuationProducer as ProviderContinuationProducer, index_ProviderContinuations as ProviderContinuations, index_REASONING_EFFORTS as REASONING_EFFORTS, index_ReasoningEffort as ReasoningEffort, index_RequiresUserInteractionEvent as RequiresUserInteractionEvent, index_ResolvedContextCompactionPolicy as ResolvedContextCompactionPolicy, index_ResumeToken as ResumeToken, index_ResumeTokenSchema as ResumeTokenSchema, index_RoutedRuntimeEvent as RoutedRuntimeEvent, index_RunExecutionMetricsEvent as RunExecutionMetricsEvent, index_RunExecutionOutcome as RunExecutionOutcome, index_RunId as RunId, index_RunIdSchema as RunIdSchema, index_RunResumeClaimId as RunResumeClaimId, index_RunResumeClaimIdSchema as RunResumeClaimIdSchema, index_RunTokenUsageAggregate as RunTokenUsageAggregate, index_RuntimeEvent as RuntimeEvent, index_RuntimeEventId as RuntimeEventId, index_RuntimeEventIdSchema as RuntimeEventIdSchema, index_RuntimeEventInput as RuntimeEventInput, index_RuntimeEventRoutingIdentity as RuntimeEventRoutingIdentity, index_RuntimeEventVisibility as RuntimeEventVisibility, index_RuntimeResourceRef as RuntimeResourceRef, index_RuntimeResourceRefs as RuntimeResourceRefs, index_RuntimeRunLane as RuntimeRunLane, index_RuntimeRunStatus as RuntimeRunStatus, type index_SSEContextUsageSnapshotEvent as SSEContextUsageSnapshotEvent, type index_SSEErrorEvent as SSEErrorEvent, type index_SSEEvent as SSEEvent, type index_SSEEventInput as SSEEventInput, type index_SSEExecutionScope as SSEExecutionScope, type index_SSEFinalAnswerChunkEvent as SSEFinalAnswerChunkEvent, type index_SSEFinalAnswerEvent as SSEFinalAnswerEvent, type index_SSEFinalAnswerResetEvent as SSEFinalAnswerResetEvent, type index_SSEHistorySummaryEvent as SSEHistorySummaryEvent, type index_SSEMarkdownChunkEvent as SSEMarkdownChunkEvent, type index_SSERequiresUserInteractionEvent as SSERequiresUserInteractionEvent, type index_SSERunExecutionMetricsEvent as SSERunExecutionMetricsEvent, type index_SSERunStatusEvent as SSERunStatusEvent, type index_SSESubRunTraceEvent as SSESubRunTraceEvent, type index_SSESummarizationEndEvent as SSESummarizationEndEvent, type index_SSESummarizationErrorEvent as SSESummarizationErrorEvent, type index_SSESummarizationStartEvent as SSESummarizationStartEvent, type index_SSEThoughtEvent as SSEThoughtEvent, type index_SSEToolCallDecisionEvent as SSEToolCallDecisionEvent, type index_SSEToolOutputEvent as SSEToolOutputEvent, type index_SSEToolProcessEvent as SSEToolProcessEvent, type index_SSETransportEndEvent as SSETransportEndEvent, type index_SSETransportErrorEvent as SSETransportErrorEvent, index_SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS as SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS, index_SerializableJsonRecord as SerializableJsonRecord, index_SerializableJsonValue as SerializableJsonValue, type index_ServerSentEventFrame as ServerSentEventFrame, type index_ServerSentEventFrameParser as ServerSentEventFrameParser, index_SourceEventId as SourceEventId, index_SourceEventIdSchema as SourceEventIdSchema, type index_Status as Status, index_SubRunTraceEvent as SubRunTraceEvent, index_SubRunTraceKind as SubRunTraceKind, index_SubRunTracePayload as SubRunTracePayload, index_SubRunTraceToolCallDecision as SubRunTraceToolCallDecision, index_SubrunId as SubrunId, index_SubrunIdSchema as SubrunIdSchema, index_SummarizationCallbacks as SummarizationCallbacks, index_SystemMessage as SystemMessage, index_TaskTrackingMeta as TaskTrackingMeta, index_ThoughtEvent as ThoughtEvent, index_ThoughtMessageId as ThoughtMessageId, index_ThoughtMessageIdSchema as ThoughtMessageIdSchema, index_TokenCostComponent as TokenCostComponent, index_TokenCountConfidence as TokenCountConfidence, index_TokenCountSource as TokenCountSource, index_TokenLedgerAggregate as TokenLedgerAggregate, index_TokenLedgerEntry as TokenLedgerEntry, index_TokenLedgerEntryKind as TokenLedgerEntryKind, index_TokenPricing as TokenPricing, index_TokenRoute as TokenRoute, index_TokenRouteCapabilities as TokenRouteCapabilities, index_TokenUsageCalibrationSample as TokenUsageCalibrationSample, index_TokenUsageCalibrationTrace as TokenUsageCalibrationTrace, index_TokenUsageTotals as TokenUsageTotals, index_ToolBindingSpec as ToolBindingSpec, index_ToolCallDecisionEvent as ToolCallDecisionEvent, index_ToolCallDecisionPayload as ToolCallDecisionPayload, index_ToolCallId as ToolCallId, index_ToolCallIdSchema as ToolCallIdSchema, type index_ToolCallPhase as ToolCallPhase, index_ToolCallWire as ToolCallWire, index_ToolCallsMeta as ToolCallsMeta, index_ToolMessage as ToolMessage, index_ToolOutputEvent as ToolOutputEvent, index_ToolOutputEventResult as ToolOutputEventResult, index_ToolOutputMeta as ToolOutputMeta, index_ToolProcessEvent as ToolProcessEvent, index_TraceId as TraceId, index_TraceIdSchema as TraceIdSchema, index_TurnId as TurnId, index_TurnIdSchema as TurnIdSchema, index_UserInputEvent as UserInputEvent, index_UserMessage as UserMessage, index_assertCanonicalFinalAnswerIdentity as assertCanonicalFinalAnswerIdentity, index_assertDistinctAnswerChunkIdentity as assertDistinctAnswerChunkIdentity, index_createAssistantMessage as createAssistantMessage, index_createAuditEnvelopeEvent as createAuditEnvelopeEvent, index_createContextUsageSnapshotEvent as createContextUsageSnapshotEvent, index_createErrorEvent as createErrorEvent, index_createFinalAnswerChunkEvent as createFinalAnswerChunkEvent, index_createFinalAnswerEvent as createFinalAnswerEvent, index_createFinalAnswerResetEvent as createFinalAnswerResetEvent, index_createHistorySummaryEvent as createHistorySummaryEvent, index_createHistorySummaryMessage as createHistorySummaryMessage, index_createRequiresUserInteractionEvent as createRequiresUserInteractionEvent, index_createRunExecutionMetricsEvent as createRunExecutionMetricsEvent, index_createSSEErrorEvent as createSSEErrorEvent, index_createSSEFinalAnswerChunkEvent as createSSEFinalAnswerChunkEvent, index_createSSEFinalAnswerEvent as createSSEFinalAnswerEvent, index_createSSEHistorySummaryEvent as createSSEHistorySummaryEvent, index_createSSEMarkdownChunkEvent as createSSEMarkdownChunkEvent, index_createSSERequiresUserInteractionEvent as createSSERequiresUserInteractionEvent, index_createSSERunStatusEvent as createSSERunStatusEvent, index_createSSESubRunTraceEvent as createSSESubRunTraceEvent, index_createSSEThoughtEvent as createSSEThoughtEvent, index_createSSEToolCallDecisionEvent as createSSEToolCallDecisionEvent, index_createSSEToolOutputEvent as createSSEToolOutputEvent, index_createSSEToolProcessEvent as createSSEToolProcessEvent, index_createSSETransportEndEvent as createSSETransportEndEvent, index_createSSETransportErrorEvent as createSSETransportErrorEvent, index_createServerSentEventFrameParser as createServerSentEventFrameParser, index_createSubRunTraceEvent as createSubRunTraceEvent, index_createSystemMessage as createSystemMessage, index_createThoughtEvent as createThoughtEvent, index_createToolCallDecisionEvent as createToolCallDecisionEvent, index_createToolMessage as createToolMessage, index_createToolOutputEvent as createToolOutputEvent, index_createToolProcessEvent as createToolProcessEvent, index_createUserInputEvent as createUserInputEvent, index_createUserMessage as createUserMessage, index_defineContextPolicy as defineContextPolicy, index_generateAiMessageId as generateAiMessageId, index_generateAnswerSegmentId as generateAnswerSegmentId, index_generateAuditEnvelopeId as generateAuditEnvelopeId, index_generateContextLedgerEntryId as generateContextLedgerEntryId, index_generateConversationId as generateConversationId, index_generateExecutionId as generateExecutionId, index_generateInferenceAttemptId as generateInferenceAttemptId, index_generateInteractionId as generateInteractionId, index_generateResumeToken as generateResumeToken, index_generateRunId as generateRunId, index_generateRunResumeClaimId as generateRunResumeClaimId, index_generateRuntimeEventId as generateRuntimeEventId, index_generateSubrunId as generateSubrunId, index_generateThoughtMessageId as generateThoughtMessageId, index_generateToolCallId as generateToolCallId, index_generateTraceId as generateTraceId, index_generateTurnId as generateTurnId, index_hasToolCalls as hasToolCalls, index_isAssistantMessage as isAssistantMessage, index_isHistorySummaryMessage as isHistorySummaryMessage, index_isRoutedRuntimeEvent as isRoutedRuntimeEvent, index_isSystemMessage as isSystemMessage, index_isToolMessage as isToolMessage, index_isUserMessage as isUserMessage, index_isValidReasoningEffort as isValidReasoningEffort, index_parseRoutedRuntimeEvent as parseRoutedRuntimeEvent, index_parseRuntimeEventRoutingIdentity as parseRuntimeEventRoutingIdentity, index_parseRuntimeEvents as parseRuntimeEvents, index_parseSSEExecutionScope as parseSSEExecutionScope, index_resolveEffectiveEffort as resolveEffectiveEffort, index_routeRuntimeEvent as routeRuntimeEvent, index_runIdFromSubrunId as runIdFromSubrunId, index_runIdFromTurnId as runIdFromTurnId, index_runtimeEventToSSEEvent as runtimeEventToSSEEvent, index_serializeServerSentEventFrame as serializeServerSentEventFrame, index_toSerializableJsonRecord as toSerializableJsonRecord, index_toSerializableJsonValue as toSerializableJsonValue, index_validateAiMessage as validateAiMessage, index_validateHistorySummaryMeta as validateHistorySummaryMeta, index_validateRuntimeEvent as validateRuntimeEvent, index_validateRuntimeEvents as validateRuntimeEvents, index_validateSSEEvent as validateSSEEvent, index_validateSubRunTracePayloadSemantics as validateSubRunTracePayloadSemantics };
|
|
5013
|
-
}
|
|
5014
|
-
|
|
5015
|
-
export { generateConversationId as $, type ServerSentEventFrame as A, BaseSSEEvent as B, type ServerSentEventFrameParser as C, DEFAULT_MAX_STEPS as D, Status as E, assertCanonicalFinalAnswerIdentity as F, assertDistinctAnswerChunkIdentity as G, createSSEErrorEvent as H, createSSEFinalAnswerChunkEvent as I, createSSEFinalAnswerEvent as J, createSSEHistorySummaryEvent as K, createSSEMarkdownChunkEvent as L, createSSERequiresUserInteractionEvent as M, createSSERunStatusEvent as N, createSSESubRunTraceEvent as O, createSSEThoughtEvent as P, createSSEToolCallDecisionEvent as Q, createSSEToolOutputEvent as R, SSEContextUsageSnapshotEvent as S, ToolCallPhase as T, createSSEToolProcessEvent as U, createSSETransportEndEvent as V, createSSETransportErrorEvent as W, createServerSentEventFrameParser as X, generateAiMessageId as Y, generateAnswerSegmentId as Z, generateContextLedgerEntryId as _, generateRunId as a, generateExecutionId as a0, generateInferenceAttemptId as a1, generateInteractionId as a2, generateResumeToken as a3, generateRunResumeClaimId as a4, generateSubrunId as a5, generateThoughtMessageId as a6, generateToolCallId as a7, generateTraceId as a8, generateTurnId as a9, parseSSEExecutionScope as aa, runIdFromSubrunId as ab, runIdFromTurnId as ac, runtimeEventToSSEEvent as ad, serializeServerSentEventFrame as ae, validateSSEEvent as af, generateRuntimeEventId as b, SSEErrorEvent as c, SSEEvent as d, type SSEEventInput as e, SSEExecutionScope as f, generateAuditEnvelopeId as g, SSEFinalAnswerChunkEvent as h, index as i, SSEFinalAnswerEvent as j, SSEFinalAnswerResetEvent as k, SSEHistorySummaryEvent as l, SSEMarkdownChunkEvent as m, SSERequiresUserInteractionEvent as n, SSERunExecutionMetricsEvent as o, SSERunStatusEvent as p, SSESubRunTraceEvent as q, SSESummarizationEndEvent as r, SSESummarizationErrorEvent as s, SSESummarizationStartEvent as t, SSEThoughtEvent as u, SSEToolCallDecisionEvent as v, SSEToolOutputEvent as w, SSEToolProcessEvent as x, SSETransportEndEvent as y, SSETransportErrorEvent as z };
|
|
4658
|
+
export { BaseSSEEvent, SSEContextUsageSnapshotEvent, SSEErrorEvent, SSEEvent, SSEExecutionScope, SSEFinalAnswerChunkEvent, SSEFinalAnswerEvent, SSEFinalAnswerResetEvent, SSEHistorySummaryEvent, SSEMarkdownChunkEvent, SSERequiresUserInteractionEvent, SSERunExecutionMetricsEvent, SSERunStatusEvent, SSESubRunTraceEvent, SSESummarizationEndEvent, SSESummarizationErrorEvent, SSESummarizationStartEvent, SSEThoughtEvent, SSEToolCallDecisionEvent, SSEToolOutputEvent, SSEToolProcessEvent, SSETransportEndEvent, SSETransportErrorEvent, createSSEErrorEvent, createSSEFinalAnswerChunkEvent, createSSEFinalAnswerEvent, createSSEHistorySummaryEvent, createSSEMarkdownChunkEvent, createSSERequiresUserInteractionEvent, createSSERunStatusEvent, createSSESubRunTraceEvent, createSSEThoughtEvent, createSSEToolCallDecisionEvent, createSSEToolOutputEvent, createSSEToolProcessEvent, createSSETransportEndEvent, createSSETransportErrorEvent, parseSSEExecutionScope, runtimeEventToSSEEvent, validateSSEEvent };
|
|
4659
|
+
export type { SSEEventInput };
|