@linnlabs/linnkit 0.31.1 → 0.32.1
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 +22 -0
- package/dist/cli.cjs +14 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +14 -1
- 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} +33 -33
- package/dist/{audit-XsNMTt0-.d.ts → contracts/audit.d.ts} +33 -33
- 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-oOQ_7nPt.d.ts → contracts/events.d.cts} +1219 -1222
- package/dist/{final-answer-B0_kx5_U.d.cts → contracts/events.d.ts} +1219 -1222
- package/dist/{execution-B7e01ZjW.d.cts → contracts/execution.d.cts} +21 -21
- package/dist/{execution-B7e01ZjW.d.ts → contracts/execution.d.ts} +21 -21
- 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} +210 -957
- package/dist/{provider-continuation-CTZdCB--.d.ts → contracts/messages.d.ts} +210 -957
- 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} +1218 -1574
- package/dist/{index-JYf6n2Ik.d.cts → contracts/sse.d.ts} +1218 -1574
- 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 +14 -1
- 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 +14 -1
- 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 +14 -1
- 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 +14 -1
- 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} +127 -126
- package/dist/{agentEvents-DhXdKeXD.d.ts → runtime-kernel/events/agentEvents.d.ts} +127 -126
- 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 +14 -1
- 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 +14 -1
- 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 +14 -1
- 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 +14 -1
- package/dist/testkit.js.map +1 -1
- package/docs/integration/host-originated-tools.md +9 -0
- 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-B2kGX0iA.d.ts +0 -905
- package/dist/defaultGraphExecutor-CO3ztZdG.d.cts +0 -905
- package/dist/index-1pE6gSpV.d.cts +0 -172
- package/dist/index-CMUnmxhM.d.ts +0 -1966
- package/dist/index-CZtZq3T1.d.cts +0 -1966
- 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,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { SerializableJsonValue } from '../../contracts/json.js';
|
|
3
3
|
|
|
4
4
|
declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5
5
|
timestamp: z.ZodNumber;
|
|
@@ -12,23 +12,23 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
12
12
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
thought_message_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
14
14
|
}, "strict", z.ZodTypeAny, {
|
|
15
|
-
id: string;
|
|
16
15
|
type: "thought";
|
|
17
|
-
|
|
16
|
+
id: string;
|
|
18
17
|
timestamp: number;
|
|
18
|
+
content: string;
|
|
19
19
|
is_complete: boolean;
|
|
20
|
+
thought_message_id?: string | undefined;
|
|
20
21
|
delta?: string | undefined;
|
|
21
22
|
meta?: Record<string, unknown> | undefined;
|
|
22
|
-
thought_message_id?: string | undefined;
|
|
23
23
|
}, {
|
|
24
|
-
id: string;
|
|
25
24
|
type: "thought";
|
|
26
|
-
|
|
25
|
+
id: string;
|
|
27
26
|
timestamp: number;
|
|
27
|
+
content: string;
|
|
28
28
|
is_complete: boolean;
|
|
29
|
+
thought_message_id?: string | undefined;
|
|
29
30
|
delta?: string | undefined;
|
|
30
31
|
meta?: Record<string, unknown> | undefined;
|
|
31
|
-
thought_message_id?: string | undefined;
|
|
32
32
|
}>, z.ZodObject<{
|
|
33
33
|
timestamp: z.ZodNumber;
|
|
34
34
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -329,6 +329,8 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
329
329
|
}[] | undefined;
|
|
330
330
|
}>]>, "many">>;
|
|
331
331
|
}, "strict", z.ZodTypeAny, {
|
|
332
|
+
args?: Record<string, unknown> | undefined;
|
|
333
|
+
tool_calls?: unknown[] | undefined;
|
|
332
334
|
provider_continuations?: {
|
|
333
335
|
kind: string;
|
|
334
336
|
schema_version: 2;
|
|
@@ -341,7 +343,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
341
343
|
};
|
|
342
344
|
payload: SerializableJsonValue;
|
|
343
345
|
}[] | undefined;
|
|
344
|
-
tool_calls?: unknown[] | undefined;
|
|
345
346
|
assistant_replay_parts?: ({
|
|
346
347
|
type: "text";
|
|
347
348
|
text: string;
|
|
@@ -388,8 +389,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
388
389
|
payload: SerializableJsonValue;
|
|
389
390
|
}[] | undefined;
|
|
390
391
|
})[] | undefined;
|
|
391
|
-
args?: Record<string, unknown> | undefined;
|
|
392
392
|
}, {
|
|
393
|
+
args?: Record<string, unknown> | undefined;
|
|
394
|
+
tool_calls?: unknown[] | undefined;
|
|
393
395
|
provider_continuations?: {
|
|
394
396
|
kind: string;
|
|
395
397
|
schema_version: 2;
|
|
@@ -402,7 +404,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
402
404
|
};
|
|
403
405
|
payload: SerializableJsonValue;
|
|
404
406
|
}[] | undefined;
|
|
405
|
-
tool_calls?: unknown[] | undefined;
|
|
406
407
|
assistant_replay_parts?: ({
|
|
407
408
|
type: "text";
|
|
408
409
|
text: string;
|
|
@@ -449,18 +450,20 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
449
450
|
payload: SerializableJsonValue;
|
|
450
451
|
}[] | undefined;
|
|
451
452
|
})[] | undefined;
|
|
452
|
-
args?: Record<string, unknown> | undefined;
|
|
453
453
|
}>>;
|
|
454
454
|
}, "strict", z.ZodTypeAny, {
|
|
455
|
+
type: "tool_call_decision";
|
|
455
456
|
id: string;
|
|
457
|
+
timestamp: number;
|
|
456
458
|
status: "error" | "loading" | "success";
|
|
457
|
-
type: "tool_call_decision";
|
|
458
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
459
459
|
tool_name: string;
|
|
460
|
-
|
|
461
|
-
phase: "
|
|
460
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
461
|
+
phase: "start" | "update" | "complete" | "error";
|
|
462
462
|
tool_args: Record<string, unknown>;
|
|
463
|
+
tool_calls?: unknown[] | undefined;
|
|
463
464
|
payload?: {
|
|
465
|
+
args?: Record<string, unknown> | undefined;
|
|
466
|
+
tool_calls?: unknown[] | undefined;
|
|
464
467
|
provider_continuations?: {
|
|
465
468
|
kind: string;
|
|
466
469
|
schema_version: 2;
|
|
@@ -473,7 +476,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
473
476
|
};
|
|
474
477
|
payload: SerializableJsonValue;
|
|
475
478
|
}[] | undefined;
|
|
476
|
-
tool_calls?: unknown[] | undefined;
|
|
477
479
|
assistant_replay_parts?: ({
|
|
478
480
|
type: "text";
|
|
479
481
|
text: string;
|
|
@@ -520,20 +522,21 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
520
522
|
payload: SerializableJsonValue;
|
|
521
523
|
}[] | undefined;
|
|
522
524
|
})[] | undefined;
|
|
523
|
-
args?: Record<string, unknown> | undefined;
|
|
524
525
|
} | undefined;
|
|
525
|
-
tool_calls?: unknown[] | undefined;
|
|
526
526
|
meta?: Record<string, unknown> | undefined;
|
|
527
527
|
}, {
|
|
528
|
+
type: "tool_call_decision";
|
|
528
529
|
id: string;
|
|
530
|
+
timestamp: number;
|
|
529
531
|
status: "error" | "loading" | "success";
|
|
530
|
-
type: "tool_call_decision";
|
|
531
|
-
tool_call_id: string;
|
|
532
532
|
tool_name: string;
|
|
533
|
-
|
|
534
|
-
phase: "
|
|
533
|
+
tool_call_id: string;
|
|
534
|
+
phase: "start" | "update" | "complete" | "error";
|
|
535
535
|
tool_args: Record<string, unknown>;
|
|
536
|
+
tool_calls?: unknown[] | undefined;
|
|
536
537
|
payload?: {
|
|
538
|
+
args?: Record<string, unknown> | undefined;
|
|
539
|
+
tool_calls?: unknown[] | undefined;
|
|
537
540
|
provider_continuations?: {
|
|
538
541
|
kind: string;
|
|
539
542
|
schema_version: 2;
|
|
@@ -546,7 +549,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
546
549
|
};
|
|
547
550
|
payload: SerializableJsonValue;
|
|
548
551
|
}[] | undefined;
|
|
549
|
-
tool_calls?: unknown[] | undefined;
|
|
550
552
|
assistant_replay_parts?: ({
|
|
551
553
|
type: "text";
|
|
552
554
|
text: string;
|
|
@@ -593,9 +595,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
593
595
|
payload: SerializableJsonValue;
|
|
594
596
|
}[] | undefined;
|
|
595
597
|
})[] | undefined;
|
|
596
|
-
args?: Record<string, unknown> | undefined;
|
|
597
598
|
} | undefined;
|
|
598
|
-
tool_calls?: unknown[] | undefined;
|
|
599
599
|
meta?: Record<string, unknown> | undefined;
|
|
600
600
|
}>, z.ZodObject<{
|
|
601
601
|
timestamp: z.ZodNumber;
|
|
@@ -611,28 +611,28 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
611
611
|
} & {
|
|
612
612
|
type: z.ZodLiteral<"tool_process">;
|
|
613
613
|
}, "strict", z.ZodTypeAny, {
|
|
614
|
+
type: "tool_process";
|
|
614
615
|
id: string;
|
|
616
|
+
timestamp: number;
|
|
615
617
|
status: "error" | "loading" | "success";
|
|
616
|
-
type: "tool_process";
|
|
617
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
618
618
|
tool_name: string;
|
|
619
|
-
|
|
620
|
-
phase: "
|
|
619
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
620
|
+
phase: "start" | "update" | "complete" | "error";
|
|
621
621
|
tool_args: Record<string, unknown>;
|
|
622
|
-
payload?: Record<string, unknown> | undefined;
|
|
623
622
|
tool_calls?: unknown[] | undefined;
|
|
623
|
+
payload?: Record<string, unknown> | undefined;
|
|
624
624
|
meta?: Record<string, unknown> | undefined;
|
|
625
625
|
}, {
|
|
626
|
+
type: "tool_process";
|
|
626
627
|
id: string;
|
|
628
|
+
timestamp: number;
|
|
627
629
|
status: "error" | "loading" | "success";
|
|
628
|
-
type: "tool_process";
|
|
629
|
-
tool_call_id: string;
|
|
630
630
|
tool_name: string;
|
|
631
|
-
|
|
632
|
-
phase: "
|
|
631
|
+
tool_call_id: string;
|
|
632
|
+
phase: "start" | "update" | "complete" | "error";
|
|
633
633
|
tool_args: Record<string, unknown>;
|
|
634
|
-
payload?: Record<string, unknown> | undefined;
|
|
635
634
|
tool_calls?: unknown[] | undefined;
|
|
635
|
+
payload?: Record<string, unknown> | undefined;
|
|
636
636
|
meta?: Record<string, unknown> | undefined;
|
|
637
637
|
}>, z.ZodObject<{
|
|
638
638
|
timestamp: z.ZodNumber;
|
|
@@ -682,15 +682,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
682
682
|
label?: string | undefined;
|
|
683
683
|
}>, "many">>;
|
|
684
684
|
}, "strict", z.ZodTypeAny, {
|
|
685
|
-
id: string;
|
|
686
685
|
type: "observation";
|
|
687
|
-
|
|
688
|
-
tool_name: string;
|
|
686
|
+
id: string;
|
|
689
687
|
timestamp: number;
|
|
688
|
+
tool_name: string;
|
|
689
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
690
690
|
success: boolean;
|
|
691
691
|
observation: string;
|
|
692
|
-
data?: unknown;
|
|
693
|
-
error?: string | undefined;
|
|
694
692
|
attachments?: {
|
|
695
693
|
id: string;
|
|
696
694
|
kind: "image";
|
|
@@ -703,18 +701,18 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
703
701
|
fileName?: string | undefined;
|
|
704
702
|
label?: string | undefined;
|
|
705
703
|
}[] | undefined;
|
|
706
|
-
|
|
704
|
+
error?: string | undefined;
|
|
705
|
+
data?: unknown;
|
|
707
706
|
error_code?: string | undefined;
|
|
707
|
+
duration_ms?: number | undefined;
|
|
708
708
|
}, {
|
|
709
|
-
id: string;
|
|
710
709
|
type: "observation";
|
|
711
|
-
|
|
712
|
-
tool_name: string;
|
|
710
|
+
id: string;
|
|
713
711
|
timestamp: number;
|
|
712
|
+
tool_name: string;
|
|
713
|
+
tool_call_id: string;
|
|
714
714
|
success: boolean;
|
|
715
715
|
observation: string;
|
|
716
|
-
data?: unknown;
|
|
717
|
-
error?: string | undefined;
|
|
718
716
|
attachments?: {
|
|
719
717
|
id: string;
|
|
720
718
|
kind: "image";
|
|
@@ -727,8 +725,10 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
727
725
|
fileName?: string | undefined;
|
|
728
726
|
label?: string | undefined;
|
|
729
727
|
}[] | undefined;
|
|
730
|
-
|
|
728
|
+
error?: string | undefined;
|
|
729
|
+
data?: unknown;
|
|
731
730
|
error_code?: string | undefined;
|
|
731
|
+
duration_ms?: number | undefined;
|
|
732
732
|
}>, z.ZodObject<{
|
|
733
733
|
timestamp: z.ZodNumber;
|
|
734
734
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -1023,12 +1023,12 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1023
1023
|
}>]>, "many">>;
|
|
1024
1024
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1025
1025
|
}, "strict", z.ZodTypeAny, {
|
|
1026
|
-
id: string;
|
|
1027
1026
|
type: "final_answer";
|
|
1028
|
-
|
|
1029
|
-
completion_reason: "terminal" | "tool_call" | "interrupted";
|
|
1027
|
+
id: string;
|
|
1030
1028
|
timestamp: number;
|
|
1031
1029
|
answer_id: string;
|
|
1030
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1031
|
+
answer: string;
|
|
1032
1032
|
provider_continuations?: {
|
|
1033
1033
|
kind: string;
|
|
1034
1034
|
schema_version: 2;
|
|
@@ -1089,12 +1089,12 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1089
1089
|
})[] | undefined;
|
|
1090
1090
|
meta?: Record<string, unknown> | undefined;
|
|
1091
1091
|
}, {
|
|
1092
|
-
id: string;
|
|
1093
1092
|
type: "final_answer";
|
|
1094
|
-
|
|
1095
|
-
completion_reason: "terminal" | "tool_call" | "interrupted";
|
|
1093
|
+
id: string;
|
|
1096
1094
|
timestamp: number;
|
|
1097
1095
|
answer_id: string;
|
|
1096
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1097
|
+
answer: string;
|
|
1098
1098
|
provider_continuations?: {
|
|
1099
1099
|
kind: string;
|
|
1100
1100
|
schema_version: 2;
|
|
@@ -1164,18 +1164,18 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1164
1164
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1165
1165
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1166
1166
|
}, "strict", z.ZodTypeAny, {
|
|
1167
|
-
id: string;
|
|
1168
1167
|
type: "error";
|
|
1169
|
-
|
|
1168
|
+
id: string;
|
|
1170
1169
|
timestamp: number;
|
|
1170
|
+
error: string;
|
|
1171
1171
|
error_code?: string | undefined;
|
|
1172
1172
|
details?: Record<string, unknown> | undefined;
|
|
1173
1173
|
retryable?: boolean | undefined;
|
|
1174
1174
|
}, {
|
|
1175
|
-
id: string;
|
|
1176
1175
|
type: "error";
|
|
1177
|
-
|
|
1176
|
+
id: string;
|
|
1178
1177
|
timestamp: number;
|
|
1178
|
+
error: string;
|
|
1179
1179
|
error_code?: string | undefined;
|
|
1180
1180
|
details?: Record<string, unknown> | undefined;
|
|
1181
1181
|
retryable?: boolean | undefined;
|
|
@@ -1189,18 +1189,18 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1189
1189
|
seq: z.ZodNumber;
|
|
1190
1190
|
is_last: z.ZodOptional<z.ZodBoolean>;
|
|
1191
1191
|
}, "strict", z.ZodTypeAny, {
|
|
1192
|
-
id: string;
|
|
1193
1192
|
type: "stream_chunk";
|
|
1194
|
-
|
|
1193
|
+
id: string;
|
|
1195
1194
|
timestamp: number;
|
|
1195
|
+
content: string;
|
|
1196
1196
|
answer_id: string;
|
|
1197
1197
|
seq: number;
|
|
1198
1198
|
is_last?: boolean | undefined;
|
|
1199
1199
|
}, {
|
|
1200
|
-
id: string;
|
|
1201
1200
|
type: "stream_chunk";
|
|
1202
|
-
|
|
1201
|
+
id: string;
|
|
1203
1202
|
timestamp: number;
|
|
1203
|
+
content: string;
|
|
1204
1204
|
answer_id: string;
|
|
1205
1205
|
seq: number;
|
|
1206
1206
|
is_last?: boolean | undefined;
|
|
@@ -1212,14 +1212,14 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1212
1212
|
answer_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1213
1213
|
thought_message_ids: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1214
1214
|
}, "strict", z.ZodTypeAny, {
|
|
1215
|
-
id: string;
|
|
1216
1215
|
type: "stream_reset";
|
|
1216
|
+
id: string;
|
|
1217
1217
|
timestamp: number;
|
|
1218
1218
|
answer_id?: string | undefined;
|
|
1219
1219
|
thought_message_ids?: string[] | undefined;
|
|
1220
1220
|
}, {
|
|
1221
|
-
id: string;
|
|
1222
1221
|
type: "stream_reset";
|
|
1222
|
+
id: string;
|
|
1223
1223
|
timestamp: number;
|
|
1224
1224
|
answer_id?: string | undefined;
|
|
1225
1225
|
thought_message_ids?: string[] | undefined;
|
|
@@ -1275,8 +1275,8 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1275
1275
|
payload: SerializableJsonValue;
|
|
1276
1276
|
}>, "many">;
|
|
1277
1277
|
}, "strict", z.ZodTypeAny, {
|
|
1278
|
-
id: string;
|
|
1279
1278
|
type: "provider_continuation";
|
|
1279
|
+
id: string;
|
|
1280
1280
|
timestamp: number;
|
|
1281
1281
|
continuations: {
|
|
1282
1282
|
kind: string;
|
|
@@ -1291,8 +1291,8 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1291
1291
|
payload: SerializableJsonValue;
|
|
1292
1292
|
}[];
|
|
1293
1293
|
}, {
|
|
1294
|
-
id: string;
|
|
1295
1294
|
type: "provider_continuation";
|
|
1295
|
+
id: string;
|
|
1296
1296
|
timestamp: number;
|
|
1297
1297
|
continuations: {
|
|
1298
1298
|
kind: string;
|
|
@@ -1307,24 +1307,27 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1307
1307
|
payload: SerializableJsonValue;
|
|
1308
1308
|
}[];
|
|
1309
1309
|
}>]>, {
|
|
1310
|
-
id: string;
|
|
1311
1310
|
type: "thought";
|
|
1312
|
-
|
|
1311
|
+
id: string;
|
|
1313
1312
|
timestamp: number;
|
|
1313
|
+
content: string;
|
|
1314
1314
|
is_complete: boolean;
|
|
1315
|
+
thought_message_id?: string | undefined;
|
|
1315
1316
|
delta?: string | undefined;
|
|
1316
1317
|
meta?: Record<string, unknown> | undefined;
|
|
1317
|
-
thought_message_id?: string | undefined;
|
|
1318
1318
|
} | {
|
|
1319
|
+
type: "tool_call_decision";
|
|
1319
1320
|
id: string;
|
|
1321
|
+
timestamp: number;
|
|
1320
1322
|
status: "error" | "loading" | "success";
|
|
1321
|
-
type: "tool_call_decision";
|
|
1322
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1323
1323
|
tool_name: string;
|
|
1324
|
-
|
|
1325
|
-
phase: "
|
|
1324
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1325
|
+
phase: "start" | "update" | "complete" | "error";
|
|
1326
1326
|
tool_args: Record<string, unknown>;
|
|
1327
|
+
tool_calls?: unknown[] | undefined;
|
|
1327
1328
|
payload?: {
|
|
1329
|
+
args?: Record<string, unknown> | undefined;
|
|
1330
|
+
tool_calls?: unknown[] | undefined;
|
|
1328
1331
|
provider_continuations?: {
|
|
1329
1332
|
kind: string;
|
|
1330
1333
|
schema_version: 2;
|
|
@@ -1337,7 +1340,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1337
1340
|
};
|
|
1338
1341
|
payload: SerializableJsonValue;
|
|
1339
1342
|
}[] | undefined;
|
|
1340
|
-
tool_calls?: unknown[] | undefined;
|
|
1341
1343
|
assistant_replay_parts?: ({
|
|
1342
1344
|
type: "text";
|
|
1343
1345
|
text: string;
|
|
@@ -1384,32 +1386,28 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1384
1386
|
payload: SerializableJsonValue;
|
|
1385
1387
|
}[] | undefined;
|
|
1386
1388
|
})[] | undefined;
|
|
1387
|
-
args?: Record<string, unknown> | undefined;
|
|
1388
1389
|
} | undefined;
|
|
1389
|
-
tool_calls?: unknown[] | undefined;
|
|
1390
1390
|
meta?: Record<string, unknown> | undefined;
|
|
1391
1391
|
} | {
|
|
1392
|
+
type: "tool_process";
|
|
1392
1393
|
id: string;
|
|
1394
|
+
timestamp: number;
|
|
1393
1395
|
status: "error" | "loading" | "success";
|
|
1394
|
-
type: "tool_process";
|
|
1395
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1396
1396
|
tool_name: string;
|
|
1397
|
-
|
|
1398
|
-
phase: "
|
|
1397
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1398
|
+
phase: "start" | "update" | "complete" | "error";
|
|
1399
1399
|
tool_args: Record<string, unknown>;
|
|
1400
|
-
payload?: Record<string, unknown> | undefined;
|
|
1401
1400
|
tool_calls?: unknown[] | undefined;
|
|
1401
|
+
payload?: Record<string, unknown> | undefined;
|
|
1402
1402
|
meta?: Record<string, unknown> | undefined;
|
|
1403
1403
|
} | {
|
|
1404
|
-
id: string;
|
|
1405
1404
|
type: "observation";
|
|
1406
|
-
|
|
1407
|
-
tool_name: string;
|
|
1405
|
+
id: string;
|
|
1408
1406
|
timestamp: number;
|
|
1407
|
+
tool_name: string;
|
|
1408
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1409
1409
|
success: boolean;
|
|
1410
1410
|
observation: string;
|
|
1411
|
-
data?: unknown;
|
|
1412
|
-
error?: string | undefined;
|
|
1413
1411
|
attachments?: {
|
|
1414
1412
|
id: string;
|
|
1415
1413
|
kind: "image";
|
|
@@ -1422,15 +1420,17 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1422
1420
|
fileName?: string | undefined;
|
|
1423
1421
|
label?: string | undefined;
|
|
1424
1422
|
}[] | undefined;
|
|
1425
|
-
|
|
1423
|
+
error?: string | undefined;
|
|
1424
|
+
data?: unknown;
|
|
1426
1425
|
error_code?: string | undefined;
|
|
1426
|
+
duration_ms?: number | undefined;
|
|
1427
1427
|
} | {
|
|
1428
|
-
id: string;
|
|
1429
1428
|
type: "final_answer";
|
|
1430
|
-
|
|
1431
|
-
completion_reason: "terminal" | "tool_call" | "interrupted";
|
|
1429
|
+
id: string;
|
|
1432
1430
|
timestamp: number;
|
|
1433
1431
|
answer_id: string;
|
|
1432
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1433
|
+
answer: string;
|
|
1434
1434
|
provider_continuations?: {
|
|
1435
1435
|
kind: string;
|
|
1436
1436
|
schema_version: 2;
|
|
@@ -1491,30 +1491,30 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1491
1491
|
})[] | undefined;
|
|
1492
1492
|
meta?: Record<string, unknown> | undefined;
|
|
1493
1493
|
} | {
|
|
1494
|
-
id: string;
|
|
1495
1494
|
type: "error";
|
|
1496
|
-
|
|
1495
|
+
id: string;
|
|
1497
1496
|
timestamp: number;
|
|
1497
|
+
error: string;
|
|
1498
1498
|
error_code?: string | undefined;
|
|
1499
1499
|
details?: Record<string, unknown> | undefined;
|
|
1500
1500
|
retryable?: boolean | undefined;
|
|
1501
1501
|
} | {
|
|
1502
|
-
id: string;
|
|
1503
1502
|
type: "stream_chunk";
|
|
1504
|
-
|
|
1503
|
+
id: string;
|
|
1505
1504
|
timestamp: number;
|
|
1505
|
+
content: string;
|
|
1506
1506
|
answer_id: string;
|
|
1507
1507
|
seq: number;
|
|
1508
1508
|
is_last?: boolean | undefined;
|
|
1509
1509
|
} | {
|
|
1510
|
-
id: string;
|
|
1511
1510
|
type: "stream_reset";
|
|
1511
|
+
id: string;
|
|
1512
1512
|
timestamp: number;
|
|
1513
1513
|
answer_id?: string | undefined;
|
|
1514
1514
|
thought_message_ids?: string[] | undefined;
|
|
1515
1515
|
} | {
|
|
1516
|
-
id: string;
|
|
1517
1516
|
type: "provider_continuation";
|
|
1517
|
+
id: string;
|
|
1518
1518
|
timestamp: number;
|
|
1519
1519
|
continuations: {
|
|
1520
1520
|
kind: string;
|
|
@@ -1529,24 +1529,27 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1529
1529
|
payload: SerializableJsonValue;
|
|
1530
1530
|
}[];
|
|
1531
1531
|
}, {
|
|
1532
|
-
id: string;
|
|
1533
1532
|
type: "thought";
|
|
1534
|
-
|
|
1533
|
+
id: string;
|
|
1535
1534
|
timestamp: number;
|
|
1535
|
+
content: string;
|
|
1536
1536
|
is_complete: boolean;
|
|
1537
|
+
thought_message_id?: string | undefined;
|
|
1537
1538
|
delta?: string | undefined;
|
|
1538
1539
|
meta?: Record<string, unknown> | undefined;
|
|
1539
|
-
thought_message_id?: string | undefined;
|
|
1540
1540
|
} | {
|
|
1541
|
+
type: "tool_call_decision";
|
|
1541
1542
|
id: string;
|
|
1543
|
+
timestamp: number;
|
|
1542
1544
|
status: "error" | "loading" | "success";
|
|
1543
|
-
type: "tool_call_decision";
|
|
1544
|
-
tool_call_id: string;
|
|
1545
1545
|
tool_name: string;
|
|
1546
|
-
|
|
1547
|
-
phase: "
|
|
1546
|
+
tool_call_id: string;
|
|
1547
|
+
phase: "start" | "update" | "complete" | "error";
|
|
1548
1548
|
tool_args: Record<string, unknown>;
|
|
1549
|
+
tool_calls?: unknown[] | undefined;
|
|
1549
1550
|
payload?: {
|
|
1551
|
+
args?: Record<string, unknown> | undefined;
|
|
1552
|
+
tool_calls?: unknown[] | undefined;
|
|
1550
1553
|
provider_continuations?: {
|
|
1551
1554
|
kind: string;
|
|
1552
1555
|
schema_version: 2;
|
|
@@ -1559,7 +1562,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1559
1562
|
};
|
|
1560
1563
|
payload: SerializableJsonValue;
|
|
1561
1564
|
}[] | undefined;
|
|
1562
|
-
tool_calls?: unknown[] | undefined;
|
|
1563
1565
|
assistant_replay_parts?: ({
|
|
1564
1566
|
type: "text";
|
|
1565
1567
|
text: string;
|
|
@@ -1606,32 +1608,28 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1606
1608
|
payload: SerializableJsonValue;
|
|
1607
1609
|
}[] | undefined;
|
|
1608
1610
|
})[] | undefined;
|
|
1609
|
-
args?: Record<string, unknown> | undefined;
|
|
1610
1611
|
} | undefined;
|
|
1611
|
-
tool_calls?: unknown[] | undefined;
|
|
1612
1612
|
meta?: Record<string, unknown> | undefined;
|
|
1613
1613
|
} | {
|
|
1614
|
+
type: "tool_process";
|
|
1614
1615
|
id: string;
|
|
1616
|
+
timestamp: number;
|
|
1615
1617
|
status: "error" | "loading" | "success";
|
|
1616
|
-
type: "tool_process";
|
|
1617
|
-
tool_call_id: string;
|
|
1618
1618
|
tool_name: string;
|
|
1619
|
-
|
|
1620
|
-
phase: "
|
|
1619
|
+
tool_call_id: string;
|
|
1620
|
+
phase: "start" | "update" | "complete" | "error";
|
|
1621
1621
|
tool_args: Record<string, unknown>;
|
|
1622
|
-
payload?: Record<string, unknown> | undefined;
|
|
1623
1622
|
tool_calls?: unknown[] | undefined;
|
|
1623
|
+
payload?: Record<string, unknown> | undefined;
|
|
1624
1624
|
meta?: Record<string, unknown> | undefined;
|
|
1625
1625
|
} | {
|
|
1626
|
-
id: string;
|
|
1627
1626
|
type: "observation";
|
|
1628
|
-
|
|
1629
|
-
tool_name: string;
|
|
1627
|
+
id: string;
|
|
1630
1628
|
timestamp: number;
|
|
1629
|
+
tool_name: string;
|
|
1630
|
+
tool_call_id: string;
|
|
1631
1631
|
success: boolean;
|
|
1632
1632
|
observation: string;
|
|
1633
|
-
data?: unknown;
|
|
1634
|
-
error?: string | undefined;
|
|
1635
1633
|
attachments?: {
|
|
1636
1634
|
id: string;
|
|
1637
1635
|
kind: "image";
|
|
@@ -1644,15 +1642,17 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1644
1642
|
fileName?: string | undefined;
|
|
1645
1643
|
label?: string | undefined;
|
|
1646
1644
|
}[] | undefined;
|
|
1647
|
-
|
|
1645
|
+
error?: string | undefined;
|
|
1646
|
+
data?: unknown;
|
|
1648
1647
|
error_code?: string | undefined;
|
|
1648
|
+
duration_ms?: number | undefined;
|
|
1649
1649
|
} | {
|
|
1650
|
-
id: string;
|
|
1651
1650
|
type: "final_answer";
|
|
1652
|
-
|
|
1653
|
-
completion_reason: "terminal" | "tool_call" | "interrupted";
|
|
1651
|
+
id: string;
|
|
1654
1652
|
timestamp: number;
|
|
1655
1653
|
answer_id: string;
|
|
1654
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1655
|
+
answer: string;
|
|
1656
1656
|
provider_continuations?: {
|
|
1657
1657
|
kind: string;
|
|
1658
1658
|
schema_version: 2;
|
|
@@ -1713,30 +1713,30 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1713
1713
|
})[] | undefined;
|
|
1714
1714
|
meta?: Record<string, unknown> | undefined;
|
|
1715
1715
|
} | {
|
|
1716
|
-
id: string;
|
|
1717
1716
|
type: "error";
|
|
1718
|
-
|
|
1717
|
+
id: string;
|
|
1719
1718
|
timestamp: number;
|
|
1719
|
+
error: string;
|
|
1720
1720
|
error_code?: string | undefined;
|
|
1721
1721
|
details?: Record<string, unknown> | undefined;
|
|
1722
1722
|
retryable?: boolean | undefined;
|
|
1723
1723
|
} | {
|
|
1724
|
-
id: string;
|
|
1725
1724
|
type: "stream_chunk";
|
|
1726
|
-
|
|
1725
|
+
id: string;
|
|
1727
1726
|
timestamp: number;
|
|
1727
|
+
content: string;
|
|
1728
1728
|
answer_id: string;
|
|
1729
1729
|
seq: number;
|
|
1730
1730
|
is_last?: boolean | undefined;
|
|
1731
1731
|
} | {
|
|
1732
|
-
id: string;
|
|
1733
1732
|
type: "stream_reset";
|
|
1733
|
+
id: string;
|
|
1734
1734
|
timestamp: number;
|
|
1735
1735
|
answer_id?: string | undefined;
|
|
1736
1736
|
thought_message_ids?: string[] | undefined;
|
|
1737
1737
|
} | {
|
|
1738
|
-
id: string;
|
|
1739
1738
|
type: "provider_continuation";
|
|
1739
|
+
id: string;
|
|
1740
1740
|
timestamp: number;
|
|
1741
1741
|
continuations: {
|
|
1742
1742
|
kind: string;
|
|
@@ -1754,4 +1754,5 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1754
1754
|
type AgentEvent = z.infer<typeof AgentEventSchema>;
|
|
1755
1755
|
type AnyAgentEvent = AgentEvent;
|
|
1756
1756
|
|
|
1757
|
-
export
|
|
1757
|
+
export { AgentEventSchema };
|
|
1758
|
+
export type { AgentEvent, AnyAgentEvent };
|