@linnlabs/linnkit 0.32.0 → 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 +14 -0
- 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.d.cts +14 -77
- package/dist/index.d.ts +14 -77
- 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.d.cts +5 -23
- package/dist/quickstart.d.ts +5 -23
- 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.d.cts +106 -20
- package/dist/runtime-kernel.d.ts +106 -20
- 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.d.cts +17 -277
- package/dist/testkit.d.ts +17 -277
- 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,149 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
kind: z.ZodLiteral<"image">;
|
|
6
|
-
resourceId: z.ZodEffects<z.ZodString, string, string>;
|
|
7
|
-
mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/webp"]>;
|
|
8
|
-
byteLength: z.ZodNumber;
|
|
9
|
-
width: z.ZodNumber;
|
|
10
|
-
height: z.ZodNumber;
|
|
11
|
-
sha256: z.ZodString;
|
|
12
|
-
fileName: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
13
|
-
label: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
14
|
-
}, "strict", z.ZodTypeAny, {
|
|
15
|
-
id: string;
|
|
16
|
-
kind: "image";
|
|
17
|
-
resourceId: string;
|
|
18
|
-
mediaType: "image/jpeg" | "image/png" | "image/webp";
|
|
19
|
-
byteLength: number;
|
|
20
|
-
width: number;
|
|
21
|
-
height: number;
|
|
22
|
-
sha256: string;
|
|
23
|
-
fileName?: string | undefined;
|
|
24
|
-
label?: string | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
id: string;
|
|
27
|
-
kind: "image";
|
|
28
|
-
resourceId: string;
|
|
29
|
-
mediaType: "image/jpeg" | "image/png" | "image/webp";
|
|
30
|
-
byteLength: number;
|
|
31
|
-
width: number;
|
|
32
|
-
height: number;
|
|
33
|
-
sha256: string;
|
|
34
|
-
fileName?: string | undefined;
|
|
35
|
-
label?: string | undefined;
|
|
36
|
-
}>, "many">;
|
|
37
|
-
declare const RuntimeResourceRef: z.ZodObject<{
|
|
38
|
-
id: z.ZodEffects<z.ZodString, string, string>;
|
|
39
|
-
kind: z.ZodLiteral<"image">;
|
|
40
|
-
resourceId: z.ZodEffects<z.ZodString, string, string>;
|
|
41
|
-
mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/webp"]>;
|
|
42
|
-
byteLength: z.ZodNumber;
|
|
43
|
-
width: z.ZodNumber;
|
|
44
|
-
height: z.ZodNumber;
|
|
45
|
-
sha256: z.ZodString;
|
|
46
|
-
fileName: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
47
|
-
label: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
48
|
-
}, "strict", z.ZodTypeAny, {
|
|
49
|
-
id: string;
|
|
50
|
-
kind: "image";
|
|
51
|
-
resourceId: string;
|
|
52
|
-
mediaType: "image/jpeg" | "image/png" | "image/webp";
|
|
53
|
-
byteLength: number;
|
|
54
|
-
width: number;
|
|
55
|
-
height: number;
|
|
56
|
-
sha256: string;
|
|
57
|
-
fileName?: string | undefined;
|
|
58
|
-
label?: string | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
id: string;
|
|
61
|
-
kind: "image";
|
|
62
|
-
resourceId: string;
|
|
63
|
-
mediaType: "image/jpeg" | "image/png" | "image/webp";
|
|
64
|
-
byteLength: number;
|
|
65
|
-
width: number;
|
|
66
|
-
height: number;
|
|
67
|
-
sha256: string;
|
|
68
|
-
fileName?: string | undefined;
|
|
69
|
-
label?: string | undefined;
|
|
70
|
-
}>;
|
|
71
|
-
type RuntimeResourceRef = z.infer<typeof RuntimeResourceRef>;
|
|
72
|
-
|
|
73
|
-
/** 不可变 Runtime 事实身份;全局唯一。 */
|
|
74
|
-
declare const RuntimeEventIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
75
|
-
/** 进入模型上下文的一条消息身份;可以保留来源 Runtime fact ID,也可以由上下文 owner 创建。 */
|
|
76
|
-
declare const AiMessageIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
77
|
-
/** Conversation 聚合根身份;全局唯一。 */
|
|
78
|
-
declare const ConversationIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
79
|
-
/** 一次用户输入及其后续工作的逻辑轮次身份;conversation 内唯一。 */
|
|
80
|
-
declare const TurnIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
81
|
-
/** 一次 Agent run 身份;全局唯一。 */
|
|
82
|
-
declare const RunIdSchema: z.ZodBranded<z.ZodEffects<z.ZodString, string, string>, "RunId">;
|
|
83
|
-
/** 一次前端传输/执行会话身份;全局唯一。 */
|
|
84
|
-
declare const ExecutionIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
85
|
-
/** 一条可观察性链路身份;全局唯一,由 execution sequencer 持有。 */
|
|
86
|
-
declare const TraceIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
87
|
-
/** 一个可流式聚合的答案段身份;全局唯一。 */
|
|
88
|
-
declare const AnswerSegmentIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
89
|
-
/** 一段可增量合并的思考消息身份;run 内唯一。 */
|
|
90
|
-
declare const ThoughtMessageIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
91
|
-
/** 一次工具调用身份;run 内唯一。 */
|
|
92
|
-
declare const ToolCallIdSchema: z.ZodBranded<z.ZodEffects<z.ZodString, string, string>, "ToolCallId">;
|
|
93
|
-
/** 一次需要用户继续操作的交互身份;run 内唯一。 */
|
|
94
|
-
declare const InteractionIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
95
|
-
/** 一个 child/subrun 身份;全局唯一。 */
|
|
96
|
-
declare const SubrunIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
97
|
-
/** 一次等待用户交互的恢复凭据;全局唯一且不可复用。 */
|
|
98
|
-
declare const ResumeTokenSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
99
|
-
/** 一次等待用户交互恢复操作的互斥 claim 身份;全局唯一。 */
|
|
100
|
-
declare const RunResumeClaimIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
101
|
-
/** 一份追加只读审计信封的身份;全局唯一。 */
|
|
102
|
-
declare const AuditEnvelopeIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
103
|
-
/** 一条上下文构建账本记录的身份;全局唯一。 */
|
|
104
|
-
declare const ContextLedgerEntryIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
105
|
-
/**
|
|
106
|
-
* 指向已有 Runtime fact 的关系字段,不创建新的身份命名空间。
|
|
107
|
-
* 采用单独名称是为了让字段语义清楚,而不是允许生成独立 source event ID。
|
|
108
|
-
*/
|
|
109
|
-
declare const SourceEventIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
110
|
-
/** 历史摘要替换目标;必须引用已有 Runtime fact 的正式 ID。 */
|
|
111
|
-
declare const HistoryMessageReferenceIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
112
|
-
/**
|
|
113
|
-
* control 事件操作目标的多态引用。
|
|
114
|
-
*
|
|
115
|
-
* 目标可能是 event、message 或 branch anchor,所以它不是新的实体身份,也不能被收窄成
|
|
116
|
-
* 某一个具体 ID 类型;创建 control 事件的业务边界必须根据 op 解释并校验目标类别。
|
|
117
|
-
*/
|
|
118
|
-
declare const ControlTargetReferenceIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
119
|
-
type RuntimeEventId = z.infer<typeof RuntimeEventIdSchema>;
|
|
120
|
-
type AiMessageId = z.infer<typeof AiMessageIdSchema>;
|
|
121
|
-
type ConversationId = z.infer<typeof ConversationIdSchema>;
|
|
122
|
-
type TurnId = z.infer<typeof TurnIdSchema>;
|
|
123
|
-
type RunId = z.infer<typeof RunIdSchema>;
|
|
124
|
-
type ExecutionId = z.infer<typeof ExecutionIdSchema>;
|
|
125
|
-
type TraceId = z.infer<typeof TraceIdSchema>;
|
|
126
|
-
type AnswerSegmentId = z.infer<typeof AnswerSegmentIdSchema>;
|
|
127
|
-
type ThoughtMessageId = z.infer<typeof ThoughtMessageIdSchema>;
|
|
128
|
-
type ToolCallId = z.infer<typeof ToolCallIdSchema>;
|
|
129
|
-
type InteractionId = z.infer<typeof InteractionIdSchema>;
|
|
130
|
-
type SubrunId = z.infer<typeof SubrunIdSchema>;
|
|
131
|
-
type ResumeToken = z.infer<typeof ResumeTokenSchema>;
|
|
132
|
-
type RunResumeClaimId = z.infer<typeof RunResumeClaimIdSchema>;
|
|
133
|
-
type AuditEnvelopeId = z.infer<typeof AuditEnvelopeIdSchema>;
|
|
134
|
-
type ContextLedgerEntryId = z.infer<typeof ContextLedgerEntryIdSchema>;
|
|
135
|
-
type SourceEventId = z.infer<typeof SourceEventIdSchema>;
|
|
136
|
-
type HistoryMessageReferenceId = z.infer<typeof HistoryMessageReferenceIdSchema>;
|
|
137
|
-
type ControlTargetReferenceId = z.infer<typeof ControlTargetReferenceIdSchema>;
|
|
138
|
-
|
|
139
|
-
type SerializableJsonValue = string | number | boolean | null | SerializableJsonValue[] | {
|
|
140
|
-
[key: string]: SerializableJsonValue;
|
|
141
|
-
};
|
|
142
|
-
declare const SerializableJsonValue: z.ZodType<SerializableJsonValue>;
|
|
143
|
-
declare const SerializableJsonRecord: z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
|
|
144
|
-
type SerializableJsonRecord = z.infer<typeof SerializableJsonRecord>;
|
|
145
|
-
declare function toSerializableJsonValue(value: unknown): SerializableJsonValue | undefined;
|
|
146
|
-
declare function toSerializableJsonRecord(value: unknown): SerializableJsonRecord | undefined;
|
|
2
|
+
import { RuntimeResourceRef } from './resource-ref.cjs';
|
|
3
|
+
import { ToolCallIdSchema } from './identity/definitions.cjs';
|
|
4
|
+
import { SerializableJsonValue } from './json.cjs';
|
|
147
5
|
|
|
148
6
|
declare const ToolCallWire: z.ZodObject<{
|
|
149
7
|
id: z.ZodBranded<z.ZodEffects<z.ZodString, string, string>, "ToolCallId">;
|
|
@@ -163,15 +21,15 @@ declare const ToolCallWire: z.ZodObject<{
|
|
|
163
21
|
name: string;
|
|
164
22
|
arguments: string;
|
|
165
23
|
};
|
|
166
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
167
24
|
type: "function";
|
|
25
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
168
26
|
}, {
|
|
169
27
|
function: {
|
|
170
28
|
name: string;
|
|
171
29
|
arguments: string;
|
|
172
30
|
};
|
|
173
|
-
id: string;
|
|
174
31
|
type: "function";
|
|
32
|
+
id: string;
|
|
175
33
|
}>;
|
|
176
34
|
type ToolCallWire = z.infer<typeof ToolCallWire>;
|
|
177
35
|
declare const HistorySummaryMeta: z.ZodObject<{
|
|
@@ -216,15 +74,15 @@ declare const ToolCallsMeta: z.ZodObject<{
|
|
|
216
74
|
name: string;
|
|
217
75
|
arguments: string;
|
|
218
76
|
};
|
|
219
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
220
77
|
type: "function";
|
|
78
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
221
79
|
}, {
|
|
222
80
|
function: {
|
|
223
81
|
name: string;
|
|
224
82
|
arguments: string;
|
|
225
83
|
};
|
|
226
|
-
id: string;
|
|
227
84
|
type: "function";
|
|
85
|
+
id: string;
|
|
228
86
|
}>, "many">;
|
|
229
87
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
230
88
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -517,8 +375,8 @@ declare const ToolCallsMeta: z.ZodObject<{
|
|
|
517
375
|
name: string;
|
|
518
376
|
arguments: string;
|
|
519
377
|
};
|
|
520
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
521
378
|
type: "function";
|
|
379
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
522
380
|
}[];
|
|
523
381
|
provider_continuations?: {
|
|
524
382
|
kind: string;
|
|
@@ -578,15 +436,15 @@ declare const ToolCallsMeta: z.ZodObject<{
|
|
|
578
436
|
payload: SerializableJsonValue;
|
|
579
437
|
}[] | undefined;
|
|
580
438
|
})[] | undefined;
|
|
581
|
-
completion_reason?: "
|
|
439
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
582
440
|
}, {
|
|
583
441
|
tool_calls: {
|
|
584
442
|
function: {
|
|
585
443
|
name: string;
|
|
586
444
|
arguments: string;
|
|
587
445
|
};
|
|
588
|
-
id: string;
|
|
589
446
|
type: "function";
|
|
447
|
+
id: string;
|
|
590
448
|
}[];
|
|
591
449
|
provider_continuations?: {
|
|
592
450
|
kind: string;
|
|
@@ -646,7 +504,7 @@ declare const ToolCallsMeta: z.ZodObject<{
|
|
|
646
504
|
payload: SerializableJsonValue;
|
|
647
505
|
}[] | undefined;
|
|
648
506
|
})[] | undefined;
|
|
649
|
-
completion_reason?: "
|
|
507
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
650
508
|
}>;
|
|
651
509
|
type ToolCallsMeta = z.infer<typeof ToolCallsMeta>;
|
|
652
510
|
declare const ToolOutputMeta: z.ZodObject<{
|
|
@@ -654,12 +512,12 @@ declare const ToolOutputMeta: z.ZodObject<{
|
|
|
654
512
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
655
513
|
tool_call_id: z.ZodBranded<z.ZodEffects<z.ZodString, string, string>, "ToolCallId">;
|
|
656
514
|
}, "strip", z.ZodTypeAny, {
|
|
657
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
658
515
|
tool_name: string;
|
|
516
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
659
517
|
args?: Record<string, unknown> | undefined;
|
|
660
518
|
}, {
|
|
661
|
-
tool_call_id: string;
|
|
662
519
|
tool_name: string;
|
|
520
|
+
tool_call_id: string;
|
|
663
521
|
args?: Record<string, unknown> | undefined;
|
|
664
522
|
}>;
|
|
665
523
|
type ToolOutputMeta = z.infer<typeof ToolOutputMeta>;
|
|
@@ -710,7 +568,7 @@ declare const TaskTrackingMeta: z.ZodObject<{
|
|
|
710
568
|
}, "strip", z.ZodTypeAny, {
|
|
711
569
|
taskType?: string | undefined;
|
|
712
570
|
taskId?: string | undefined;
|
|
713
|
-
taskStatus?: "requested" | "
|
|
571
|
+
taskStatus?: "requested" | "completed" | "failed" | "in_progress" | undefined;
|
|
714
572
|
taskTrackingInfo?: {
|
|
715
573
|
startTime?: number | undefined;
|
|
716
574
|
endTime?: number | undefined;
|
|
@@ -721,7 +579,7 @@ declare const TaskTrackingMeta: z.ZodObject<{
|
|
|
721
579
|
}, {
|
|
722
580
|
taskType?: string | undefined;
|
|
723
581
|
taskId?: string | undefined;
|
|
724
|
-
taskStatus?: "requested" | "
|
|
582
|
+
taskStatus?: "requested" | "completed" | "failed" | "in_progress" | undefined;
|
|
725
583
|
taskTrackingInfo?: {
|
|
726
584
|
startTime?: number | undefined;
|
|
727
585
|
endTime?: number | undefined;
|
|
@@ -756,15 +614,15 @@ declare const PersistentMetadata: z.ZodObject<{
|
|
|
756
614
|
name: string;
|
|
757
615
|
arguments: string;
|
|
758
616
|
};
|
|
759
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
760
617
|
type: "function";
|
|
618
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
761
619
|
}, {
|
|
762
620
|
function: {
|
|
763
621
|
name: string;
|
|
764
622
|
arguments: string;
|
|
765
623
|
};
|
|
766
|
-
id: string;
|
|
767
624
|
type: "function";
|
|
625
|
+
id: string;
|
|
768
626
|
}>, "many">>;
|
|
769
627
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
770
628
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -1126,15 +984,15 @@ declare const PersistentMetadata: z.ZodObject<{
|
|
|
1126
984
|
name: string;
|
|
1127
985
|
arguments: string;
|
|
1128
986
|
};
|
|
1129
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
1130
987
|
type: "function";
|
|
988
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
1131
989
|
}, {
|
|
1132
990
|
function: {
|
|
1133
991
|
name: string;
|
|
1134
992
|
arguments: string;
|
|
1135
993
|
};
|
|
1136
|
-
id: string;
|
|
1137
994
|
type: "function";
|
|
995
|
+
id: string;
|
|
1138
996
|
}>, "many">>;
|
|
1139
997
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1140
998
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -1496,15 +1354,15 @@ declare const PersistentMetadata: z.ZodObject<{
|
|
|
1496
1354
|
name: string;
|
|
1497
1355
|
arguments: string;
|
|
1498
1356
|
};
|
|
1499
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
1500
1357
|
type: "function";
|
|
1358
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
1501
1359
|
}, {
|
|
1502
1360
|
function: {
|
|
1503
1361
|
name: string;
|
|
1504
1362
|
arguments: string;
|
|
1505
1363
|
};
|
|
1506
|
-
id: string;
|
|
1507
1364
|
type: "function";
|
|
1365
|
+
id: string;
|
|
1508
1366
|
}>, "many">>;
|
|
1509
1367
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1510
1368
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -1872,15 +1730,15 @@ declare const SystemMessage: z.ZodObject<{
|
|
|
1872
1730
|
name: string;
|
|
1873
1731
|
arguments: string;
|
|
1874
1732
|
};
|
|
1875
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
1876
1733
|
type: "function";
|
|
1734
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
1877
1735
|
}, {
|
|
1878
1736
|
function: {
|
|
1879
1737
|
name: string;
|
|
1880
1738
|
arguments: string;
|
|
1881
1739
|
};
|
|
1882
|
-
id: string;
|
|
1883
1740
|
type: "function";
|
|
1741
|
+
id: string;
|
|
1884
1742
|
}>, "many">>;
|
|
1885
1743
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1886
1744
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -2242,15 +2100,15 @@ declare const SystemMessage: z.ZodObject<{
|
|
|
2242
2100
|
name: string;
|
|
2243
2101
|
arguments: string;
|
|
2244
2102
|
};
|
|
2245
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
2246
2103
|
type: "function";
|
|
2104
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
2247
2105
|
}, {
|
|
2248
2106
|
function: {
|
|
2249
2107
|
name: string;
|
|
2250
2108
|
arguments: string;
|
|
2251
2109
|
};
|
|
2252
|
-
id: string;
|
|
2253
2110
|
type: "function";
|
|
2111
|
+
id: string;
|
|
2254
2112
|
}>, "many">>;
|
|
2255
2113
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2256
2114
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -2612,15 +2470,15 @@ declare const SystemMessage: z.ZodObject<{
|
|
|
2612
2470
|
name: string;
|
|
2613
2471
|
arguments: string;
|
|
2614
2472
|
};
|
|
2615
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
2616
2473
|
type: "function";
|
|
2474
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
2617
2475
|
}, {
|
|
2618
2476
|
function: {
|
|
2619
2477
|
name: string;
|
|
2620
2478
|
arguments: string;
|
|
2621
2479
|
};
|
|
2622
|
-
id: string;
|
|
2623
2480
|
type: "function";
|
|
2481
|
+
id: string;
|
|
2624
2482
|
}>, "many">>;
|
|
2625
2483
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2626
2484
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -2962,10 +2820,10 @@ declare const SystemMessage: z.ZodObject<{
|
|
|
2962
2820
|
role: z.ZodLiteral<"system">;
|
|
2963
2821
|
type: z.ZodEnum<["system_prompt", "history_summary", "context_injection"]>;
|
|
2964
2822
|
}, "strip", z.ZodTypeAny, {
|
|
2823
|
+
type: "history_summary" | "system_prompt" | "context_injection";
|
|
2965
2824
|
id: string;
|
|
2966
|
-
type: "system_prompt" | "history_summary" | "context_injection";
|
|
2967
|
-
content: string;
|
|
2968
2825
|
timestamp: number;
|
|
2826
|
+
content: string;
|
|
2969
2827
|
role: "system";
|
|
2970
2828
|
metadata?: z.objectOutputType<{
|
|
2971
2829
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -2992,15 +2850,15 @@ declare const SystemMessage: z.ZodObject<{
|
|
|
2992
2850
|
name: string;
|
|
2993
2851
|
arguments: string;
|
|
2994
2852
|
};
|
|
2995
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
2996
2853
|
type: "function";
|
|
2854
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
2997
2855
|
}, {
|
|
2998
2856
|
function: {
|
|
2999
2857
|
name: string;
|
|
3000
2858
|
arguments: string;
|
|
3001
2859
|
};
|
|
3002
|
-
id: string;
|
|
3003
2860
|
type: "function";
|
|
2861
|
+
id: string;
|
|
3004
2862
|
}>, "many">>;
|
|
3005
2863
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3006
2864
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -3339,10 +3197,10 @@ declare const SystemMessage: z.ZodObject<{
|
|
|
3339
3197
|
fencePlacement: z.ZodOptional<z.ZodString>;
|
|
3340
3198
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3341
3199
|
}, {
|
|
3200
|
+
type: "history_summary" | "system_prompt" | "context_injection";
|
|
3342
3201
|
id: string;
|
|
3343
|
-
type: "system_prompt" | "history_summary" | "context_injection";
|
|
3344
|
-
content: string;
|
|
3345
3202
|
timestamp: number;
|
|
3203
|
+
content: string;
|
|
3346
3204
|
role: "system";
|
|
3347
3205
|
metadata?: z.objectInputType<{
|
|
3348
3206
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -3369,15 +3227,15 @@ declare const SystemMessage: z.ZodObject<{
|
|
|
3369
3227
|
name: string;
|
|
3370
3228
|
arguments: string;
|
|
3371
3229
|
};
|
|
3372
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
3373
3230
|
type: "function";
|
|
3231
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
3374
3232
|
}, {
|
|
3375
3233
|
function: {
|
|
3376
3234
|
name: string;
|
|
3377
3235
|
arguments: string;
|
|
3378
3236
|
};
|
|
3379
|
-
id: string;
|
|
3380
3237
|
type: "function";
|
|
3238
|
+
id: string;
|
|
3381
3239
|
}>, "many">>;
|
|
3382
3240
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3383
3241
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -3746,15 +3604,15 @@ declare const UserMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
3746
3604
|
name: string;
|
|
3747
3605
|
arguments: string;
|
|
3748
3606
|
};
|
|
3749
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
3750
3607
|
type: "function";
|
|
3608
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
3751
3609
|
}, {
|
|
3752
3610
|
function: {
|
|
3753
3611
|
name: string;
|
|
3754
3612
|
arguments: string;
|
|
3755
3613
|
};
|
|
3756
|
-
id: string;
|
|
3757
3614
|
type: "function";
|
|
3615
|
+
id: string;
|
|
3758
3616
|
}>, "many">>;
|
|
3759
3617
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3760
3618
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -4116,15 +3974,15 @@ declare const UserMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
4116
3974
|
name: string;
|
|
4117
3975
|
arguments: string;
|
|
4118
3976
|
};
|
|
4119
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
4120
3977
|
type: "function";
|
|
3978
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
4121
3979
|
}, {
|
|
4122
3980
|
function: {
|
|
4123
3981
|
name: string;
|
|
4124
3982
|
arguments: string;
|
|
4125
3983
|
};
|
|
4126
|
-
id: string;
|
|
4127
3984
|
type: "function";
|
|
3985
|
+
id: string;
|
|
4128
3986
|
}>, "many">>;
|
|
4129
3987
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4130
3988
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -4486,15 +4344,15 @@ declare const UserMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
4486
4344
|
name: string;
|
|
4487
4345
|
arguments: string;
|
|
4488
4346
|
};
|
|
4489
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
4490
4347
|
type: "function";
|
|
4348
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
4491
4349
|
}, {
|
|
4492
4350
|
function: {
|
|
4493
4351
|
name: string;
|
|
4494
4352
|
arguments: string;
|
|
4495
4353
|
};
|
|
4496
|
-
id: string;
|
|
4497
4354
|
type: "function";
|
|
4355
|
+
id: string;
|
|
4498
4356
|
}>, "many">>;
|
|
4499
4357
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4500
4358
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -4870,10 +4728,10 @@ declare const UserMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
4870
4728
|
label?: string | undefined;
|
|
4871
4729
|
}>, "many">>;
|
|
4872
4730
|
}, "strip", z.ZodTypeAny, {
|
|
4873
|
-
id: string;
|
|
4874
4731
|
type: "user_input";
|
|
4875
|
-
|
|
4732
|
+
id: string;
|
|
4876
4733
|
timestamp: number;
|
|
4734
|
+
content: string;
|
|
4877
4735
|
role: "user";
|
|
4878
4736
|
metadata?: z.objectOutputType<{
|
|
4879
4737
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -4900,15 +4758,15 @@ declare const UserMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
4900
4758
|
name: string;
|
|
4901
4759
|
arguments: string;
|
|
4902
4760
|
};
|
|
4903
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
4904
4761
|
type: "function";
|
|
4762
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
4905
4763
|
}, {
|
|
4906
4764
|
function: {
|
|
4907
4765
|
name: string;
|
|
4908
4766
|
arguments: string;
|
|
4909
4767
|
};
|
|
4910
|
-
id: string;
|
|
4911
4768
|
type: "function";
|
|
4769
|
+
id: string;
|
|
4912
4770
|
}>, "many">>;
|
|
4913
4771
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4914
4772
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -5259,10 +5117,10 @@ declare const UserMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
5259
5117
|
label?: string | undefined;
|
|
5260
5118
|
}[] | undefined;
|
|
5261
5119
|
}, {
|
|
5262
|
-
id: string;
|
|
5263
5120
|
type: "user_input";
|
|
5264
|
-
|
|
5121
|
+
id: string;
|
|
5265
5122
|
timestamp: number;
|
|
5123
|
+
content: string;
|
|
5266
5124
|
role: "user";
|
|
5267
5125
|
metadata?: z.objectInputType<{
|
|
5268
5126
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -5289,15 +5147,15 @@ declare const UserMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
5289
5147
|
name: string;
|
|
5290
5148
|
arguments: string;
|
|
5291
5149
|
};
|
|
5292
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
5293
5150
|
type: "function";
|
|
5151
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
5294
5152
|
}, {
|
|
5295
5153
|
function: {
|
|
5296
5154
|
name: string;
|
|
5297
5155
|
arguments: string;
|
|
5298
5156
|
};
|
|
5299
|
-
id: string;
|
|
5300
5157
|
type: "function";
|
|
5158
|
+
id: string;
|
|
5301
5159
|
}>, "many">>;
|
|
5302
5160
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5303
5161
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -5676,15 +5534,15 @@ declare const UserMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
5676
5534
|
name: string;
|
|
5677
5535
|
arguments: string;
|
|
5678
5536
|
};
|
|
5679
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
5680
5537
|
type: "function";
|
|
5538
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
5681
5539
|
}, {
|
|
5682
5540
|
function: {
|
|
5683
5541
|
name: string;
|
|
5684
5542
|
arguments: string;
|
|
5685
5543
|
};
|
|
5686
|
-
id: string;
|
|
5687
5544
|
type: "function";
|
|
5545
|
+
id: string;
|
|
5688
5546
|
}>, "many">>;
|
|
5689
5547
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5690
5548
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -6046,15 +5904,15 @@ declare const UserMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
6046
5904
|
name: string;
|
|
6047
5905
|
arguments: string;
|
|
6048
5906
|
};
|
|
6049
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
6050
5907
|
type: "function";
|
|
5908
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
6051
5909
|
}, {
|
|
6052
5910
|
function: {
|
|
6053
5911
|
name: string;
|
|
6054
5912
|
arguments: string;
|
|
6055
5913
|
};
|
|
6056
|
-
id: string;
|
|
6057
5914
|
type: "function";
|
|
5915
|
+
id: string;
|
|
6058
5916
|
}>, "many">>;
|
|
6059
5917
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6060
5918
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -6416,15 +6274,15 @@ declare const UserMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
6416
6274
|
name: string;
|
|
6417
6275
|
arguments: string;
|
|
6418
6276
|
};
|
|
6419
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
6420
6277
|
type: "function";
|
|
6278
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
6421
6279
|
}, {
|
|
6422
6280
|
function: {
|
|
6423
6281
|
name: string;
|
|
6424
6282
|
arguments: string;
|
|
6425
6283
|
};
|
|
6426
|
-
id: string;
|
|
6427
6284
|
type: "function";
|
|
6285
|
+
id: string;
|
|
6428
6286
|
}>, "many">>;
|
|
6429
6287
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6430
6288
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -6766,10 +6624,10 @@ declare const UserMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
6766
6624
|
role: z.ZodLiteral<"user">;
|
|
6767
6625
|
type: z.ZodEnum<["context_injection", "context_before", "context_after", "document_fragment", "task_request"]>;
|
|
6768
6626
|
}, "strip", z.ZodTypeAny, {
|
|
6769
|
-
id: string;
|
|
6770
6627
|
type: "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request";
|
|
6771
|
-
|
|
6628
|
+
id: string;
|
|
6772
6629
|
timestamp: number;
|
|
6630
|
+
content: string;
|
|
6773
6631
|
role: "user";
|
|
6774
6632
|
metadata?: z.objectOutputType<{
|
|
6775
6633
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -6796,15 +6654,15 @@ declare const UserMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
6796
6654
|
name: string;
|
|
6797
6655
|
arguments: string;
|
|
6798
6656
|
};
|
|
6799
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
6800
6657
|
type: "function";
|
|
6658
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
6801
6659
|
}, {
|
|
6802
6660
|
function: {
|
|
6803
6661
|
name: string;
|
|
6804
6662
|
arguments: string;
|
|
6805
6663
|
};
|
|
6806
|
-
id: string;
|
|
6807
6664
|
type: "function";
|
|
6665
|
+
id: string;
|
|
6808
6666
|
}>, "many">>;
|
|
6809
6667
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6810
6668
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -7143,10 +7001,10 @@ declare const UserMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
7143
7001
|
fencePlacement: z.ZodOptional<z.ZodString>;
|
|
7144
7002
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
7145
7003
|
}, {
|
|
7146
|
-
id: string;
|
|
7147
7004
|
type: "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request";
|
|
7148
|
-
|
|
7005
|
+
id: string;
|
|
7149
7006
|
timestamp: number;
|
|
7007
|
+
content: string;
|
|
7150
7008
|
role: "user";
|
|
7151
7009
|
metadata?: z.objectInputType<{
|
|
7152
7010
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -7173,15 +7031,15 @@ declare const UserMessage: z.ZodUnion<[z.ZodObject<{
|
|
|
7173
7031
|
name: string;
|
|
7174
7032
|
arguments: string;
|
|
7175
7033
|
};
|
|
7176
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
7177
7034
|
type: "function";
|
|
7035
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
7178
7036
|
}, {
|
|
7179
7037
|
function: {
|
|
7180
7038
|
name: string;
|
|
7181
7039
|
arguments: string;
|
|
7182
7040
|
};
|
|
7183
|
-
id: string;
|
|
7184
7041
|
type: "function";
|
|
7042
|
+
id: string;
|
|
7185
7043
|
}>, "many">>;
|
|
7186
7044
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7187
7045
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -7550,15 +7408,15 @@ declare const AssistantMessage: z.ZodObject<{
|
|
|
7550
7408
|
name: string;
|
|
7551
7409
|
arguments: string;
|
|
7552
7410
|
};
|
|
7553
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
7554
7411
|
type: "function";
|
|
7412
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
7555
7413
|
}, {
|
|
7556
7414
|
function: {
|
|
7557
7415
|
name: string;
|
|
7558
7416
|
arguments: string;
|
|
7559
7417
|
};
|
|
7560
|
-
id: string;
|
|
7561
7418
|
type: "function";
|
|
7419
|
+
id: string;
|
|
7562
7420
|
}>, "many">>;
|
|
7563
7421
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7564
7422
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -7920,15 +7778,15 @@ declare const AssistantMessage: z.ZodObject<{
|
|
|
7920
7778
|
name: string;
|
|
7921
7779
|
arguments: string;
|
|
7922
7780
|
};
|
|
7923
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
7924
7781
|
type: "function";
|
|
7782
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
7925
7783
|
}, {
|
|
7926
7784
|
function: {
|
|
7927
7785
|
name: string;
|
|
7928
7786
|
arguments: string;
|
|
7929
7787
|
};
|
|
7930
|
-
id: string;
|
|
7931
7788
|
type: "function";
|
|
7789
|
+
id: string;
|
|
7932
7790
|
}>, "many">>;
|
|
7933
7791
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7934
7792
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -8290,15 +8148,15 @@ declare const AssistantMessage: z.ZodObject<{
|
|
|
8290
8148
|
name: string;
|
|
8291
8149
|
arguments: string;
|
|
8292
8150
|
};
|
|
8293
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
8294
8151
|
type: "function";
|
|
8152
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
8295
8153
|
}, {
|
|
8296
8154
|
function: {
|
|
8297
8155
|
name: string;
|
|
8298
8156
|
arguments: string;
|
|
8299
8157
|
};
|
|
8300
|
-
id: string;
|
|
8301
8158
|
type: "function";
|
|
8159
|
+
id: string;
|
|
8302
8160
|
}>, "many">>;
|
|
8303
8161
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8304
8162
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -8640,10 +8498,10 @@ declare const AssistantMessage: z.ZodObject<{
|
|
|
8640
8498
|
role: z.ZodLiteral<"assistant">;
|
|
8641
8499
|
type: z.ZodEnum<["thought", "final_answer", "tool_code", "tool_calls", "task_completion"]>;
|
|
8642
8500
|
}, "strip", z.ZodTypeAny, {
|
|
8643
|
-
id: string;
|
|
8644
8501
|
type: "thought" | "tool_calls" | "final_answer" | "tool_code" | "task_completion";
|
|
8645
|
-
|
|
8502
|
+
id: string;
|
|
8646
8503
|
timestamp: number;
|
|
8504
|
+
content: string;
|
|
8647
8505
|
role: "assistant";
|
|
8648
8506
|
metadata?: z.objectOutputType<{
|
|
8649
8507
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -8670,15 +8528,15 @@ declare const AssistantMessage: z.ZodObject<{
|
|
|
8670
8528
|
name: string;
|
|
8671
8529
|
arguments: string;
|
|
8672
8530
|
};
|
|
8673
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
8674
8531
|
type: "function";
|
|
8532
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
8675
8533
|
}, {
|
|
8676
8534
|
function: {
|
|
8677
8535
|
name: string;
|
|
8678
8536
|
arguments: string;
|
|
8679
8537
|
};
|
|
8680
|
-
id: string;
|
|
8681
8538
|
type: "function";
|
|
8539
|
+
id: string;
|
|
8682
8540
|
}>, "many">>;
|
|
8683
8541
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8684
8542
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -9017,10 +8875,10 @@ declare const AssistantMessage: z.ZodObject<{
|
|
|
9017
8875
|
fencePlacement: z.ZodOptional<z.ZodString>;
|
|
9018
8876
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
9019
8877
|
}, {
|
|
9020
|
-
id: string;
|
|
9021
8878
|
type: "thought" | "tool_calls" | "final_answer" | "tool_code" | "task_completion";
|
|
9022
|
-
|
|
8879
|
+
id: string;
|
|
9023
8880
|
timestamp: number;
|
|
8881
|
+
content: string;
|
|
9024
8882
|
role: "assistant";
|
|
9025
8883
|
metadata?: z.objectInputType<{
|
|
9026
8884
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -9047,15 +8905,15 @@ declare const AssistantMessage: z.ZodObject<{
|
|
|
9047
8905
|
name: string;
|
|
9048
8906
|
arguments: string;
|
|
9049
8907
|
};
|
|
9050
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
9051
8908
|
type: "function";
|
|
8909
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
9052
8910
|
}, {
|
|
9053
8911
|
function: {
|
|
9054
8912
|
name: string;
|
|
9055
8913
|
arguments: string;
|
|
9056
8914
|
};
|
|
9057
|
-
id: string;
|
|
9058
8915
|
type: "function";
|
|
8916
|
+
id: string;
|
|
9059
8917
|
}>, "many">>;
|
|
9060
8918
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9061
8919
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -9424,15 +9282,15 @@ declare const ToolMessage: z.ZodObject<{
|
|
|
9424
9282
|
name: string;
|
|
9425
9283
|
arguments: string;
|
|
9426
9284
|
};
|
|
9427
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
9428
9285
|
type: "function";
|
|
9286
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
9429
9287
|
}, {
|
|
9430
9288
|
function: {
|
|
9431
9289
|
name: string;
|
|
9432
9290
|
arguments: string;
|
|
9433
9291
|
};
|
|
9434
|
-
id: string;
|
|
9435
9292
|
type: "function";
|
|
9293
|
+
id: string;
|
|
9436
9294
|
}>, "many">>;
|
|
9437
9295
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9438
9296
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -9794,15 +9652,15 @@ declare const ToolMessage: z.ZodObject<{
|
|
|
9794
9652
|
name: string;
|
|
9795
9653
|
arguments: string;
|
|
9796
9654
|
};
|
|
9797
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
9798
9655
|
type: "function";
|
|
9656
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
9799
9657
|
}, {
|
|
9800
9658
|
function: {
|
|
9801
9659
|
name: string;
|
|
9802
9660
|
arguments: string;
|
|
9803
9661
|
};
|
|
9804
|
-
id: string;
|
|
9805
9662
|
type: "function";
|
|
9663
|
+
id: string;
|
|
9806
9664
|
}>, "many">>;
|
|
9807
9665
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9808
9666
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -10164,15 +10022,15 @@ declare const ToolMessage: z.ZodObject<{
|
|
|
10164
10022
|
name: string;
|
|
10165
10023
|
arguments: string;
|
|
10166
10024
|
};
|
|
10167
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
10168
10025
|
type: "function";
|
|
10026
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
10169
10027
|
}, {
|
|
10170
10028
|
function: {
|
|
10171
10029
|
name: string;
|
|
10172
10030
|
arguments: string;
|
|
10173
10031
|
};
|
|
10174
|
-
id: string;
|
|
10175
10032
|
type: "function";
|
|
10033
|
+
id: string;
|
|
10176
10034
|
}>, "many">>;
|
|
10177
10035
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10178
10036
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -10548,10 +10406,10 @@ declare const ToolMessage: z.ZodObject<{
|
|
|
10548
10406
|
label?: string | undefined;
|
|
10549
10407
|
}>, "many">>;
|
|
10550
10408
|
}, "strip", z.ZodTypeAny, {
|
|
10551
|
-
id: string;
|
|
10552
10409
|
type: "tool_output";
|
|
10553
|
-
|
|
10410
|
+
id: string;
|
|
10554
10411
|
timestamp: number;
|
|
10412
|
+
content: string;
|
|
10555
10413
|
role: "tool";
|
|
10556
10414
|
metadata?: z.objectOutputType<{
|
|
10557
10415
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -10578,15 +10436,15 @@ declare const ToolMessage: z.ZodObject<{
|
|
|
10578
10436
|
name: string;
|
|
10579
10437
|
arguments: string;
|
|
10580
10438
|
};
|
|
10581
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
10582
10439
|
type: "function";
|
|
10440
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
10583
10441
|
}, {
|
|
10584
10442
|
function: {
|
|
10585
10443
|
name: string;
|
|
10586
10444
|
arguments: string;
|
|
10587
10445
|
};
|
|
10588
|
-
id: string;
|
|
10589
10446
|
type: "function";
|
|
10447
|
+
id: string;
|
|
10590
10448
|
}>, "many">>;
|
|
10591
10449
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10592
10450
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -10937,10 +10795,10 @@ declare const ToolMessage: z.ZodObject<{
|
|
|
10937
10795
|
label?: string | undefined;
|
|
10938
10796
|
}[] | undefined;
|
|
10939
10797
|
}, {
|
|
10940
|
-
id: string;
|
|
10941
10798
|
type: "tool_output";
|
|
10942
|
-
|
|
10799
|
+
id: string;
|
|
10943
10800
|
timestamp: number;
|
|
10801
|
+
content: string;
|
|
10944
10802
|
role: "tool";
|
|
10945
10803
|
metadata?: z.objectInputType<{
|
|
10946
10804
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -10967,15 +10825,15 @@ declare const ToolMessage: z.ZodObject<{
|
|
|
10967
10825
|
name: string;
|
|
10968
10826
|
arguments: string;
|
|
10969
10827
|
};
|
|
10970
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
10971
10828
|
type: "function";
|
|
10829
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
10972
10830
|
}, {
|
|
10973
10831
|
function: {
|
|
10974
10832
|
name: string;
|
|
10975
10833
|
arguments: string;
|
|
10976
10834
|
};
|
|
10977
|
-
id: string;
|
|
10978
10835
|
type: "function";
|
|
10836
|
+
id: string;
|
|
10979
10837
|
}>, "many">>;
|
|
10980
10838
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10981
10839
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -11356,15 +11214,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
11356
11214
|
name: string;
|
|
11357
11215
|
arguments: string;
|
|
11358
11216
|
};
|
|
11359
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
11360
11217
|
type: "function";
|
|
11218
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
11361
11219
|
}, {
|
|
11362
11220
|
function: {
|
|
11363
11221
|
name: string;
|
|
11364
11222
|
arguments: string;
|
|
11365
11223
|
};
|
|
11366
|
-
id: string;
|
|
11367
11224
|
type: "function";
|
|
11225
|
+
id: string;
|
|
11368
11226
|
}>, "many">>;
|
|
11369
11227
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11370
11228
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -11726,15 +11584,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
11726
11584
|
name: string;
|
|
11727
11585
|
arguments: string;
|
|
11728
11586
|
};
|
|
11729
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
11730
11587
|
type: "function";
|
|
11588
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
11731
11589
|
}, {
|
|
11732
11590
|
function: {
|
|
11733
11591
|
name: string;
|
|
11734
11592
|
arguments: string;
|
|
11735
11593
|
};
|
|
11736
|
-
id: string;
|
|
11737
11594
|
type: "function";
|
|
11595
|
+
id: string;
|
|
11738
11596
|
}>, "many">>;
|
|
11739
11597
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11740
11598
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -12096,15 +11954,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
12096
11954
|
name: string;
|
|
12097
11955
|
arguments: string;
|
|
12098
11956
|
};
|
|
12099
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
12100
11957
|
type: "function";
|
|
11958
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
12101
11959
|
}, {
|
|
12102
11960
|
function: {
|
|
12103
11961
|
name: string;
|
|
12104
11962
|
arguments: string;
|
|
12105
11963
|
};
|
|
12106
|
-
id: string;
|
|
12107
11964
|
type: "function";
|
|
11965
|
+
id: string;
|
|
12108
11966
|
}>, "many">>;
|
|
12109
11967
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12110
11968
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -12446,10 +12304,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
12446
12304
|
role: z.ZodLiteral<"system">;
|
|
12447
12305
|
type: z.ZodEnum<["system_prompt", "history_summary", "context_injection"]>;
|
|
12448
12306
|
}, "strip", z.ZodTypeAny, {
|
|
12307
|
+
type: "history_summary" | "system_prompt" | "context_injection";
|
|
12449
12308
|
id: string;
|
|
12450
|
-
type: "system_prompt" | "history_summary" | "context_injection";
|
|
12451
|
-
content: string;
|
|
12452
12309
|
timestamp: number;
|
|
12310
|
+
content: string;
|
|
12453
12311
|
role: "system";
|
|
12454
12312
|
metadata?: z.objectOutputType<{
|
|
12455
12313
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -12476,15 +12334,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
12476
12334
|
name: string;
|
|
12477
12335
|
arguments: string;
|
|
12478
12336
|
};
|
|
12479
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
12480
12337
|
type: "function";
|
|
12338
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
12481
12339
|
}, {
|
|
12482
12340
|
function: {
|
|
12483
12341
|
name: string;
|
|
12484
12342
|
arguments: string;
|
|
12485
12343
|
};
|
|
12486
|
-
id: string;
|
|
12487
12344
|
type: "function";
|
|
12345
|
+
id: string;
|
|
12488
12346
|
}>, "many">>;
|
|
12489
12347
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12490
12348
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -12823,10 +12681,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
12823
12681
|
fencePlacement: z.ZodOptional<z.ZodString>;
|
|
12824
12682
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
12825
12683
|
}, {
|
|
12684
|
+
type: "history_summary" | "system_prompt" | "context_injection";
|
|
12826
12685
|
id: string;
|
|
12827
|
-
type: "system_prompt" | "history_summary" | "context_injection";
|
|
12828
|
-
content: string;
|
|
12829
12686
|
timestamp: number;
|
|
12687
|
+
content: string;
|
|
12830
12688
|
role: "system";
|
|
12831
12689
|
metadata?: z.objectInputType<{
|
|
12832
12690
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -12853,15 +12711,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
12853
12711
|
name: string;
|
|
12854
12712
|
arguments: string;
|
|
12855
12713
|
};
|
|
12856
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
12857
12714
|
type: "function";
|
|
12715
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
12858
12716
|
}, {
|
|
12859
12717
|
function: {
|
|
12860
12718
|
name: string;
|
|
12861
12719
|
arguments: string;
|
|
12862
12720
|
};
|
|
12863
|
-
id: string;
|
|
12864
12721
|
type: "function";
|
|
12722
|
+
id: string;
|
|
12865
12723
|
}>, "many">>;
|
|
12866
12724
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12867
12725
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -13228,15 +13086,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
13228
13086
|
name: string;
|
|
13229
13087
|
arguments: string;
|
|
13230
13088
|
};
|
|
13231
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
13232
13089
|
type: "function";
|
|
13090
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
13233
13091
|
}, {
|
|
13234
13092
|
function: {
|
|
13235
13093
|
name: string;
|
|
13236
13094
|
arguments: string;
|
|
13237
13095
|
};
|
|
13238
|
-
id: string;
|
|
13239
13096
|
type: "function";
|
|
13097
|
+
id: string;
|
|
13240
13098
|
}>, "many">>;
|
|
13241
13099
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13242
13100
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -13598,15 +13456,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
13598
13456
|
name: string;
|
|
13599
13457
|
arguments: string;
|
|
13600
13458
|
};
|
|
13601
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
13602
13459
|
type: "function";
|
|
13460
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
13603
13461
|
}, {
|
|
13604
13462
|
function: {
|
|
13605
13463
|
name: string;
|
|
13606
13464
|
arguments: string;
|
|
13607
13465
|
};
|
|
13608
|
-
id: string;
|
|
13609
13466
|
type: "function";
|
|
13467
|
+
id: string;
|
|
13610
13468
|
}>, "many">>;
|
|
13611
13469
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13612
13470
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -13968,15 +13826,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
13968
13826
|
name: string;
|
|
13969
13827
|
arguments: string;
|
|
13970
13828
|
};
|
|
13971
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
13972
13829
|
type: "function";
|
|
13830
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
13973
13831
|
}, {
|
|
13974
13832
|
function: {
|
|
13975
13833
|
name: string;
|
|
13976
13834
|
arguments: string;
|
|
13977
13835
|
};
|
|
13978
|
-
id: string;
|
|
13979
13836
|
type: "function";
|
|
13837
|
+
id: string;
|
|
13980
13838
|
}>, "many">>;
|
|
13981
13839
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13982
13840
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -14352,10 +14210,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
14352
14210
|
label?: string | undefined;
|
|
14353
14211
|
}>, "many">>;
|
|
14354
14212
|
}, "strip", z.ZodTypeAny, {
|
|
14355
|
-
id: string;
|
|
14356
14213
|
type: "user_input";
|
|
14357
|
-
|
|
14214
|
+
id: string;
|
|
14358
14215
|
timestamp: number;
|
|
14216
|
+
content: string;
|
|
14359
14217
|
role: "user";
|
|
14360
14218
|
metadata?: z.objectOutputType<{
|
|
14361
14219
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -14382,15 +14240,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
14382
14240
|
name: string;
|
|
14383
14241
|
arguments: string;
|
|
14384
14242
|
};
|
|
14385
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
14386
14243
|
type: "function";
|
|
14244
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
14387
14245
|
}, {
|
|
14388
14246
|
function: {
|
|
14389
14247
|
name: string;
|
|
14390
14248
|
arguments: string;
|
|
14391
14249
|
};
|
|
14392
|
-
id: string;
|
|
14393
14250
|
type: "function";
|
|
14251
|
+
id: string;
|
|
14394
14252
|
}>, "many">>;
|
|
14395
14253
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14396
14254
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -14741,10 +14599,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
14741
14599
|
label?: string | undefined;
|
|
14742
14600
|
}[] | undefined;
|
|
14743
14601
|
}, {
|
|
14744
|
-
id: string;
|
|
14745
14602
|
type: "user_input";
|
|
14746
|
-
|
|
14603
|
+
id: string;
|
|
14747
14604
|
timestamp: number;
|
|
14605
|
+
content: string;
|
|
14748
14606
|
role: "user";
|
|
14749
14607
|
metadata?: z.objectInputType<{
|
|
14750
14608
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -14771,15 +14629,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
14771
14629
|
name: string;
|
|
14772
14630
|
arguments: string;
|
|
14773
14631
|
};
|
|
14774
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
14775
14632
|
type: "function";
|
|
14633
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
14776
14634
|
}, {
|
|
14777
14635
|
function: {
|
|
14778
14636
|
name: string;
|
|
14779
14637
|
arguments: string;
|
|
14780
14638
|
};
|
|
14781
|
-
id: string;
|
|
14782
14639
|
type: "function";
|
|
14640
|
+
id: string;
|
|
14783
14641
|
}>, "many">>;
|
|
14784
14642
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14785
14643
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -15158,15 +15016,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
15158
15016
|
name: string;
|
|
15159
15017
|
arguments: string;
|
|
15160
15018
|
};
|
|
15161
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
15162
15019
|
type: "function";
|
|
15020
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
15163
15021
|
}, {
|
|
15164
15022
|
function: {
|
|
15165
15023
|
name: string;
|
|
15166
15024
|
arguments: string;
|
|
15167
15025
|
};
|
|
15168
|
-
id: string;
|
|
15169
15026
|
type: "function";
|
|
15027
|
+
id: string;
|
|
15170
15028
|
}>, "many">>;
|
|
15171
15029
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15172
15030
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -15528,15 +15386,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
15528
15386
|
name: string;
|
|
15529
15387
|
arguments: string;
|
|
15530
15388
|
};
|
|
15531
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
15532
15389
|
type: "function";
|
|
15390
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
15533
15391
|
}, {
|
|
15534
15392
|
function: {
|
|
15535
15393
|
name: string;
|
|
15536
15394
|
arguments: string;
|
|
15537
15395
|
};
|
|
15538
|
-
id: string;
|
|
15539
15396
|
type: "function";
|
|
15397
|
+
id: string;
|
|
15540
15398
|
}>, "many">>;
|
|
15541
15399
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15542
15400
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -15898,15 +15756,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
15898
15756
|
name: string;
|
|
15899
15757
|
arguments: string;
|
|
15900
15758
|
};
|
|
15901
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
15902
15759
|
type: "function";
|
|
15760
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
15903
15761
|
}, {
|
|
15904
15762
|
function: {
|
|
15905
15763
|
name: string;
|
|
15906
15764
|
arguments: string;
|
|
15907
15765
|
};
|
|
15908
|
-
id: string;
|
|
15909
15766
|
type: "function";
|
|
15767
|
+
id: string;
|
|
15910
15768
|
}>, "many">>;
|
|
15911
15769
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15912
15770
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -16248,10 +16106,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
16248
16106
|
role: z.ZodLiteral<"user">;
|
|
16249
16107
|
type: z.ZodEnum<["context_injection", "context_before", "context_after", "document_fragment", "task_request"]>;
|
|
16250
16108
|
}, "strip", z.ZodTypeAny, {
|
|
16251
|
-
id: string;
|
|
16252
16109
|
type: "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request";
|
|
16253
|
-
|
|
16110
|
+
id: string;
|
|
16254
16111
|
timestamp: number;
|
|
16112
|
+
content: string;
|
|
16255
16113
|
role: "user";
|
|
16256
16114
|
metadata?: z.objectOutputType<{
|
|
16257
16115
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -16278,15 +16136,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
16278
16136
|
name: string;
|
|
16279
16137
|
arguments: string;
|
|
16280
16138
|
};
|
|
16281
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
16282
16139
|
type: "function";
|
|
16140
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
16283
16141
|
}, {
|
|
16284
16142
|
function: {
|
|
16285
16143
|
name: string;
|
|
16286
16144
|
arguments: string;
|
|
16287
16145
|
};
|
|
16288
|
-
id: string;
|
|
16289
16146
|
type: "function";
|
|
16147
|
+
id: string;
|
|
16290
16148
|
}>, "many">>;
|
|
16291
16149
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16292
16150
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -16625,10 +16483,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
16625
16483
|
fencePlacement: z.ZodOptional<z.ZodString>;
|
|
16626
16484
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
16627
16485
|
}, {
|
|
16628
|
-
id: string;
|
|
16629
16486
|
type: "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request";
|
|
16630
|
-
|
|
16487
|
+
id: string;
|
|
16631
16488
|
timestamp: number;
|
|
16489
|
+
content: string;
|
|
16632
16490
|
role: "user";
|
|
16633
16491
|
metadata?: z.objectInputType<{
|
|
16634
16492
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -16655,15 +16513,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
16655
16513
|
name: string;
|
|
16656
16514
|
arguments: string;
|
|
16657
16515
|
};
|
|
16658
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
16659
16516
|
type: "function";
|
|
16517
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
16660
16518
|
}, {
|
|
16661
16519
|
function: {
|
|
16662
16520
|
name: string;
|
|
16663
16521
|
arguments: string;
|
|
16664
16522
|
};
|
|
16665
|
-
id: string;
|
|
16666
16523
|
type: "function";
|
|
16524
|
+
id: string;
|
|
16667
16525
|
}>, "many">>;
|
|
16668
16526
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16669
16527
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -17030,15 +16888,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
17030
16888
|
name: string;
|
|
17031
16889
|
arguments: string;
|
|
17032
16890
|
};
|
|
17033
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
17034
16891
|
type: "function";
|
|
16892
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
17035
16893
|
}, {
|
|
17036
16894
|
function: {
|
|
17037
16895
|
name: string;
|
|
17038
16896
|
arguments: string;
|
|
17039
16897
|
};
|
|
17040
|
-
id: string;
|
|
17041
16898
|
type: "function";
|
|
16899
|
+
id: string;
|
|
17042
16900
|
}>, "many">>;
|
|
17043
16901
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17044
16902
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -17400,15 +17258,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
17400
17258
|
name: string;
|
|
17401
17259
|
arguments: string;
|
|
17402
17260
|
};
|
|
17403
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
17404
17261
|
type: "function";
|
|
17262
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
17405
17263
|
}, {
|
|
17406
17264
|
function: {
|
|
17407
17265
|
name: string;
|
|
17408
17266
|
arguments: string;
|
|
17409
17267
|
};
|
|
17410
|
-
id: string;
|
|
17411
17268
|
type: "function";
|
|
17269
|
+
id: string;
|
|
17412
17270
|
}>, "many">>;
|
|
17413
17271
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17414
17272
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -17770,15 +17628,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
17770
17628
|
name: string;
|
|
17771
17629
|
arguments: string;
|
|
17772
17630
|
};
|
|
17773
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
17774
17631
|
type: "function";
|
|
17632
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
17775
17633
|
}, {
|
|
17776
17634
|
function: {
|
|
17777
17635
|
name: string;
|
|
17778
17636
|
arguments: string;
|
|
17779
17637
|
};
|
|
17780
|
-
id: string;
|
|
17781
17638
|
type: "function";
|
|
17639
|
+
id: string;
|
|
17782
17640
|
}>, "many">>;
|
|
17783
17641
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17784
17642
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -18120,10 +17978,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
18120
17978
|
role: z.ZodLiteral<"assistant">;
|
|
18121
17979
|
type: z.ZodEnum<["thought", "final_answer", "tool_code", "tool_calls", "task_completion"]>;
|
|
18122
17980
|
}, "strip", z.ZodTypeAny, {
|
|
18123
|
-
id: string;
|
|
18124
17981
|
type: "thought" | "tool_calls" | "final_answer" | "tool_code" | "task_completion";
|
|
18125
|
-
|
|
17982
|
+
id: string;
|
|
18126
17983
|
timestamp: number;
|
|
17984
|
+
content: string;
|
|
18127
17985
|
role: "assistant";
|
|
18128
17986
|
metadata?: z.objectOutputType<{
|
|
18129
17987
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -18150,15 +18008,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
18150
18008
|
name: string;
|
|
18151
18009
|
arguments: string;
|
|
18152
18010
|
};
|
|
18153
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
18154
18011
|
type: "function";
|
|
18012
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
18155
18013
|
}, {
|
|
18156
18014
|
function: {
|
|
18157
18015
|
name: string;
|
|
18158
18016
|
arguments: string;
|
|
18159
18017
|
};
|
|
18160
|
-
id: string;
|
|
18161
18018
|
type: "function";
|
|
18019
|
+
id: string;
|
|
18162
18020
|
}>, "many">>;
|
|
18163
18021
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18164
18022
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -18497,10 +18355,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
18497
18355
|
fencePlacement: z.ZodOptional<z.ZodString>;
|
|
18498
18356
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
18499
18357
|
}, {
|
|
18500
|
-
id: string;
|
|
18501
18358
|
type: "thought" | "tool_calls" | "final_answer" | "tool_code" | "task_completion";
|
|
18502
|
-
|
|
18359
|
+
id: string;
|
|
18503
18360
|
timestamp: number;
|
|
18361
|
+
content: string;
|
|
18504
18362
|
role: "assistant";
|
|
18505
18363
|
metadata?: z.objectInputType<{
|
|
18506
18364
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -18527,15 +18385,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
18527
18385
|
name: string;
|
|
18528
18386
|
arguments: string;
|
|
18529
18387
|
};
|
|
18530
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
18531
18388
|
type: "function";
|
|
18389
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
18532
18390
|
}, {
|
|
18533
18391
|
function: {
|
|
18534
18392
|
name: string;
|
|
18535
18393
|
arguments: string;
|
|
18536
18394
|
};
|
|
18537
|
-
id: string;
|
|
18538
18395
|
type: "function";
|
|
18396
|
+
id: string;
|
|
18539
18397
|
}>, "many">>;
|
|
18540
18398
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18541
18399
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -18902,15 +18760,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
18902
18760
|
name: string;
|
|
18903
18761
|
arguments: string;
|
|
18904
18762
|
};
|
|
18905
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
18906
18763
|
type: "function";
|
|
18764
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
18907
18765
|
}, {
|
|
18908
18766
|
function: {
|
|
18909
18767
|
name: string;
|
|
18910
18768
|
arguments: string;
|
|
18911
18769
|
};
|
|
18912
|
-
id: string;
|
|
18913
18770
|
type: "function";
|
|
18771
|
+
id: string;
|
|
18914
18772
|
}>, "many">>;
|
|
18915
18773
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18916
18774
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -19272,15 +19130,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
19272
19130
|
name: string;
|
|
19273
19131
|
arguments: string;
|
|
19274
19132
|
};
|
|
19275
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
19276
19133
|
type: "function";
|
|
19134
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
19277
19135
|
}, {
|
|
19278
19136
|
function: {
|
|
19279
19137
|
name: string;
|
|
19280
19138
|
arguments: string;
|
|
19281
19139
|
};
|
|
19282
|
-
id: string;
|
|
19283
19140
|
type: "function";
|
|
19141
|
+
id: string;
|
|
19284
19142
|
}>, "many">>;
|
|
19285
19143
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
19286
19144
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -19642,15 +19500,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
19642
19500
|
name: string;
|
|
19643
19501
|
arguments: string;
|
|
19644
19502
|
};
|
|
19645
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
19646
19503
|
type: "function";
|
|
19504
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
19647
19505
|
}, {
|
|
19648
19506
|
function: {
|
|
19649
19507
|
name: string;
|
|
19650
19508
|
arguments: string;
|
|
19651
19509
|
};
|
|
19652
|
-
id: string;
|
|
19653
19510
|
type: "function";
|
|
19511
|
+
id: string;
|
|
19654
19512
|
}>, "many">>;
|
|
19655
19513
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
19656
19514
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -20026,10 +19884,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
20026
19884
|
label?: string | undefined;
|
|
20027
19885
|
}>, "many">>;
|
|
20028
19886
|
}, "strip", z.ZodTypeAny, {
|
|
20029
|
-
id: string;
|
|
20030
19887
|
type: "tool_output";
|
|
20031
|
-
|
|
19888
|
+
id: string;
|
|
20032
19889
|
timestamp: number;
|
|
19890
|
+
content: string;
|
|
20033
19891
|
role: "tool";
|
|
20034
19892
|
metadata?: z.objectOutputType<{
|
|
20035
19893
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -20056,15 +19914,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
20056
19914
|
name: string;
|
|
20057
19915
|
arguments: string;
|
|
20058
19916
|
};
|
|
20059
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
20060
19917
|
type: "function";
|
|
19918
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
20061
19919
|
}, {
|
|
20062
19920
|
function: {
|
|
20063
19921
|
name: string;
|
|
20064
19922
|
arguments: string;
|
|
20065
19923
|
};
|
|
20066
|
-
id: string;
|
|
20067
19924
|
type: "function";
|
|
19925
|
+
id: string;
|
|
20068
19926
|
}>, "many">>;
|
|
20069
19927
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20070
19928
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -20415,10 +20273,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
20415
20273
|
label?: string | undefined;
|
|
20416
20274
|
}[] | undefined;
|
|
20417
20275
|
}, {
|
|
20418
|
-
id: string;
|
|
20419
20276
|
type: "tool_output";
|
|
20420
|
-
|
|
20277
|
+
id: string;
|
|
20421
20278
|
timestamp: number;
|
|
20279
|
+
content: string;
|
|
20422
20280
|
role: "tool";
|
|
20423
20281
|
metadata?: z.objectInputType<{
|
|
20424
20282
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -20445,15 +20303,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
20445
20303
|
name: string;
|
|
20446
20304
|
arguments: string;
|
|
20447
20305
|
};
|
|
20448
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
20449
20306
|
type: "function";
|
|
20307
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
20450
20308
|
}, {
|
|
20451
20309
|
function: {
|
|
20452
20310
|
name: string;
|
|
20453
20311
|
arguments: string;
|
|
20454
20312
|
};
|
|
20455
|
-
id: string;
|
|
20456
20313
|
type: "function";
|
|
20314
|
+
id: string;
|
|
20457
20315
|
}>, "many">>;
|
|
20458
20316
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20459
20317
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -20804,10 +20662,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
20804
20662
|
label?: string | undefined;
|
|
20805
20663
|
}[] | undefined;
|
|
20806
20664
|
}>]>>, {
|
|
20665
|
+
type: "history_summary" | "system_prompt" | "context_injection";
|
|
20807
20666
|
id: string;
|
|
20808
|
-
type: "system_prompt" | "history_summary" | "context_injection";
|
|
20809
|
-
content: string;
|
|
20810
20667
|
timestamp: number;
|
|
20668
|
+
content: string;
|
|
20811
20669
|
role: "system";
|
|
20812
20670
|
metadata?: z.objectOutputType<{
|
|
20813
20671
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -20834,15 +20692,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
20834
20692
|
name: string;
|
|
20835
20693
|
arguments: string;
|
|
20836
20694
|
};
|
|
20837
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
20838
20695
|
type: "function";
|
|
20696
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
20839
20697
|
}, {
|
|
20840
20698
|
function: {
|
|
20841
20699
|
name: string;
|
|
20842
20700
|
arguments: string;
|
|
20843
20701
|
};
|
|
20844
|
-
id: string;
|
|
20845
20702
|
type: "function";
|
|
20703
|
+
id: string;
|
|
20846
20704
|
}>, "many">>;
|
|
20847
20705
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20848
20706
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -21181,10 +21039,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
21181
21039
|
fencePlacement: z.ZodOptional<z.ZodString>;
|
|
21182
21040
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
21183
21041
|
} | {
|
|
21184
|
-
id: string;
|
|
21185
21042
|
type: "user_input";
|
|
21186
|
-
|
|
21043
|
+
id: string;
|
|
21187
21044
|
timestamp: number;
|
|
21045
|
+
content: string;
|
|
21188
21046
|
role: "user";
|
|
21189
21047
|
metadata?: z.objectOutputType<{
|
|
21190
21048
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -21211,15 +21069,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
21211
21069
|
name: string;
|
|
21212
21070
|
arguments: string;
|
|
21213
21071
|
};
|
|
21214
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
21215
21072
|
type: "function";
|
|
21073
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
21216
21074
|
}, {
|
|
21217
21075
|
function: {
|
|
21218
21076
|
name: string;
|
|
21219
21077
|
arguments: string;
|
|
21220
21078
|
};
|
|
21221
|
-
id: string;
|
|
21222
21079
|
type: "function";
|
|
21080
|
+
id: string;
|
|
21223
21081
|
}>, "many">>;
|
|
21224
21082
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21225
21083
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -21570,10 +21428,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
21570
21428
|
label?: string | undefined;
|
|
21571
21429
|
}[] | undefined;
|
|
21572
21430
|
} | {
|
|
21573
|
-
id: string;
|
|
21574
21431
|
type: "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request";
|
|
21575
|
-
|
|
21432
|
+
id: string;
|
|
21576
21433
|
timestamp: number;
|
|
21434
|
+
content: string;
|
|
21577
21435
|
role: "user";
|
|
21578
21436
|
metadata?: z.objectOutputType<{
|
|
21579
21437
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -21600,15 +21458,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
21600
21458
|
name: string;
|
|
21601
21459
|
arguments: string;
|
|
21602
21460
|
};
|
|
21603
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
21604
21461
|
type: "function";
|
|
21462
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
21605
21463
|
}, {
|
|
21606
21464
|
function: {
|
|
21607
21465
|
name: string;
|
|
21608
21466
|
arguments: string;
|
|
21609
21467
|
};
|
|
21610
|
-
id: string;
|
|
21611
21468
|
type: "function";
|
|
21469
|
+
id: string;
|
|
21612
21470
|
}>, "many">>;
|
|
21613
21471
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21614
21472
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -21947,10 +21805,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
21947
21805
|
fencePlacement: z.ZodOptional<z.ZodString>;
|
|
21948
21806
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
21949
21807
|
} | {
|
|
21950
|
-
id: string;
|
|
21951
21808
|
type: "thought" | "tool_calls" | "final_answer" | "tool_code" | "task_completion";
|
|
21952
|
-
|
|
21809
|
+
id: string;
|
|
21953
21810
|
timestamp: number;
|
|
21811
|
+
content: string;
|
|
21954
21812
|
role: "assistant";
|
|
21955
21813
|
metadata?: z.objectOutputType<{
|
|
21956
21814
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -21977,15 +21835,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
21977
21835
|
name: string;
|
|
21978
21836
|
arguments: string;
|
|
21979
21837
|
};
|
|
21980
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
21981
21838
|
type: "function";
|
|
21839
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
21982
21840
|
}, {
|
|
21983
21841
|
function: {
|
|
21984
21842
|
name: string;
|
|
21985
21843
|
arguments: string;
|
|
21986
21844
|
};
|
|
21987
|
-
id: string;
|
|
21988
21845
|
type: "function";
|
|
21846
|
+
id: string;
|
|
21989
21847
|
}>, "many">>;
|
|
21990
21848
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21991
21849
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -22324,10 +22182,10 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
22324
22182
|
fencePlacement: z.ZodOptional<z.ZodString>;
|
|
22325
22183
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
22326
22184
|
} | {
|
|
22327
|
-
id: string;
|
|
22328
22185
|
type: "tool_output";
|
|
22329
|
-
|
|
22186
|
+
id: string;
|
|
22330
22187
|
timestamp: number;
|
|
22188
|
+
content: string;
|
|
22331
22189
|
role: "tool";
|
|
22332
22190
|
metadata?: z.objectOutputType<{
|
|
22333
22191
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -22354,15 +22212,15 @@ declare const AiMessage: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown, u
|
|
|
22354
22212
|
name: string;
|
|
22355
22213
|
arguments: string;
|
|
22356
22214
|
};
|
|
22357
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
22358
22215
|
type: "function";
|
|
22216
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
22359
22217
|
}, {
|
|
22360
22218
|
function: {
|
|
22361
22219
|
name: string;
|
|
22362
22220
|
arguments: string;
|
|
22363
22221
|
};
|
|
22364
|
-
id: string;
|
|
22365
22222
|
type: "function";
|
|
22223
|
+
id: string;
|
|
22366
22224
|
}>, "many">>;
|
|
22367
22225
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22368
22226
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -22745,15 +22603,15 @@ declare const UserInputMessage: z.ZodObject<{
|
|
|
22745
22603
|
name: string;
|
|
22746
22604
|
arguments: string;
|
|
22747
22605
|
};
|
|
22748
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
22749
22606
|
type: "function";
|
|
22607
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
22750
22608
|
}, {
|
|
22751
22609
|
function: {
|
|
22752
22610
|
name: string;
|
|
22753
22611
|
arguments: string;
|
|
22754
22612
|
};
|
|
22755
|
-
id: string;
|
|
22756
22613
|
type: "function";
|
|
22614
|
+
id: string;
|
|
22757
22615
|
}>, "many">>;
|
|
22758
22616
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22759
22617
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -23115,15 +22973,15 @@ declare const UserInputMessage: z.ZodObject<{
|
|
|
23115
22973
|
name: string;
|
|
23116
22974
|
arguments: string;
|
|
23117
22975
|
};
|
|
23118
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
23119
22976
|
type: "function";
|
|
22977
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
23120
22978
|
}, {
|
|
23121
22979
|
function: {
|
|
23122
22980
|
name: string;
|
|
23123
22981
|
arguments: string;
|
|
23124
22982
|
};
|
|
23125
|
-
id: string;
|
|
23126
22983
|
type: "function";
|
|
22984
|
+
id: string;
|
|
23127
22985
|
}>, "many">>;
|
|
23128
22986
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23129
22987
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -23485,15 +23343,15 @@ declare const UserInputMessage: z.ZodObject<{
|
|
|
23485
23343
|
name: string;
|
|
23486
23344
|
arguments: string;
|
|
23487
23345
|
};
|
|
23488
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
23489
23346
|
type: "function";
|
|
23347
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
23490
23348
|
}, {
|
|
23491
23349
|
function: {
|
|
23492
23350
|
name: string;
|
|
23493
23351
|
arguments: string;
|
|
23494
23352
|
};
|
|
23495
|
-
id: string;
|
|
23496
23353
|
type: "function";
|
|
23354
|
+
id: string;
|
|
23497
23355
|
}>, "many">>;
|
|
23498
23356
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23499
23357
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -23869,10 +23727,10 @@ declare const UserInputMessage: z.ZodObject<{
|
|
|
23869
23727
|
label?: string | undefined;
|
|
23870
23728
|
}>, "many">>;
|
|
23871
23729
|
}, "strip", z.ZodTypeAny, {
|
|
23872
|
-
id: string;
|
|
23873
23730
|
type: "user_input";
|
|
23874
|
-
|
|
23731
|
+
id: string;
|
|
23875
23732
|
timestamp: number;
|
|
23733
|
+
content: string;
|
|
23876
23734
|
role: "user";
|
|
23877
23735
|
metadata?: z.objectOutputType<{
|
|
23878
23736
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -23899,15 +23757,15 @@ declare const UserInputMessage: z.ZodObject<{
|
|
|
23899
23757
|
name: string;
|
|
23900
23758
|
arguments: string;
|
|
23901
23759
|
};
|
|
23902
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
23903
23760
|
type: "function";
|
|
23761
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
23904
23762
|
}, {
|
|
23905
23763
|
function: {
|
|
23906
23764
|
name: string;
|
|
23907
23765
|
arguments: string;
|
|
23908
23766
|
};
|
|
23909
|
-
id: string;
|
|
23910
23767
|
type: "function";
|
|
23768
|
+
id: string;
|
|
23911
23769
|
}>, "many">>;
|
|
23912
23770
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23913
23771
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -24258,10 +24116,10 @@ declare const UserInputMessage: z.ZodObject<{
|
|
|
24258
24116
|
label?: string | undefined;
|
|
24259
24117
|
}[] | undefined;
|
|
24260
24118
|
}, {
|
|
24261
|
-
id: string;
|
|
24262
24119
|
type: "user_input";
|
|
24263
|
-
|
|
24120
|
+
id: string;
|
|
24264
24121
|
timestamp: number;
|
|
24122
|
+
content: string;
|
|
24265
24123
|
role: "user";
|
|
24266
24124
|
metadata?: z.objectInputType<{
|
|
24267
24125
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -24288,15 +24146,15 @@ declare const UserInputMessage: z.ZodObject<{
|
|
|
24288
24146
|
name: string;
|
|
24289
24147
|
arguments: string;
|
|
24290
24148
|
};
|
|
24291
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
24292
24149
|
type: "function";
|
|
24150
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
24293
24151
|
}, {
|
|
24294
24152
|
function: {
|
|
24295
24153
|
name: string;
|
|
24296
24154
|
arguments: string;
|
|
24297
24155
|
};
|
|
24298
|
-
id: string;
|
|
24299
24156
|
type: "function";
|
|
24157
|
+
id: string;
|
|
24300
24158
|
}>, "many">>;
|
|
24301
24159
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24302
24160
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -24679,15 +24537,15 @@ declare const UserContextMessage: z.ZodObject<{
|
|
|
24679
24537
|
name: string;
|
|
24680
24538
|
arguments: string;
|
|
24681
24539
|
};
|
|
24682
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
24683
24540
|
type: "function";
|
|
24541
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
24684
24542
|
}, {
|
|
24685
24543
|
function: {
|
|
24686
24544
|
name: string;
|
|
24687
24545
|
arguments: string;
|
|
24688
24546
|
};
|
|
24689
|
-
id: string;
|
|
24690
24547
|
type: "function";
|
|
24548
|
+
id: string;
|
|
24691
24549
|
}>, "many">>;
|
|
24692
24550
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24693
24551
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -25049,15 +24907,15 @@ declare const UserContextMessage: z.ZodObject<{
|
|
|
25049
24907
|
name: string;
|
|
25050
24908
|
arguments: string;
|
|
25051
24909
|
};
|
|
25052
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
25053
24910
|
type: "function";
|
|
24911
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
25054
24912
|
}, {
|
|
25055
24913
|
function: {
|
|
25056
24914
|
name: string;
|
|
25057
24915
|
arguments: string;
|
|
25058
24916
|
};
|
|
25059
|
-
id: string;
|
|
25060
24917
|
type: "function";
|
|
24918
|
+
id: string;
|
|
25061
24919
|
}>, "many">>;
|
|
25062
24920
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25063
24921
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -25419,15 +25277,15 @@ declare const UserContextMessage: z.ZodObject<{
|
|
|
25419
25277
|
name: string;
|
|
25420
25278
|
arguments: string;
|
|
25421
25279
|
};
|
|
25422
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
25423
25280
|
type: "function";
|
|
25281
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
25424
25282
|
}, {
|
|
25425
25283
|
function: {
|
|
25426
25284
|
name: string;
|
|
25427
25285
|
arguments: string;
|
|
25428
25286
|
};
|
|
25429
|
-
id: string;
|
|
25430
25287
|
type: "function";
|
|
25288
|
+
id: string;
|
|
25431
25289
|
}>, "many">>;
|
|
25432
25290
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25433
25291
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -25769,10 +25627,10 @@ declare const UserContextMessage: z.ZodObject<{
|
|
|
25769
25627
|
role: z.ZodLiteral<"user">;
|
|
25770
25628
|
type: z.ZodEnum<["context_injection", "context_before", "context_after", "document_fragment", "task_request"]>;
|
|
25771
25629
|
}, "strip", z.ZodTypeAny, {
|
|
25772
|
-
id: string;
|
|
25773
25630
|
type: "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request";
|
|
25774
|
-
|
|
25631
|
+
id: string;
|
|
25775
25632
|
timestamp: number;
|
|
25633
|
+
content: string;
|
|
25776
25634
|
role: "user";
|
|
25777
25635
|
metadata?: z.objectOutputType<{
|
|
25778
25636
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -25799,15 +25657,15 @@ declare const UserContextMessage: z.ZodObject<{
|
|
|
25799
25657
|
name: string;
|
|
25800
25658
|
arguments: string;
|
|
25801
25659
|
};
|
|
25802
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
25803
25660
|
type: "function";
|
|
25661
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
25804
25662
|
}, {
|
|
25805
25663
|
function: {
|
|
25806
25664
|
name: string;
|
|
25807
25665
|
arguments: string;
|
|
25808
25666
|
};
|
|
25809
|
-
id: string;
|
|
25810
25667
|
type: "function";
|
|
25668
|
+
id: string;
|
|
25811
25669
|
}>, "many">>;
|
|
25812
25670
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25813
25671
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -26146,10 +26004,10 @@ declare const UserContextMessage: z.ZodObject<{
|
|
|
26146
26004
|
fencePlacement: z.ZodOptional<z.ZodString>;
|
|
26147
26005
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
26148
26006
|
}, {
|
|
26149
|
-
id: string;
|
|
26150
26007
|
type: "context_injection" | "context_before" | "context_after" | "document_fragment" | "task_request";
|
|
26151
|
-
|
|
26008
|
+
id: string;
|
|
26152
26009
|
timestamp: number;
|
|
26010
|
+
content: string;
|
|
26153
26011
|
role: "user";
|
|
26154
26012
|
metadata?: z.objectInputType<{
|
|
26155
26013
|
messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -26176,15 +26034,15 @@ declare const UserContextMessage: z.ZodObject<{
|
|
|
26176
26034
|
name: string;
|
|
26177
26035
|
arguments: string;
|
|
26178
26036
|
};
|
|
26179
|
-
id: string & z.BRAND<"ToolCallId">;
|
|
26180
26037
|
type: "function";
|
|
26038
|
+
id: string & z.BRAND<"ToolCallId">;
|
|
26181
26039
|
}, {
|
|
26182
26040
|
function: {
|
|
26183
26041
|
name: string;
|
|
26184
26042
|
arguments: string;
|
|
26185
26043
|
};
|
|
26186
|
-
id: string;
|
|
26187
26044
|
type: "function";
|
|
26045
|
+
id: string;
|
|
26188
26046
|
}>, "many">>;
|
|
26189
26047
|
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26190
26048
|
schema_version: z.ZodLiteral<2>;
|
|
@@ -26538,609 +26396,4 @@ declare function isToolMessage(message: AiMessage): message is ToolMessage;
|
|
|
26538
26396
|
declare function isHistorySummaryMessage(message: AiMessage): message is SystemMessage;
|
|
26539
26397
|
declare function hasToolCalls(message: AiMessage): boolean;
|
|
26540
26398
|
|
|
26541
|
-
|
|
26542
|
-
* 生成 Provider 私有 continuation 的完整调用身份。
|
|
26543
|
-
*
|
|
26544
|
-
* continuation 只能回放给完全相同的 route;当前选中模型不能证明历史数据的来源。
|
|
26545
|
-
*/
|
|
26546
|
-
declare const ProviderContinuationProducer: z.ZodObject<{
|
|
26547
|
-
model_id: z.ZodString;
|
|
26548
|
-
endpoint_id: z.ZodString;
|
|
26549
|
-
api_surface: z.ZodString;
|
|
26550
|
-
capability_id: z.ZodString;
|
|
26551
|
-
endpoint_model_id: z.ZodString;
|
|
26552
|
-
}, "strict", z.ZodTypeAny, {
|
|
26553
|
-
model_id: string;
|
|
26554
|
-
endpoint_id: string;
|
|
26555
|
-
api_surface: string;
|
|
26556
|
-
capability_id: string;
|
|
26557
|
-
endpoint_model_id: string;
|
|
26558
|
-
}, {
|
|
26559
|
-
model_id: string;
|
|
26560
|
-
endpoint_id: string;
|
|
26561
|
-
api_surface: string;
|
|
26562
|
-
capability_id: string;
|
|
26563
|
-
endpoint_model_id: string;
|
|
26564
|
-
}>;
|
|
26565
|
-
type ProviderContinuationProducer = z.infer<typeof ProviderContinuationProducer>;
|
|
26566
|
-
/** Provider 返回、下一轮请求需要原样回放的最小持久化载荷。 */
|
|
26567
|
-
declare const ProviderContinuation: z.ZodObject<{
|
|
26568
|
-
schema_version: z.ZodLiteral<2>;
|
|
26569
|
-
producer: z.ZodObject<{
|
|
26570
|
-
model_id: z.ZodString;
|
|
26571
|
-
endpoint_id: z.ZodString;
|
|
26572
|
-
api_surface: z.ZodString;
|
|
26573
|
-
capability_id: z.ZodString;
|
|
26574
|
-
endpoint_model_id: z.ZodString;
|
|
26575
|
-
}, "strict", z.ZodTypeAny, {
|
|
26576
|
-
model_id: string;
|
|
26577
|
-
endpoint_id: string;
|
|
26578
|
-
api_surface: string;
|
|
26579
|
-
capability_id: string;
|
|
26580
|
-
endpoint_model_id: string;
|
|
26581
|
-
}, {
|
|
26582
|
-
model_id: string;
|
|
26583
|
-
endpoint_id: string;
|
|
26584
|
-
api_surface: string;
|
|
26585
|
-
capability_id: string;
|
|
26586
|
-
endpoint_model_id: string;
|
|
26587
|
-
}>;
|
|
26588
|
-
kind: z.ZodString;
|
|
26589
|
-
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
26590
|
-
}, "strict", z.ZodTypeAny, {
|
|
26591
|
-
kind: string;
|
|
26592
|
-
schema_version: 2;
|
|
26593
|
-
producer: {
|
|
26594
|
-
model_id: string;
|
|
26595
|
-
endpoint_id: string;
|
|
26596
|
-
api_surface: string;
|
|
26597
|
-
capability_id: string;
|
|
26598
|
-
endpoint_model_id: string;
|
|
26599
|
-
};
|
|
26600
|
-
payload: SerializableJsonValue;
|
|
26601
|
-
}, {
|
|
26602
|
-
kind: string;
|
|
26603
|
-
schema_version: 2;
|
|
26604
|
-
producer: {
|
|
26605
|
-
model_id: string;
|
|
26606
|
-
endpoint_id: string;
|
|
26607
|
-
api_surface: string;
|
|
26608
|
-
capability_id: string;
|
|
26609
|
-
endpoint_model_id: string;
|
|
26610
|
-
};
|
|
26611
|
-
payload: SerializableJsonValue;
|
|
26612
|
-
}>;
|
|
26613
|
-
type ProviderContinuation = z.infer<typeof ProviderContinuation>;
|
|
26614
|
-
declare const ProviderContinuations: z.ZodArray<z.ZodObject<{
|
|
26615
|
-
schema_version: z.ZodLiteral<2>;
|
|
26616
|
-
producer: z.ZodObject<{
|
|
26617
|
-
model_id: z.ZodString;
|
|
26618
|
-
endpoint_id: z.ZodString;
|
|
26619
|
-
api_surface: z.ZodString;
|
|
26620
|
-
capability_id: z.ZodString;
|
|
26621
|
-
endpoint_model_id: z.ZodString;
|
|
26622
|
-
}, "strict", z.ZodTypeAny, {
|
|
26623
|
-
model_id: string;
|
|
26624
|
-
endpoint_id: string;
|
|
26625
|
-
api_surface: string;
|
|
26626
|
-
capability_id: string;
|
|
26627
|
-
endpoint_model_id: string;
|
|
26628
|
-
}, {
|
|
26629
|
-
model_id: string;
|
|
26630
|
-
endpoint_id: string;
|
|
26631
|
-
api_surface: string;
|
|
26632
|
-
capability_id: string;
|
|
26633
|
-
endpoint_model_id: string;
|
|
26634
|
-
}>;
|
|
26635
|
-
kind: z.ZodString;
|
|
26636
|
-
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
26637
|
-
}, "strict", z.ZodTypeAny, {
|
|
26638
|
-
kind: string;
|
|
26639
|
-
schema_version: 2;
|
|
26640
|
-
producer: {
|
|
26641
|
-
model_id: string;
|
|
26642
|
-
endpoint_id: string;
|
|
26643
|
-
api_surface: string;
|
|
26644
|
-
capability_id: string;
|
|
26645
|
-
endpoint_model_id: string;
|
|
26646
|
-
};
|
|
26647
|
-
payload: SerializableJsonValue;
|
|
26648
|
-
}, {
|
|
26649
|
-
kind: string;
|
|
26650
|
-
schema_version: 2;
|
|
26651
|
-
producer: {
|
|
26652
|
-
model_id: string;
|
|
26653
|
-
endpoint_id: string;
|
|
26654
|
-
api_surface: string;
|
|
26655
|
-
capability_id: string;
|
|
26656
|
-
endpoint_model_id: string;
|
|
26657
|
-
};
|
|
26658
|
-
payload: SerializableJsonValue;
|
|
26659
|
-
}>, "many">;
|
|
26660
|
-
type ProviderContinuations = z.infer<typeof ProviderContinuations>;
|
|
26661
|
-
/**
|
|
26662
|
-
* 一次 Assistant 产出的有序 replay 结构。
|
|
26663
|
-
*
|
|
26664
|
-
* 正文、reasoning 与工具调用必须共享同一个顺序容器;否则分别持久化后无法还原
|
|
26665
|
-
* Provider 原始 content block 顺序。continuation 仍是 opaque 数据,只绑定到所属 part。
|
|
26666
|
-
*/
|
|
26667
|
-
declare const AssistantReplayPart: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
26668
|
-
type: z.ZodLiteral<"text">;
|
|
26669
|
-
text: z.ZodString;
|
|
26670
|
-
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26671
|
-
schema_version: z.ZodLiteral<2>;
|
|
26672
|
-
producer: z.ZodObject<{
|
|
26673
|
-
model_id: z.ZodString;
|
|
26674
|
-
endpoint_id: z.ZodString;
|
|
26675
|
-
api_surface: z.ZodString;
|
|
26676
|
-
capability_id: z.ZodString;
|
|
26677
|
-
endpoint_model_id: z.ZodString;
|
|
26678
|
-
}, "strict", z.ZodTypeAny, {
|
|
26679
|
-
model_id: string;
|
|
26680
|
-
endpoint_id: string;
|
|
26681
|
-
api_surface: string;
|
|
26682
|
-
capability_id: string;
|
|
26683
|
-
endpoint_model_id: string;
|
|
26684
|
-
}, {
|
|
26685
|
-
model_id: string;
|
|
26686
|
-
endpoint_id: string;
|
|
26687
|
-
api_surface: string;
|
|
26688
|
-
capability_id: string;
|
|
26689
|
-
endpoint_model_id: string;
|
|
26690
|
-
}>;
|
|
26691
|
-
kind: z.ZodString;
|
|
26692
|
-
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
26693
|
-
}, "strict", z.ZodTypeAny, {
|
|
26694
|
-
kind: string;
|
|
26695
|
-
schema_version: 2;
|
|
26696
|
-
producer: {
|
|
26697
|
-
model_id: string;
|
|
26698
|
-
endpoint_id: string;
|
|
26699
|
-
api_surface: string;
|
|
26700
|
-
capability_id: string;
|
|
26701
|
-
endpoint_model_id: string;
|
|
26702
|
-
};
|
|
26703
|
-
payload: SerializableJsonValue;
|
|
26704
|
-
}, {
|
|
26705
|
-
kind: string;
|
|
26706
|
-
schema_version: 2;
|
|
26707
|
-
producer: {
|
|
26708
|
-
model_id: string;
|
|
26709
|
-
endpoint_id: string;
|
|
26710
|
-
api_surface: string;
|
|
26711
|
-
capability_id: string;
|
|
26712
|
-
endpoint_model_id: string;
|
|
26713
|
-
};
|
|
26714
|
-
payload: SerializableJsonValue;
|
|
26715
|
-
}>, "many">>;
|
|
26716
|
-
}, "strict", z.ZodTypeAny, {
|
|
26717
|
-
type: "text";
|
|
26718
|
-
text: string;
|
|
26719
|
-
provider_continuations?: {
|
|
26720
|
-
kind: string;
|
|
26721
|
-
schema_version: 2;
|
|
26722
|
-
producer: {
|
|
26723
|
-
model_id: string;
|
|
26724
|
-
endpoint_id: string;
|
|
26725
|
-
api_surface: string;
|
|
26726
|
-
capability_id: string;
|
|
26727
|
-
endpoint_model_id: string;
|
|
26728
|
-
};
|
|
26729
|
-
payload: SerializableJsonValue;
|
|
26730
|
-
}[] | undefined;
|
|
26731
|
-
}, {
|
|
26732
|
-
type: "text";
|
|
26733
|
-
text: string;
|
|
26734
|
-
provider_continuations?: {
|
|
26735
|
-
kind: string;
|
|
26736
|
-
schema_version: 2;
|
|
26737
|
-
producer: {
|
|
26738
|
-
model_id: string;
|
|
26739
|
-
endpoint_id: string;
|
|
26740
|
-
api_surface: string;
|
|
26741
|
-
capability_id: string;
|
|
26742
|
-
endpoint_model_id: string;
|
|
26743
|
-
};
|
|
26744
|
-
payload: SerializableJsonValue;
|
|
26745
|
-
}[] | undefined;
|
|
26746
|
-
}>, z.ZodObject<{
|
|
26747
|
-
type: z.ZodLiteral<"reasoning">;
|
|
26748
|
-
text: z.ZodString;
|
|
26749
|
-
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26750
|
-
schema_version: z.ZodLiteral<2>;
|
|
26751
|
-
producer: z.ZodObject<{
|
|
26752
|
-
model_id: z.ZodString;
|
|
26753
|
-
endpoint_id: z.ZodString;
|
|
26754
|
-
api_surface: z.ZodString;
|
|
26755
|
-
capability_id: z.ZodString;
|
|
26756
|
-
endpoint_model_id: z.ZodString;
|
|
26757
|
-
}, "strict", z.ZodTypeAny, {
|
|
26758
|
-
model_id: string;
|
|
26759
|
-
endpoint_id: string;
|
|
26760
|
-
api_surface: string;
|
|
26761
|
-
capability_id: string;
|
|
26762
|
-
endpoint_model_id: string;
|
|
26763
|
-
}, {
|
|
26764
|
-
model_id: string;
|
|
26765
|
-
endpoint_id: string;
|
|
26766
|
-
api_surface: string;
|
|
26767
|
-
capability_id: string;
|
|
26768
|
-
endpoint_model_id: string;
|
|
26769
|
-
}>;
|
|
26770
|
-
kind: z.ZodString;
|
|
26771
|
-
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
26772
|
-
}, "strict", z.ZodTypeAny, {
|
|
26773
|
-
kind: string;
|
|
26774
|
-
schema_version: 2;
|
|
26775
|
-
producer: {
|
|
26776
|
-
model_id: string;
|
|
26777
|
-
endpoint_id: string;
|
|
26778
|
-
api_surface: string;
|
|
26779
|
-
capability_id: string;
|
|
26780
|
-
endpoint_model_id: string;
|
|
26781
|
-
};
|
|
26782
|
-
payload: SerializableJsonValue;
|
|
26783
|
-
}, {
|
|
26784
|
-
kind: string;
|
|
26785
|
-
schema_version: 2;
|
|
26786
|
-
producer: {
|
|
26787
|
-
model_id: string;
|
|
26788
|
-
endpoint_id: string;
|
|
26789
|
-
api_surface: string;
|
|
26790
|
-
capability_id: string;
|
|
26791
|
-
endpoint_model_id: string;
|
|
26792
|
-
};
|
|
26793
|
-
payload: SerializableJsonValue;
|
|
26794
|
-
}>, "many">>;
|
|
26795
|
-
}, "strict", z.ZodTypeAny, {
|
|
26796
|
-
type: "reasoning";
|
|
26797
|
-
text: string;
|
|
26798
|
-
provider_continuations?: {
|
|
26799
|
-
kind: string;
|
|
26800
|
-
schema_version: 2;
|
|
26801
|
-
producer: {
|
|
26802
|
-
model_id: string;
|
|
26803
|
-
endpoint_id: string;
|
|
26804
|
-
api_surface: string;
|
|
26805
|
-
capability_id: string;
|
|
26806
|
-
endpoint_model_id: string;
|
|
26807
|
-
};
|
|
26808
|
-
payload: SerializableJsonValue;
|
|
26809
|
-
}[] | undefined;
|
|
26810
|
-
}, {
|
|
26811
|
-
type: "reasoning";
|
|
26812
|
-
text: string;
|
|
26813
|
-
provider_continuations?: {
|
|
26814
|
-
kind: string;
|
|
26815
|
-
schema_version: 2;
|
|
26816
|
-
producer: {
|
|
26817
|
-
model_id: string;
|
|
26818
|
-
endpoint_id: string;
|
|
26819
|
-
api_surface: string;
|
|
26820
|
-
capability_id: string;
|
|
26821
|
-
endpoint_model_id: string;
|
|
26822
|
-
};
|
|
26823
|
-
payload: SerializableJsonValue;
|
|
26824
|
-
}[] | undefined;
|
|
26825
|
-
}>, z.ZodObject<{
|
|
26826
|
-
type: z.ZodLiteral<"tool_call">;
|
|
26827
|
-
tool_call_id: z.ZodString;
|
|
26828
|
-
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26829
|
-
schema_version: z.ZodLiteral<2>;
|
|
26830
|
-
producer: z.ZodObject<{
|
|
26831
|
-
model_id: z.ZodString;
|
|
26832
|
-
endpoint_id: z.ZodString;
|
|
26833
|
-
api_surface: z.ZodString;
|
|
26834
|
-
capability_id: z.ZodString;
|
|
26835
|
-
endpoint_model_id: z.ZodString;
|
|
26836
|
-
}, "strict", z.ZodTypeAny, {
|
|
26837
|
-
model_id: string;
|
|
26838
|
-
endpoint_id: string;
|
|
26839
|
-
api_surface: string;
|
|
26840
|
-
capability_id: string;
|
|
26841
|
-
endpoint_model_id: string;
|
|
26842
|
-
}, {
|
|
26843
|
-
model_id: string;
|
|
26844
|
-
endpoint_id: string;
|
|
26845
|
-
api_surface: string;
|
|
26846
|
-
capability_id: string;
|
|
26847
|
-
endpoint_model_id: string;
|
|
26848
|
-
}>;
|
|
26849
|
-
kind: z.ZodString;
|
|
26850
|
-
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
26851
|
-
}, "strict", z.ZodTypeAny, {
|
|
26852
|
-
kind: string;
|
|
26853
|
-
schema_version: 2;
|
|
26854
|
-
producer: {
|
|
26855
|
-
model_id: string;
|
|
26856
|
-
endpoint_id: string;
|
|
26857
|
-
api_surface: string;
|
|
26858
|
-
capability_id: string;
|
|
26859
|
-
endpoint_model_id: string;
|
|
26860
|
-
};
|
|
26861
|
-
payload: SerializableJsonValue;
|
|
26862
|
-
}, {
|
|
26863
|
-
kind: string;
|
|
26864
|
-
schema_version: 2;
|
|
26865
|
-
producer: {
|
|
26866
|
-
model_id: string;
|
|
26867
|
-
endpoint_id: string;
|
|
26868
|
-
api_surface: string;
|
|
26869
|
-
capability_id: string;
|
|
26870
|
-
endpoint_model_id: string;
|
|
26871
|
-
};
|
|
26872
|
-
payload: SerializableJsonValue;
|
|
26873
|
-
}>, "many">>;
|
|
26874
|
-
}, "strict", z.ZodTypeAny, {
|
|
26875
|
-
type: "tool_call";
|
|
26876
|
-
tool_call_id: string;
|
|
26877
|
-
provider_continuations?: {
|
|
26878
|
-
kind: string;
|
|
26879
|
-
schema_version: 2;
|
|
26880
|
-
producer: {
|
|
26881
|
-
model_id: string;
|
|
26882
|
-
endpoint_id: string;
|
|
26883
|
-
api_surface: string;
|
|
26884
|
-
capability_id: string;
|
|
26885
|
-
endpoint_model_id: string;
|
|
26886
|
-
};
|
|
26887
|
-
payload: SerializableJsonValue;
|
|
26888
|
-
}[] | undefined;
|
|
26889
|
-
}, {
|
|
26890
|
-
type: "tool_call";
|
|
26891
|
-
tool_call_id: string;
|
|
26892
|
-
provider_continuations?: {
|
|
26893
|
-
kind: string;
|
|
26894
|
-
schema_version: 2;
|
|
26895
|
-
producer: {
|
|
26896
|
-
model_id: string;
|
|
26897
|
-
endpoint_id: string;
|
|
26898
|
-
api_surface: string;
|
|
26899
|
-
capability_id: string;
|
|
26900
|
-
endpoint_model_id: string;
|
|
26901
|
-
};
|
|
26902
|
-
payload: SerializableJsonValue;
|
|
26903
|
-
}[] | undefined;
|
|
26904
|
-
}>]>;
|
|
26905
|
-
type AssistantReplayPart = z.infer<typeof AssistantReplayPart>;
|
|
26906
|
-
declare const AssistantReplayParts: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
26907
|
-
type: z.ZodLiteral<"text">;
|
|
26908
|
-
text: z.ZodString;
|
|
26909
|
-
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26910
|
-
schema_version: z.ZodLiteral<2>;
|
|
26911
|
-
producer: z.ZodObject<{
|
|
26912
|
-
model_id: z.ZodString;
|
|
26913
|
-
endpoint_id: z.ZodString;
|
|
26914
|
-
api_surface: z.ZodString;
|
|
26915
|
-
capability_id: z.ZodString;
|
|
26916
|
-
endpoint_model_id: z.ZodString;
|
|
26917
|
-
}, "strict", z.ZodTypeAny, {
|
|
26918
|
-
model_id: string;
|
|
26919
|
-
endpoint_id: string;
|
|
26920
|
-
api_surface: string;
|
|
26921
|
-
capability_id: string;
|
|
26922
|
-
endpoint_model_id: string;
|
|
26923
|
-
}, {
|
|
26924
|
-
model_id: string;
|
|
26925
|
-
endpoint_id: string;
|
|
26926
|
-
api_surface: string;
|
|
26927
|
-
capability_id: string;
|
|
26928
|
-
endpoint_model_id: string;
|
|
26929
|
-
}>;
|
|
26930
|
-
kind: z.ZodString;
|
|
26931
|
-
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
26932
|
-
}, "strict", z.ZodTypeAny, {
|
|
26933
|
-
kind: string;
|
|
26934
|
-
schema_version: 2;
|
|
26935
|
-
producer: {
|
|
26936
|
-
model_id: string;
|
|
26937
|
-
endpoint_id: string;
|
|
26938
|
-
api_surface: string;
|
|
26939
|
-
capability_id: string;
|
|
26940
|
-
endpoint_model_id: string;
|
|
26941
|
-
};
|
|
26942
|
-
payload: SerializableJsonValue;
|
|
26943
|
-
}, {
|
|
26944
|
-
kind: string;
|
|
26945
|
-
schema_version: 2;
|
|
26946
|
-
producer: {
|
|
26947
|
-
model_id: string;
|
|
26948
|
-
endpoint_id: string;
|
|
26949
|
-
api_surface: string;
|
|
26950
|
-
capability_id: string;
|
|
26951
|
-
endpoint_model_id: string;
|
|
26952
|
-
};
|
|
26953
|
-
payload: SerializableJsonValue;
|
|
26954
|
-
}>, "many">>;
|
|
26955
|
-
}, "strict", z.ZodTypeAny, {
|
|
26956
|
-
type: "text";
|
|
26957
|
-
text: string;
|
|
26958
|
-
provider_continuations?: {
|
|
26959
|
-
kind: string;
|
|
26960
|
-
schema_version: 2;
|
|
26961
|
-
producer: {
|
|
26962
|
-
model_id: string;
|
|
26963
|
-
endpoint_id: string;
|
|
26964
|
-
api_surface: string;
|
|
26965
|
-
capability_id: string;
|
|
26966
|
-
endpoint_model_id: string;
|
|
26967
|
-
};
|
|
26968
|
-
payload: SerializableJsonValue;
|
|
26969
|
-
}[] | undefined;
|
|
26970
|
-
}, {
|
|
26971
|
-
type: "text";
|
|
26972
|
-
text: string;
|
|
26973
|
-
provider_continuations?: {
|
|
26974
|
-
kind: string;
|
|
26975
|
-
schema_version: 2;
|
|
26976
|
-
producer: {
|
|
26977
|
-
model_id: string;
|
|
26978
|
-
endpoint_id: string;
|
|
26979
|
-
api_surface: string;
|
|
26980
|
-
capability_id: string;
|
|
26981
|
-
endpoint_model_id: string;
|
|
26982
|
-
};
|
|
26983
|
-
payload: SerializableJsonValue;
|
|
26984
|
-
}[] | undefined;
|
|
26985
|
-
}>, z.ZodObject<{
|
|
26986
|
-
type: z.ZodLiteral<"reasoning">;
|
|
26987
|
-
text: z.ZodString;
|
|
26988
|
-
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26989
|
-
schema_version: z.ZodLiteral<2>;
|
|
26990
|
-
producer: z.ZodObject<{
|
|
26991
|
-
model_id: z.ZodString;
|
|
26992
|
-
endpoint_id: z.ZodString;
|
|
26993
|
-
api_surface: z.ZodString;
|
|
26994
|
-
capability_id: z.ZodString;
|
|
26995
|
-
endpoint_model_id: z.ZodString;
|
|
26996
|
-
}, "strict", z.ZodTypeAny, {
|
|
26997
|
-
model_id: string;
|
|
26998
|
-
endpoint_id: string;
|
|
26999
|
-
api_surface: string;
|
|
27000
|
-
capability_id: string;
|
|
27001
|
-
endpoint_model_id: string;
|
|
27002
|
-
}, {
|
|
27003
|
-
model_id: string;
|
|
27004
|
-
endpoint_id: string;
|
|
27005
|
-
api_surface: string;
|
|
27006
|
-
capability_id: string;
|
|
27007
|
-
endpoint_model_id: string;
|
|
27008
|
-
}>;
|
|
27009
|
-
kind: z.ZodString;
|
|
27010
|
-
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
27011
|
-
}, "strict", z.ZodTypeAny, {
|
|
27012
|
-
kind: string;
|
|
27013
|
-
schema_version: 2;
|
|
27014
|
-
producer: {
|
|
27015
|
-
model_id: string;
|
|
27016
|
-
endpoint_id: string;
|
|
27017
|
-
api_surface: string;
|
|
27018
|
-
capability_id: string;
|
|
27019
|
-
endpoint_model_id: string;
|
|
27020
|
-
};
|
|
27021
|
-
payload: SerializableJsonValue;
|
|
27022
|
-
}, {
|
|
27023
|
-
kind: string;
|
|
27024
|
-
schema_version: 2;
|
|
27025
|
-
producer: {
|
|
27026
|
-
model_id: string;
|
|
27027
|
-
endpoint_id: string;
|
|
27028
|
-
api_surface: string;
|
|
27029
|
-
capability_id: string;
|
|
27030
|
-
endpoint_model_id: string;
|
|
27031
|
-
};
|
|
27032
|
-
payload: SerializableJsonValue;
|
|
27033
|
-
}>, "many">>;
|
|
27034
|
-
}, "strict", z.ZodTypeAny, {
|
|
27035
|
-
type: "reasoning";
|
|
27036
|
-
text: string;
|
|
27037
|
-
provider_continuations?: {
|
|
27038
|
-
kind: string;
|
|
27039
|
-
schema_version: 2;
|
|
27040
|
-
producer: {
|
|
27041
|
-
model_id: string;
|
|
27042
|
-
endpoint_id: string;
|
|
27043
|
-
api_surface: string;
|
|
27044
|
-
capability_id: string;
|
|
27045
|
-
endpoint_model_id: string;
|
|
27046
|
-
};
|
|
27047
|
-
payload: SerializableJsonValue;
|
|
27048
|
-
}[] | undefined;
|
|
27049
|
-
}, {
|
|
27050
|
-
type: "reasoning";
|
|
27051
|
-
text: string;
|
|
27052
|
-
provider_continuations?: {
|
|
27053
|
-
kind: string;
|
|
27054
|
-
schema_version: 2;
|
|
27055
|
-
producer: {
|
|
27056
|
-
model_id: string;
|
|
27057
|
-
endpoint_id: string;
|
|
27058
|
-
api_surface: string;
|
|
27059
|
-
capability_id: string;
|
|
27060
|
-
endpoint_model_id: string;
|
|
27061
|
-
};
|
|
27062
|
-
payload: SerializableJsonValue;
|
|
27063
|
-
}[] | undefined;
|
|
27064
|
-
}>, z.ZodObject<{
|
|
27065
|
-
type: z.ZodLiteral<"tool_call">;
|
|
27066
|
-
tool_call_id: z.ZodString;
|
|
27067
|
-
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27068
|
-
schema_version: z.ZodLiteral<2>;
|
|
27069
|
-
producer: z.ZodObject<{
|
|
27070
|
-
model_id: z.ZodString;
|
|
27071
|
-
endpoint_id: z.ZodString;
|
|
27072
|
-
api_surface: z.ZodString;
|
|
27073
|
-
capability_id: z.ZodString;
|
|
27074
|
-
endpoint_model_id: z.ZodString;
|
|
27075
|
-
}, "strict", z.ZodTypeAny, {
|
|
27076
|
-
model_id: string;
|
|
27077
|
-
endpoint_id: string;
|
|
27078
|
-
api_surface: string;
|
|
27079
|
-
capability_id: string;
|
|
27080
|
-
endpoint_model_id: string;
|
|
27081
|
-
}, {
|
|
27082
|
-
model_id: string;
|
|
27083
|
-
endpoint_id: string;
|
|
27084
|
-
api_surface: string;
|
|
27085
|
-
capability_id: string;
|
|
27086
|
-
endpoint_model_id: string;
|
|
27087
|
-
}>;
|
|
27088
|
-
kind: z.ZodString;
|
|
27089
|
-
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
27090
|
-
}, "strict", z.ZodTypeAny, {
|
|
27091
|
-
kind: string;
|
|
27092
|
-
schema_version: 2;
|
|
27093
|
-
producer: {
|
|
27094
|
-
model_id: string;
|
|
27095
|
-
endpoint_id: string;
|
|
27096
|
-
api_surface: string;
|
|
27097
|
-
capability_id: string;
|
|
27098
|
-
endpoint_model_id: string;
|
|
27099
|
-
};
|
|
27100
|
-
payload: SerializableJsonValue;
|
|
27101
|
-
}, {
|
|
27102
|
-
kind: string;
|
|
27103
|
-
schema_version: 2;
|
|
27104
|
-
producer: {
|
|
27105
|
-
model_id: string;
|
|
27106
|
-
endpoint_id: string;
|
|
27107
|
-
api_surface: string;
|
|
27108
|
-
capability_id: string;
|
|
27109
|
-
endpoint_model_id: string;
|
|
27110
|
-
};
|
|
27111
|
-
payload: SerializableJsonValue;
|
|
27112
|
-
}>, "many">>;
|
|
27113
|
-
}, "strict", z.ZodTypeAny, {
|
|
27114
|
-
type: "tool_call";
|
|
27115
|
-
tool_call_id: string;
|
|
27116
|
-
provider_continuations?: {
|
|
27117
|
-
kind: string;
|
|
27118
|
-
schema_version: 2;
|
|
27119
|
-
producer: {
|
|
27120
|
-
model_id: string;
|
|
27121
|
-
endpoint_id: string;
|
|
27122
|
-
api_surface: string;
|
|
27123
|
-
capability_id: string;
|
|
27124
|
-
endpoint_model_id: string;
|
|
27125
|
-
};
|
|
27126
|
-
payload: SerializableJsonValue;
|
|
27127
|
-
}[] | undefined;
|
|
27128
|
-
}, {
|
|
27129
|
-
type: "tool_call";
|
|
27130
|
-
tool_call_id: string;
|
|
27131
|
-
provider_continuations?: {
|
|
27132
|
-
kind: string;
|
|
27133
|
-
schema_version: 2;
|
|
27134
|
-
producer: {
|
|
27135
|
-
model_id: string;
|
|
27136
|
-
endpoint_id: string;
|
|
27137
|
-
api_surface: string;
|
|
27138
|
-
capability_id: string;
|
|
27139
|
-
endpoint_model_id: string;
|
|
27140
|
-
};
|
|
27141
|
-
payload: SerializableJsonValue;
|
|
27142
|
-
}[] | undefined;
|
|
27143
|
-
}>]>, "many">;
|
|
27144
|
-
type AssistantReplayParts = z.infer<typeof AssistantReplayParts>;
|
|
27145
|
-
|
|
27146
|
-
export { ToolMessage as $, AiMessage as A, type ResumeToken as B, type ContextLedgerEntryId as C, ResumeTokenSchema as D, type ExecutionId as E, RunIdSchema as F, type RunResumeClaimId as G, type HistoryMessageReferenceId as H, type InteractionId as I, RunResumeClaimIdSchema as J, RuntimeEventIdSchema as K, RuntimeResourceRefs as L, SerializableJsonRecord as M, type SourceEventId as N, ObservationTruncationMeta as O, ProviderContinuation as P, SourceEventIdSchema as Q, RuntimeResourceRef as R, type SubrunId as S, type ToolCallId as T, SubrunIdSchema as U, SystemMessage as V, TaskTrackingMeta as W, ThoughtMessageIdSchema as X, ToolCallIdSchema as Y, ToolCallWire as Z, ToolCallsMeta as _, AssistantReplayPart as a, ToolOutputMeta as a0, type TraceId as a1, TraceIdSchema as a2, TurnIdSchema as a3, UserMessage as a4, createAssistantMessage as a5, createHistorySummaryMessage as a6, createSystemMessage as a7, createToolMessage as a8, createUserMessage as a9, hasToolCalls as aa, isAssistantMessage as ab, isHistorySummaryMessage as ac, isSystemMessage as ad, isToolMessage as ae, isUserMessage as af, toSerializableJsonRecord as ag, toSerializableJsonValue as ah, validateAiMessage as ai, validateHistorySummaryMeta as aj, AssistantMessage as b, type RunId as c, type TurnId as d, type RuntimeEventId as e, type AnswerSegmentId as f, SerializableJsonValue as g, type ThoughtMessageId as h, type AiMessageId as i, AiMessageIdSchema as j, AnswerSegmentIdSchema as k, AssistantReplayParts as l, type AuditEnvelopeId as m, AuditEnvelopeIdSchema as n, ContextLedgerEntryIdSchema as o, type ControlTargetReferenceId as p, ControlTargetReferenceIdSchema as q, type ConversationId as r, ConversationIdSchema as s, ExecutionIdSchema as t, HistoryMessageReferenceIdSchema as u, HistorySummaryMeta as v, InteractionIdSchema as w, PersistentMetadata as x, ProviderContinuationProducer as y, ProviderContinuations as z };
|
|
26399
|
+
export { AiMessage, AssistantMessage, HistorySummaryMeta, ObservationTruncationMeta, PersistentMetadata, SystemMessage, TaskTrackingMeta, ToolCallWire, ToolCallsMeta, ToolMessage, ToolOutputMeta, UserMessage, createAssistantMessage, createHistorySummaryMessage, createSystemMessage, createToolMessage, createUserMessage, hasToolCalls, isAssistantMessage, isHistorySummaryMessage, isSystemMessage, isToolMessage, isUserMessage, validateAiMessage, validateHistorySummaryMeta };
|