@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
|
@@ -0,0 +1,609 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { SerializableJsonValue } from './json.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 生成 Provider 私有 continuation 的完整调用身份。
|
|
6
|
+
*
|
|
7
|
+
* continuation 只能回放给完全相同的 route;当前选中模型不能证明历史数据的来源。
|
|
8
|
+
*/
|
|
9
|
+
declare const ProviderContinuationProducer: z.ZodObject<{
|
|
10
|
+
model_id: z.ZodString;
|
|
11
|
+
endpoint_id: z.ZodString;
|
|
12
|
+
api_surface: z.ZodString;
|
|
13
|
+
capability_id: z.ZodString;
|
|
14
|
+
endpoint_model_id: z.ZodString;
|
|
15
|
+
}, "strict", z.ZodTypeAny, {
|
|
16
|
+
model_id: string;
|
|
17
|
+
endpoint_id: string;
|
|
18
|
+
api_surface: string;
|
|
19
|
+
capability_id: string;
|
|
20
|
+
endpoint_model_id: string;
|
|
21
|
+
}, {
|
|
22
|
+
model_id: string;
|
|
23
|
+
endpoint_id: string;
|
|
24
|
+
api_surface: string;
|
|
25
|
+
capability_id: string;
|
|
26
|
+
endpoint_model_id: string;
|
|
27
|
+
}>;
|
|
28
|
+
type ProviderContinuationProducer = z.infer<typeof ProviderContinuationProducer>;
|
|
29
|
+
/** Provider 返回、下一轮请求需要原样回放的最小持久化载荷。 */
|
|
30
|
+
declare const ProviderContinuation: z.ZodObject<{
|
|
31
|
+
schema_version: z.ZodLiteral<2>;
|
|
32
|
+
producer: z.ZodObject<{
|
|
33
|
+
model_id: z.ZodString;
|
|
34
|
+
endpoint_id: z.ZodString;
|
|
35
|
+
api_surface: z.ZodString;
|
|
36
|
+
capability_id: z.ZodString;
|
|
37
|
+
endpoint_model_id: z.ZodString;
|
|
38
|
+
}, "strict", z.ZodTypeAny, {
|
|
39
|
+
model_id: string;
|
|
40
|
+
endpoint_id: string;
|
|
41
|
+
api_surface: string;
|
|
42
|
+
capability_id: string;
|
|
43
|
+
endpoint_model_id: string;
|
|
44
|
+
}, {
|
|
45
|
+
model_id: string;
|
|
46
|
+
endpoint_id: string;
|
|
47
|
+
api_surface: string;
|
|
48
|
+
capability_id: string;
|
|
49
|
+
endpoint_model_id: string;
|
|
50
|
+
}>;
|
|
51
|
+
kind: z.ZodString;
|
|
52
|
+
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
53
|
+
}, "strict", z.ZodTypeAny, {
|
|
54
|
+
kind: string;
|
|
55
|
+
schema_version: 2;
|
|
56
|
+
producer: {
|
|
57
|
+
model_id: string;
|
|
58
|
+
endpoint_id: string;
|
|
59
|
+
api_surface: string;
|
|
60
|
+
capability_id: string;
|
|
61
|
+
endpoint_model_id: string;
|
|
62
|
+
};
|
|
63
|
+
payload: SerializableJsonValue;
|
|
64
|
+
}, {
|
|
65
|
+
kind: string;
|
|
66
|
+
schema_version: 2;
|
|
67
|
+
producer: {
|
|
68
|
+
model_id: string;
|
|
69
|
+
endpoint_id: string;
|
|
70
|
+
api_surface: string;
|
|
71
|
+
capability_id: string;
|
|
72
|
+
endpoint_model_id: string;
|
|
73
|
+
};
|
|
74
|
+
payload: SerializableJsonValue;
|
|
75
|
+
}>;
|
|
76
|
+
type ProviderContinuation = z.infer<typeof ProviderContinuation>;
|
|
77
|
+
declare const ProviderContinuations: z.ZodArray<z.ZodObject<{
|
|
78
|
+
schema_version: z.ZodLiteral<2>;
|
|
79
|
+
producer: z.ZodObject<{
|
|
80
|
+
model_id: z.ZodString;
|
|
81
|
+
endpoint_id: z.ZodString;
|
|
82
|
+
api_surface: z.ZodString;
|
|
83
|
+
capability_id: z.ZodString;
|
|
84
|
+
endpoint_model_id: z.ZodString;
|
|
85
|
+
}, "strict", z.ZodTypeAny, {
|
|
86
|
+
model_id: string;
|
|
87
|
+
endpoint_id: string;
|
|
88
|
+
api_surface: string;
|
|
89
|
+
capability_id: string;
|
|
90
|
+
endpoint_model_id: string;
|
|
91
|
+
}, {
|
|
92
|
+
model_id: string;
|
|
93
|
+
endpoint_id: string;
|
|
94
|
+
api_surface: string;
|
|
95
|
+
capability_id: string;
|
|
96
|
+
endpoint_model_id: string;
|
|
97
|
+
}>;
|
|
98
|
+
kind: z.ZodString;
|
|
99
|
+
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
100
|
+
}, "strict", z.ZodTypeAny, {
|
|
101
|
+
kind: string;
|
|
102
|
+
schema_version: 2;
|
|
103
|
+
producer: {
|
|
104
|
+
model_id: string;
|
|
105
|
+
endpoint_id: string;
|
|
106
|
+
api_surface: string;
|
|
107
|
+
capability_id: string;
|
|
108
|
+
endpoint_model_id: string;
|
|
109
|
+
};
|
|
110
|
+
payload: SerializableJsonValue;
|
|
111
|
+
}, {
|
|
112
|
+
kind: string;
|
|
113
|
+
schema_version: 2;
|
|
114
|
+
producer: {
|
|
115
|
+
model_id: string;
|
|
116
|
+
endpoint_id: string;
|
|
117
|
+
api_surface: string;
|
|
118
|
+
capability_id: string;
|
|
119
|
+
endpoint_model_id: string;
|
|
120
|
+
};
|
|
121
|
+
payload: SerializableJsonValue;
|
|
122
|
+
}>, "many">;
|
|
123
|
+
type ProviderContinuations = z.infer<typeof ProviderContinuations>;
|
|
124
|
+
/**
|
|
125
|
+
* 一次 Assistant 产出的有序 replay 结构。
|
|
126
|
+
*
|
|
127
|
+
* 正文、reasoning 与工具调用必须共享同一个顺序容器;否则分别持久化后无法还原
|
|
128
|
+
* Provider 原始 content block 顺序。continuation 仍是 opaque 数据,只绑定到所属 part。
|
|
129
|
+
*/
|
|
130
|
+
declare const AssistantReplayPart: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
131
|
+
type: z.ZodLiteral<"text">;
|
|
132
|
+
text: z.ZodString;
|
|
133
|
+
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
134
|
+
schema_version: z.ZodLiteral<2>;
|
|
135
|
+
producer: z.ZodObject<{
|
|
136
|
+
model_id: z.ZodString;
|
|
137
|
+
endpoint_id: z.ZodString;
|
|
138
|
+
api_surface: z.ZodString;
|
|
139
|
+
capability_id: z.ZodString;
|
|
140
|
+
endpoint_model_id: z.ZodString;
|
|
141
|
+
}, "strict", z.ZodTypeAny, {
|
|
142
|
+
model_id: string;
|
|
143
|
+
endpoint_id: string;
|
|
144
|
+
api_surface: string;
|
|
145
|
+
capability_id: string;
|
|
146
|
+
endpoint_model_id: string;
|
|
147
|
+
}, {
|
|
148
|
+
model_id: string;
|
|
149
|
+
endpoint_id: string;
|
|
150
|
+
api_surface: string;
|
|
151
|
+
capability_id: string;
|
|
152
|
+
endpoint_model_id: string;
|
|
153
|
+
}>;
|
|
154
|
+
kind: z.ZodString;
|
|
155
|
+
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
156
|
+
}, "strict", z.ZodTypeAny, {
|
|
157
|
+
kind: string;
|
|
158
|
+
schema_version: 2;
|
|
159
|
+
producer: {
|
|
160
|
+
model_id: string;
|
|
161
|
+
endpoint_id: string;
|
|
162
|
+
api_surface: string;
|
|
163
|
+
capability_id: string;
|
|
164
|
+
endpoint_model_id: string;
|
|
165
|
+
};
|
|
166
|
+
payload: SerializableJsonValue;
|
|
167
|
+
}, {
|
|
168
|
+
kind: string;
|
|
169
|
+
schema_version: 2;
|
|
170
|
+
producer: {
|
|
171
|
+
model_id: string;
|
|
172
|
+
endpoint_id: string;
|
|
173
|
+
api_surface: string;
|
|
174
|
+
capability_id: string;
|
|
175
|
+
endpoint_model_id: string;
|
|
176
|
+
};
|
|
177
|
+
payload: SerializableJsonValue;
|
|
178
|
+
}>, "many">>;
|
|
179
|
+
}, "strict", z.ZodTypeAny, {
|
|
180
|
+
type: "text";
|
|
181
|
+
text: string;
|
|
182
|
+
provider_continuations?: {
|
|
183
|
+
kind: string;
|
|
184
|
+
schema_version: 2;
|
|
185
|
+
producer: {
|
|
186
|
+
model_id: string;
|
|
187
|
+
endpoint_id: string;
|
|
188
|
+
api_surface: string;
|
|
189
|
+
capability_id: string;
|
|
190
|
+
endpoint_model_id: string;
|
|
191
|
+
};
|
|
192
|
+
payload: SerializableJsonValue;
|
|
193
|
+
}[] | undefined;
|
|
194
|
+
}, {
|
|
195
|
+
type: "text";
|
|
196
|
+
text: string;
|
|
197
|
+
provider_continuations?: {
|
|
198
|
+
kind: string;
|
|
199
|
+
schema_version: 2;
|
|
200
|
+
producer: {
|
|
201
|
+
model_id: string;
|
|
202
|
+
endpoint_id: string;
|
|
203
|
+
api_surface: string;
|
|
204
|
+
capability_id: string;
|
|
205
|
+
endpoint_model_id: string;
|
|
206
|
+
};
|
|
207
|
+
payload: SerializableJsonValue;
|
|
208
|
+
}[] | undefined;
|
|
209
|
+
}>, z.ZodObject<{
|
|
210
|
+
type: z.ZodLiteral<"reasoning">;
|
|
211
|
+
text: z.ZodString;
|
|
212
|
+
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
213
|
+
schema_version: z.ZodLiteral<2>;
|
|
214
|
+
producer: z.ZodObject<{
|
|
215
|
+
model_id: z.ZodString;
|
|
216
|
+
endpoint_id: z.ZodString;
|
|
217
|
+
api_surface: z.ZodString;
|
|
218
|
+
capability_id: z.ZodString;
|
|
219
|
+
endpoint_model_id: z.ZodString;
|
|
220
|
+
}, "strict", z.ZodTypeAny, {
|
|
221
|
+
model_id: string;
|
|
222
|
+
endpoint_id: string;
|
|
223
|
+
api_surface: string;
|
|
224
|
+
capability_id: string;
|
|
225
|
+
endpoint_model_id: string;
|
|
226
|
+
}, {
|
|
227
|
+
model_id: string;
|
|
228
|
+
endpoint_id: string;
|
|
229
|
+
api_surface: string;
|
|
230
|
+
capability_id: string;
|
|
231
|
+
endpoint_model_id: string;
|
|
232
|
+
}>;
|
|
233
|
+
kind: z.ZodString;
|
|
234
|
+
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
235
|
+
}, "strict", z.ZodTypeAny, {
|
|
236
|
+
kind: string;
|
|
237
|
+
schema_version: 2;
|
|
238
|
+
producer: {
|
|
239
|
+
model_id: string;
|
|
240
|
+
endpoint_id: string;
|
|
241
|
+
api_surface: string;
|
|
242
|
+
capability_id: string;
|
|
243
|
+
endpoint_model_id: string;
|
|
244
|
+
};
|
|
245
|
+
payload: SerializableJsonValue;
|
|
246
|
+
}, {
|
|
247
|
+
kind: string;
|
|
248
|
+
schema_version: 2;
|
|
249
|
+
producer: {
|
|
250
|
+
model_id: string;
|
|
251
|
+
endpoint_id: string;
|
|
252
|
+
api_surface: string;
|
|
253
|
+
capability_id: string;
|
|
254
|
+
endpoint_model_id: string;
|
|
255
|
+
};
|
|
256
|
+
payload: SerializableJsonValue;
|
|
257
|
+
}>, "many">>;
|
|
258
|
+
}, "strict", z.ZodTypeAny, {
|
|
259
|
+
type: "reasoning";
|
|
260
|
+
text: string;
|
|
261
|
+
provider_continuations?: {
|
|
262
|
+
kind: string;
|
|
263
|
+
schema_version: 2;
|
|
264
|
+
producer: {
|
|
265
|
+
model_id: string;
|
|
266
|
+
endpoint_id: string;
|
|
267
|
+
api_surface: string;
|
|
268
|
+
capability_id: string;
|
|
269
|
+
endpoint_model_id: string;
|
|
270
|
+
};
|
|
271
|
+
payload: SerializableJsonValue;
|
|
272
|
+
}[] | undefined;
|
|
273
|
+
}, {
|
|
274
|
+
type: "reasoning";
|
|
275
|
+
text: string;
|
|
276
|
+
provider_continuations?: {
|
|
277
|
+
kind: string;
|
|
278
|
+
schema_version: 2;
|
|
279
|
+
producer: {
|
|
280
|
+
model_id: string;
|
|
281
|
+
endpoint_id: string;
|
|
282
|
+
api_surface: string;
|
|
283
|
+
capability_id: string;
|
|
284
|
+
endpoint_model_id: string;
|
|
285
|
+
};
|
|
286
|
+
payload: SerializableJsonValue;
|
|
287
|
+
}[] | undefined;
|
|
288
|
+
}>, z.ZodObject<{
|
|
289
|
+
type: z.ZodLiteral<"tool_call">;
|
|
290
|
+
tool_call_id: z.ZodString;
|
|
291
|
+
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
292
|
+
schema_version: z.ZodLiteral<2>;
|
|
293
|
+
producer: z.ZodObject<{
|
|
294
|
+
model_id: z.ZodString;
|
|
295
|
+
endpoint_id: z.ZodString;
|
|
296
|
+
api_surface: z.ZodString;
|
|
297
|
+
capability_id: z.ZodString;
|
|
298
|
+
endpoint_model_id: z.ZodString;
|
|
299
|
+
}, "strict", z.ZodTypeAny, {
|
|
300
|
+
model_id: string;
|
|
301
|
+
endpoint_id: string;
|
|
302
|
+
api_surface: string;
|
|
303
|
+
capability_id: string;
|
|
304
|
+
endpoint_model_id: string;
|
|
305
|
+
}, {
|
|
306
|
+
model_id: string;
|
|
307
|
+
endpoint_id: string;
|
|
308
|
+
api_surface: string;
|
|
309
|
+
capability_id: string;
|
|
310
|
+
endpoint_model_id: string;
|
|
311
|
+
}>;
|
|
312
|
+
kind: z.ZodString;
|
|
313
|
+
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
314
|
+
}, "strict", z.ZodTypeAny, {
|
|
315
|
+
kind: string;
|
|
316
|
+
schema_version: 2;
|
|
317
|
+
producer: {
|
|
318
|
+
model_id: string;
|
|
319
|
+
endpoint_id: string;
|
|
320
|
+
api_surface: string;
|
|
321
|
+
capability_id: string;
|
|
322
|
+
endpoint_model_id: string;
|
|
323
|
+
};
|
|
324
|
+
payload: SerializableJsonValue;
|
|
325
|
+
}, {
|
|
326
|
+
kind: string;
|
|
327
|
+
schema_version: 2;
|
|
328
|
+
producer: {
|
|
329
|
+
model_id: string;
|
|
330
|
+
endpoint_id: string;
|
|
331
|
+
api_surface: string;
|
|
332
|
+
capability_id: string;
|
|
333
|
+
endpoint_model_id: string;
|
|
334
|
+
};
|
|
335
|
+
payload: SerializableJsonValue;
|
|
336
|
+
}>, "many">>;
|
|
337
|
+
}, "strict", z.ZodTypeAny, {
|
|
338
|
+
type: "tool_call";
|
|
339
|
+
tool_call_id: string;
|
|
340
|
+
provider_continuations?: {
|
|
341
|
+
kind: string;
|
|
342
|
+
schema_version: 2;
|
|
343
|
+
producer: {
|
|
344
|
+
model_id: string;
|
|
345
|
+
endpoint_id: string;
|
|
346
|
+
api_surface: string;
|
|
347
|
+
capability_id: string;
|
|
348
|
+
endpoint_model_id: string;
|
|
349
|
+
};
|
|
350
|
+
payload: SerializableJsonValue;
|
|
351
|
+
}[] | undefined;
|
|
352
|
+
}, {
|
|
353
|
+
type: "tool_call";
|
|
354
|
+
tool_call_id: string;
|
|
355
|
+
provider_continuations?: {
|
|
356
|
+
kind: string;
|
|
357
|
+
schema_version: 2;
|
|
358
|
+
producer: {
|
|
359
|
+
model_id: string;
|
|
360
|
+
endpoint_id: string;
|
|
361
|
+
api_surface: string;
|
|
362
|
+
capability_id: string;
|
|
363
|
+
endpoint_model_id: string;
|
|
364
|
+
};
|
|
365
|
+
payload: SerializableJsonValue;
|
|
366
|
+
}[] | undefined;
|
|
367
|
+
}>]>;
|
|
368
|
+
type AssistantReplayPart = z.infer<typeof AssistantReplayPart>;
|
|
369
|
+
declare const AssistantReplayParts: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
370
|
+
type: z.ZodLiteral<"text">;
|
|
371
|
+
text: z.ZodString;
|
|
372
|
+
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
373
|
+
schema_version: z.ZodLiteral<2>;
|
|
374
|
+
producer: z.ZodObject<{
|
|
375
|
+
model_id: z.ZodString;
|
|
376
|
+
endpoint_id: z.ZodString;
|
|
377
|
+
api_surface: z.ZodString;
|
|
378
|
+
capability_id: z.ZodString;
|
|
379
|
+
endpoint_model_id: z.ZodString;
|
|
380
|
+
}, "strict", z.ZodTypeAny, {
|
|
381
|
+
model_id: string;
|
|
382
|
+
endpoint_id: string;
|
|
383
|
+
api_surface: string;
|
|
384
|
+
capability_id: string;
|
|
385
|
+
endpoint_model_id: string;
|
|
386
|
+
}, {
|
|
387
|
+
model_id: string;
|
|
388
|
+
endpoint_id: string;
|
|
389
|
+
api_surface: string;
|
|
390
|
+
capability_id: string;
|
|
391
|
+
endpoint_model_id: string;
|
|
392
|
+
}>;
|
|
393
|
+
kind: z.ZodString;
|
|
394
|
+
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
395
|
+
}, "strict", z.ZodTypeAny, {
|
|
396
|
+
kind: string;
|
|
397
|
+
schema_version: 2;
|
|
398
|
+
producer: {
|
|
399
|
+
model_id: string;
|
|
400
|
+
endpoint_id: string;
|
|
401
|
+
api_surface: string;
|
|
402
|
+
capability_id: string;
|
|
403
|
+
endpoint_model_id: string;
|
|
404
|
+
};
|
|
405
|
+
payload: SerializableJsonValue;
|
|
406
|
+
}, {
|
|
407
|
+
kind: string;
|
|
408
|
+
schema_version: 2;
|
|
409
|
+
producer: {
|
|
410
|
+
model_id: string;
|
|
411
|
+
endpoint_id: string;
|
|
412
|
+
api_surface: string;
|
|
413
|
+
capability_id: string;
|
|
414
|
+
endpoint_model_id: string;
|
|
415
|
+
};
|
|
416
|
+
payload: SerializableJsonValue;
|
|
417
|
+
}>, "many">>;
|
|
418
|
+
}, "strict", z.ZodTypeAny, {
|
|
419
|
+
type: "text";
|
|
420
|
+
text: string;
|
|
421
|
+
provider_continuations?: {
|
|
422
|
+
kind: string;
|
|
423
|
+
schema_version: 2;
|
|
424
|
+
producer: {
|
|
425
|
+
model_id: string;
|
|
426
|
+
endpoint_id: string;
|
|
427
|
+
api_surface: string;
|
|
428
|
+
capability_id: string;
|
|
429
|
+
endpoint_model_id: string;
|
|
430
|
+
};
|
|
431
|
+
payload: SerializableJsonValue;
|
|
432
|
+
}[] | undefined;
|
|
433
|
+
}, {
|
|
434
|
+
type: "text";
|
|
435
|
+
text: string;
|
|
436
|
+
provider_continuations?: {
|
|
437
|
+
kind: string;
|
|
438
|
+
schema_version: 2;
|
|
439
|
+
producer: {
|
|
440
|
+
model_id: string;
|
|
441
|
+
endpoint_id: string;
|
|
442
|
+
api_surface: string;
|
|
443
|
+
capability_id: string;
|
|
444
|
+
endpoint_model_id: string;
|
|
445
|
+
};
|
|
446
|
+
payload: SerializableJsonValue;
|
|
447
|
+
}[] | undefined;
|
|
448
|
+
}>, z.ZodObject<{
|
|
449
|
+
type: z.ZodLiteral<"reasoning">;
|
|
450
|
+
text: z.ZodString;
|
|
451
|
+
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
452
|
+
schema_version: z.ZodLiteral<2>;
|
|
453
|
+
producer: z.ZodObject<{
|
|
454
|
+
model_id: z.ZodString;
|
|
455
|
+
endpoint_id: z.ZodString;
|
|
456
|
+
api_surface: z.ZodString;
|
|
457
|
+
capability_id: z.ZodString;
|
|
458
|
+
endpoint_model_id: z.ZodString;
|
|
459
|
+
}, "strict", z.ZodTypeAny, {
|
|
460
|
+
model_id: string;
|
|
461
|
+
endpoint_id: string;
|
|
462
|
+
api_surface: string;
|
|
463
|
+
capability_id: string;
|
|
464
|
+
endpoint_model_id: string;
|
|
465
|
+
}, {
|
|
466
|
+
model_id: string;
|
|
467
|
+
endpoint_id: string;
|
|
468
|
+
api_surface: string;
|
|
469
|
+
capability_id: string;
|
|
470
|
+
endpoint_model_id: string;
|
|
471
|
+
}>;
|
|
472
|
+
kind: z.ZodString;
|
|
473
|
+
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
474
|
+
}, "strict", z.ZodTypeAny, {
|
|
475
|
+
kind: string;
|
|
476
|
+
schema_version: 2;
|
|
477
|
+
producer: {
|
|
478
|
+
model_id: string;
|
|
479
|
+
endpoint_id: string;
|
|
480
|
+
api_surface: string;
|
|
481
|
+
capability_id: string;
|
|
482
|
+
endpoint_model_id: string;
|
|
483
|
+
};
|
|
484
|
+
payload: SerializableJsonValue;
|
|
485
|
+
}, {
|
|
486
|
+
kind: string;
|
|
487
|
+
schema_version: 2;
|
|
488
|
+
producer: {
|
|
489
|
+
model_id: string;
|
|
490
|
+
endpoint_id: string;
|
|
491
|
+
api_surface: string;
|
|
492
|
+
capability_id: string;
|
|
493
|
+
endpoint_model_id: string;
|
|
494
|
+
};
|
|
495
|
+
payload: SerializableJsonValue;
|
|
496
|
+
}>, "many">>;
|
|
497
|
+
}, "strict", z.ZodTypeAny, {
|
|
498
|
+
type: "reasoning";
|
|
499
|
+
text: string;
|
|
500
|
+
provider_continuations?: {
|
|
501
|
+
kind: string;
|
|
502
|
+
schema_version: 2;
|
|
503
|
+
producer: {
|
|
504
|
+
model_id: string;
|
|
505
|
+
endpoint_id: string;
|
|
506
|
+
api_surface: string;
|
|
507
|
+
capability_id: string;
|
|
508
|
+
endpoint_model_id: string;
|
|
509
|
+
};
|
|
510
|
+
payload: SerializableJsonValue;
|
|
511
|
+
}[] | undefined;
|
|
512
|
+
}, {
|
|
513
|
+
type: "reasoning";
|
|
514
|
+
text: string;
|
|
515
|
+
provider_continuations?: {
|
|
516
|
+
kind: string;
|
|
517
|
+
schema_version: 2;
|
|
518
|
+
producer: {
|
|
519
|
+
model_id: string;
|
|
520
|
+
endpoint_id: string;
|
|
521
|
+
api_surface: string;
|
|
522
|
+
capability_id: string;
|
|
523
|
+
endpoint_model_id: string;
|
|
524
|
+
};
|
|
525
|
+
payload: SerializableJsonValue;
|
|
526
|
+
}[] | undefined;
|
|
527
|
+
}>, z.ZodObject<{
|
|
528
|
+
type: z.ZodLiteral<"tool_call">;
|
|
529
|
+
tool_call_id: z.ZodString;
|
|
530
|
+
provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
531
|
+
schema_version: z.ZodLiteral<2>;
|
|
532
|
+
producer: z.ZodObject<{
|
|
533
|
+
model_id: z.ZodString;
|
|
534
|
+
endpoint_id: z.ZodString;
|
|
535
|
+
api_surface: z.ZodString;
|
|
536
|
+
capability_id: z.ZodString;
|
|
537
|
+
endpoint_model_id: z.ZodString;
|
|
538
|
+
}, "strict", z.ZodTypeAny, {
|
|
539
|
+
model_id: string;
|
|
540
|
+
endpoint_id: string;
|
|
541
|
+
api_surface: string;
|
|
542
|
+
capability_id: string;
|
|
543
|
+
endpoint_model_id: string;
|
|
544
|
+
}, {
|
|
545
|
+
model_id: string;
|
|
546
|
+
endpoint_id: string;
|
|
547
|
+
api_surface: string;
|
|
548
|
+
capability_id: string;
|
|
549
|
+
endpoint_model_id: string;
|
|
550
|
+
}>;
|
|
551
|
+
kind: z.ZodString;
|
|
552
|
+
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
553
|
+
}, "strict", z.ZodTypeAny, {
|
|
554
|
+
kind: string;
|
|
555
|
+
schema_version: 2;
|
|
556
|
+
producer: {
|
|
557
|
+
model_id: string;
|
|
558
|
+
endpoint_id: string;
|
|
559
|
+
api_surface: string;
|
|
560
|
+
capability_id: string;
|
|
561
|
+
endpoint_model_id: string;
|
|
562
|
+
};
|
|
563
|
+
payload: SerializableJsonValue;
|
|
564
|
+
}, {
|
|
565
|
+
kind: string;
|
|
566
|
+
schema_version: 2;
|
|
567
|
+
producer: {
|
|
568
|
+
model_id: string;
|
|
569
|
+
endpoint_id: string;
|
|
570
|
+
api_surface: string;
|
|
571
|
+
capability_id: string;
|
|
572
|
+
endpoint_model_id: string;
|
|
573
|
+
};
|
|
574
|
+
payload: SerializableJsonValue;
|
|
575
|
+
}>, "many">>;
|
|
576
|
+
}, "strict", z.ZodTypeAny, {
|
|
577
|
+
type: "tool_call";
|
|
578
|
+
tool_call_id: string;
|
|
579
|
+
provider_continuations?: {
|
|
580
|
+
kind: string;
|
|
581
|
+
schema_version: 2;
|
|
582
|
+
producer: {
|
|
583
|
+
model_id: string;
|
|
584
|
+
endpoint_id: string;
|
|
585
|
+
api_surface: string;
|
|
586
|
+
capability_id: string;
|
|
587
|
+
endpoint_model_id: string;
|
|
588
|
+
};
|
|
589
|
+
payload: SerializableJsonValue;
|
|
590
|
+
}[] | undefined;
|
|
591
|
+
}, {
|
|
592
|
+
type: "tool_call";
|
|
593
|
+
tool_call_id: string;
|
|
594
|
+
provider_continuations?: {
|
|
595
|
+
kind: string;
|
|
596
|
+
schema_version: 2;
|
|
597
|
+
producer: {
|
|
598
|
+
model_id: string;
|
|
599
|
+
endpoint_id: string;
|
|
600
|
+
api_surface: string;
|
|
601
|
+
capability_id: string;
|
|
602
|
+
endpoint_model_id: string;
|
|
603
|
+
};
|
|
604
|
+
payload: SerializableJsonValue;
|
|
605
|
+
}[] | undefined;
|
|
606
|
+
}>]>, "many">;
|
|
607
|
+
type AssistantReplayParts = z.infer<typeof AssistantReplayParts>;
|
|
608
|
+
|
|
609
|
+
export { AssistantReplayPart, AssistantReplayParts, ProviderContinuation, ProviderContinuationProducer, ProviderContinuations };
|