@linnlabs/linnkit 0.31.0 → 0.32.0
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/cli.cjs +41 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +41 -2
- package/dist/cli.js.map +1 -1
- package/dist/context-manager.cjs +29 -0
- package/dist/context-manager.cjs.map +1 -1
- package/dist/context-manager.js +29 -0
- package/dist/context-manager.js.map +1 -1
- package/dist/{defaultGraphExecutor-CO3ztZdG.d.cts → defaultGraphExecutor-Chr16eYO.d.cts} +10 -1
- package/dist/{defaultGraphExecutor-B2kGX0iA.d.ts → defaultGraphExecutor-hT7dchpC.d.ts} +10 -1
- package/dist/{index-CZtZq3T1.d.cts → index-C2PSqU1I.d.cts} +8 -3
- package/dist/{index-CMUnmxhM.d.ts → index-CZMXtw4h.d.ts} +8 -3
- package/dist/index.cjs +41 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +41 -2
- package/dist/index.js.map +1 -1
- package/dist/quickstart.cjs +41 -2
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +41 -2
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel.cjs +41 -2
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.d.cts +2 -2
- package/dist/runtime-kernel.d.ts +2 -2
- package/dist/runtime-kernel.js +41 -2
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +41 -2
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.d.cts +2 -2
- package/dist/testkit.d.ts +2 -2
- package/dist/testkit.js +41 -2
- package/dist/testkit.js.map +1 -1
- package/docs/integration/host-originated-tools.md +9 -0
- package/package.json +2 -2
|
@@ -205,6 +205,8 @@ interface ModelCatalogLike {
|
|
|
205
205
|
declare function createFixedChatModelCatalog(modelId: string): ModelCatalogLike;
|
|
206
206
|
|
|
207
207
|
type ExecutorLlmInvocationKind = 'user_initiated' | 'continuation';
|
|
208
|
+
/** 工具批次全部结算后的 Graph 路由策略;缺省继续交还 LLM。 */
|
|
209
|
+
type ToolBatchCompletionMode = 'continue_to_llm' | 'yield_after_batch';
|
|
208
210
|
interface ExecutorLocalState {
|
|
209
211
|
stepCount: number;
|
|
210
212
|
phase?: 'running' | 'force_final_answer' | 'force_tools' | string;
|
|
@@ -262,6 +264,13 @@ interface EngineLocalState extends Record<string, unknown> {
|
|
|
262
264
|
newEvents?: RuntimeEvent[];
|
|
263
265
|
executorLocal?: ExecutorLocalState;
|
|
264
266
|
pendingToolCalls?: StandardToolCall[];
|
|
267
|
+
/**
|
|
268
|
+
* 当前工具批次全部产生 terminal tool_output 后的执行策略。
|
|
269
|
+
*
|
|
270
|
+
* Host 确定工具结果本身就是调用结果时,可选择 yield_after_batch;普通 Agent
|
|
271
|
+
* 调用保持缺省行为,由 LLM 继续消费工具结果。该策略不改变工具自身的 control。
|
|
272
|
+
*/
|
|
273
|
+
toolBatchCompletionMode?: ToolBatchCompletionMode;
|
|
265
274
|
pendingInteractionSpec?: Record<string, unknown>;
|
|
266
275
|
lastToolResult?: Record<string, unknown>;
|
|
267
276
|
finalAnswer?: string;
|
|
@@ -902,4 +911,4 @@ interface DefaultGraphExecutorOptions {
|
|
|
902
911
|
}
|
|
903
912
|
declare function createDefaultGraphExecutor(options: DefaultGraphExecutorOptions): GraphExecutor;
|
|
904
913
|
|
|
905
|
-
export { type
|
|
914
|
+
export { type RunRegistrationSpec as $, type LLMPolicy as A, type LLMPolicyMatchContext as B, type Checkpointer as C, type LLMPolicyErrorDecision as D, type ExecutorLocalState as E, type LlmCallInvocationContext as F, type GraphNode as G, type LlmFallbackObserver as H, type ModelFallbackAppliedInfo as I, type ModelFallbackPolicy as J, type ModelFallbackRejectedInfo as K, type LlmCallTelemetry as L, type ModelCatalogEntry as M, type NodeResult as N, ModelResolver as O, createFixedChatModelCatalog as P, DefaultRunSupervisor as Q, type RuntimeEventCommitPort as R, type StandardToolCall as S, type TelemetryPort as T, type DefaultRunSupervisorOptions as U, type FindActiveByConversationOptions as V, type FindRunsByConversationOptions as W, MemoryRunRegistryStore as X, type RunExecutionContext as Y, type RunExecutorPort as Z, type RunOutcome as _, type ModelCatalogLike as a, type RunResumeClaim as a0, type RunResumeInteraction as a1, type RunSnapshot as a2, type RunSupervisor as a3, type RunTerminalError as a4, type RunTerminalEvent as a5, type RunTerminalStatus as a6, type RunWaitForTerminalOptions as a7, type ContextCompactionSuppressedReason as a8, type ContextCompactionTelemetryOutcome as a9, TELEMETRY_EVENT_KINDS as aa, type TelemetryEvent as ab, type TelemetryScope as ac, type DefaultGraphExecutorOptions as ad, type GraphLoopHarness as ae, type GraphLoopHarnessOptions as af, type GraphLoopHarnessRunResult as ag, type GraphLoopLlmNodeFactoryParams as ah, createDefaultGraphExecutor as ai, createGraphLoopHarness as aj, type ExecutorLocalPatch as b, type ModelResolverLike as c, LlmCaller as d, type EngineState as e, type CheckpointMeta as f, type CheckpointListFilter as g, type CheckpointSummary as h, type ToolBatchCompletionMode as i, type EngineLocalState as j, type RuntimeFailureFact as k, ENGINE_STATE_SCHEMA_VERSION as l, type ExecutorLlmInvocationKind as m, GraphExecutor as n, MemoryEventStore as o, type RuntimeEventSink as p, type RuntimeFailureFactSink as q, type ToolContextPatch as r, summarizeCheckpoint as s, copyToolContextRuntimeCapability as t, ensureToolContextRuntimeCapability as u, getToolContextRuntimeBinding as v, withLLMTelemetryContext as w, readToolContextPersistedHistory as x, readToolContextWorkingHistory as y, stripRuntimeReservedToolContextPatch as z };
|
|
@@ -205,6 +205,8 @@ interface ModelCatalogLike {
|
|
|
205
205
|
declare function createFixedChatModelCatalog(modelId: string): ModelCatalogLike;
|
|
206
206
|
|
|
207
207
|
type ExecutorLlmInvocationKind = 'user_initiated' | 'continuation';
|
|
208
|
+
/** 工具批次全部结算后的 Graph 路由策略;缺省继续交还 LLM。 */
|
|
209
|
+
type ToolBatchCompletionMode = 'continue_to_llm' | 'yield_after_batch';
|
|
208
210
|
interface ExecutorLocalState {
|
|
209
211
|
stepCount: number;
|
|
210
212
|
phase?: 'running' | 'force_final_answer' | 'force_tools' | string;
|
|
@@ -262,6 +264,13 @@ interface EngineLocalState extends Record<string, unknown> {
|
|
|
262
264
|
newEvents?: RuntimeEvent[];
|
|
263
265
|
executorLocal?: ExecutorLocalState;
|
|
264
266
|
pendingToolCalls?: StandardToolCall[];
|
|
267
|
+
/**
|
|
268
|
+
* 当前工具批次全部产生 terminal tool_output 后的执行策略。
|
|
269
|
+
*
|
|
270
|
+
* Host 确定工具结果本身就是调用结果时,可选择 yield_after_batch;普通 Agent
|
|
271
|
+
* 调用保持缺省行为,由 LLM 继续消费工具结果。该策略不改变工具自身的 control。
|
|
272
|
+
*/
|
|
273
|
+
toolBatchCompletionMode?: ToolBatchCompletionMode;
|
|
265
274
|
pendingInteractionSpec?: Record<string, unknown>;
|
|
266
275
|
lastToolResult?: Record<string, unknown>;
|
|
267
276
|
finalAnswer?: string;
|
|
@@ -902,4 +911,4 @@ interface DefaultGraphExecutorOptions {
|
|
|
902
911
|
}
|
|
903
912
|
declare function createDefaultGraphExecutor(options: DefaultGraphExecutorOptions): GraphExecutor;
|
|
904
913
|
|
|
905
|
-
export { type
|
|
914
|
+
export { type RunRegistrationSpec as $, type LLMPolicy as A, type LLMPolicyMatchContext as B, type Checkpointer as C, type LLMPolicyErrorDecision as D, type ExecutorLocalState as E, type LlmCallInvocationContext as F, type GraphNode as G, type LlmFallbackObserver as H, type ModelFallbackAppliedInfo as I, type ModelFallbackPolicy as J, type ModelFallbackRejectedInfo as K, type LlmCallTelemetry as L, type ModelCatalogEntry as M, type NodeResult as N, ModelResolver as O, createFixedChatModelCatalog as P, DefaultRunSupervisor as Q, type RuntimeEventCommitPort as R, type StandardToolCall as S, type TelemetryPort as T, type DefaultRunSupervisorOptions as U, type FindActiveByConversationOptions as V, type FindRunsByConversationOptions as W, MemoryRunRegistryStore as X, type RunExecutionContext as Y, type RunExecutorPort as Z, type RunOutcome as _, type ModelCatalogLike as a, type RunResumeClaim as a0, type RunResumeInteraction as a1, type RunSnapshot as a2, type RunSupervisor as a3, type RunTerminalError as a4, type RunTerminalEvent as a5, type RunTerminalStatus as a6, type RunWaitForTerminalOptions as a7, type ContextCompactionSuppressedReason as a8, type ContextCompactionTelemetryOutcome as a9, TELEMETRY_EVENT_KINDS as aa, type TelemetryEvent as ab, type TelemetryScope as ac, type DefaultGraphExecutorOptions as ad, type GraphLoopHarness as ae, type GraphLoopHarnessOptions as af, type GraphLoopHarnessRunResult as ag, type GraphLoopLlmNodeFactoryParams as ah, createDefaultGraphExecutor as ai, createGraphLoopHarness as aj, type ExecutorLocalPatch as b, type ModelResolverLike as c, LlmCaller as d, type EngineState as e, type CheckpointMeta as f, type CheckpointListFilter as g, type CheckpointSummary as h, type ToolBatchCompletionMode as i, type EngineLocalState as j, type RuntimeFailureFact as k, ENGINE_STATE_SCHEMA_VERSION as l, type ExecutorLlmInvocationKind as m, GraphExecutor as n, MemoryEventStore as o, type RuntimeEventSink as p, type RuntimeFailureFactSink as q, type ToolContextPatch as r, summarizeCheckpoint as s, copyToolContextRuntimeCapability as t, ensureToolContextRuntimeCapability as u, getToolContextRuntimeBinding as v, withLLMTelemetryContext as w, readToolContextPersistedHistory as x, readToolContextWorkingHistory as y, stripRuntimeReservedToolContextPatch as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as ModelCatalogEntry, a as ModelCatalogLike, E as ExecutorLocalState, R as RuntimeEventCommitPort, S as StandardToolCall, b as ExecutorLocalPatch, c as ModelResolverLike, d as LlmCaller, T as TelemetryPort, G as GraphNode, e as EngineState, N as NodeResult, C as Checkpointer, f as CheckpointMeta, g as CheckpointListFilter, h as CheckpointSummary, i as
|
|
1
|
+
import { M as ModelCatalogEntry, a as ModelCatalogLike, E as ExecutorLocalState, R as RuntimeEventCommitPort, S as StandardToolCall, b as ExecutorLocalPatch, c as ModelResolverLike, d as LlmCaller, T as TelemetryPort, G as GraphNode, e as EngineState, N as NodeResult, C as Checkpointer, f as CheckpointMeta, g as CheckpointListFilter, h as CheckpointSummary, i as ToolBatchCompletionMode, j as EngineLocalState, k as RuntimeFailureFact, l as ENGINE_STATE_SCHEMA_VERSION, m as ExecutorLlmInvocationKind, n as GraphExecutor, o as MemoryEventStore, p as RuntimeEventSink, q as RuntimeFailureFactSink, s as summarizeCheckpoint, r as ToolContextPatch, t as copyToolContextRuntimeCapability, u as ensureToolContextRuntimeCapability, v as getToolContextRuntimeBinding, x as readToolContextPersistedHistory, y as readToolContextWorkingHistory, z as stripRuntimeReservedToolContextPatch, A as LLMPolicy, B as LLMPolicyMatchContext, D as LLMPolicyErrorDecision, F as LlmCallInvocationContext, H as LlmFallbackObserver, I as ModelFallbackAppliedInfo, J as ModelFallbackPolicy, K as ModelFallbackRejectedInfo, O as ModelResolver, P as createFixedChatModelCatalog, Q as DefaultRunSupervisor, U as DefaultRunSupervisorOptions, V as FindActiveByConversationOptions, W as FindRunsByConversationOptions, X as MemoryRunRegistryStore, Y as RunExecutionContext, Z as RunExecutorPort, _ as RunOutcome, $ as RunRegistrationSpec, a0 as RunResumeClaim, a1 as RunResumeInteraction, a2 as RunSnapshot, a3 as RunSupervisor, a4 as RunTerminalError, a5 as RunTerminalEvent, a6 as RunTerminalStatus, a7 as RunWaitForTerminalOptions, a8 as ContextCompactionSuppressedReason, a9 as ContextCompactionTelemetryOutcome, aa as TELEMETRY_EVENT_KINDS, ab as TelemetryEvent, ac as TelemetryScope, ad as DefaultGraphExecutorOptions, ae as GraphLoopHarness, af as GraphLoopHarnessOptions, ag as GraphLoopHarnessRunResult, ah as GraphLoopLlmNodeFactoryParams, ai as createDefaultGraphExecutor, aj as createGraphLoopHarness } from './defaultGraphExecutor-Chr16eYO.cjs';
|
|
2
2
|
import { P as PromptUsageMeasurementPolicy, c as ContextUsageSnapshot, T as TokenRoute, a as TokenCountSource, b as TokenCountConfidence, M as ModelReasoningConfig, R as REASONING_EFFORTS, d as ReasoningEffort, i as isValidReasoningEffort, r as resolveEffectiveEffort, C as CanonicalLlmUsage } from './reasoning-bffu9R2B.cjs';
|
|
3
3
|
import { A as AuditPort } from './audit-C9LPbPib.cjs';
|
|
4
4
|
import { T as TokenCounterPort } from './token-counter-DiGIoaq2.cjs';
|
|
@@ -365,12 +365,15 @@ interface HostToolCallBootstrapInput {
|
|
|
365
365
|
readonly metadata?: SerializableJsonRecord;
|
|
366
366
|
readonly decisionMeta?: SerializableJsonRecord;
|
|
367
367
|
readonly parentToolCallId?: string;
|
|
368
|
+
/** 工具批次完成后继续交还 LLM,或直接把执行权交还 Host。 */
|
|
369
|
+
readonly completionMode?: ToolBatchCompletionMode;
|
|
368
370
|
}
|
|
369
371
|
interface HostToolCallBootstrapLocalPatch {
|
|
370
372
|
readonly conversationId: string;
|
|
371
373
|
readonly turnId: string;
|
|
372
374
|
readonly history: RuntimeEvent[];
|
|
373
375
|
readonly pendingToolCalls: StandardToolCall[];
|
|
376
|
+
readonly toolBatchCompletionMode?: ToolBatchCompletionMode;
|
|
374
377
|
}
|
|
375
378
|
interface HostToolCallBootstrap {
|
|
376
379
|
readonly nodeId: 'tool';
|
|
@@ -480,6 +483,7 @@ declare const index$d_RuntimeEventCommitPort: typeof RuntimeEventCommitPort;
|
|
|
480
483
|
declare const index$d_RuntimeEventSink: typeof RuntimeEventSink;
|
|
481
484
|
declare const index$d_RuntimeFailureFact: typeof RuntimeFailureFact;
|
|
482
485
|
declare const index$d_RuntimeFailureFactSink: typeof RuntimeFailureFactSink;
|
|
486
|
+
declare const index$d_ToolBatchCompletionMode: typeof ToolBatchCompletionMode;
|
|
483
487
|
type index$d_ToolNode = ToolNode;
|
|
484
488
|
declare const index$d_ToolNode: typeof ToolNode;
|
|
485
489
|
type index$d_UserNode = UserNode;
|
|
@@ -495,7 +499,7 @@ declare const index$d_requireEventStoreId: typeof requireEventStoreId;
|
|
|
495
499
|
declare const index$d_resolveEffectivePromptBudget: typeof resolveEffectivePromptBudget;
|
|
496
500
|
declare const index$d_summarizeCheckpoint: typeof summarizeCheckpoint;
|
|
497
501
|
declare namespace index$d {
|
|
498
|
-
export { index$d_CheckpointListFilter as CheckpointListFilter, index$d_CheckpointMeta as CheckpointMeta, index$d_CheckpointSummary as CheckpointSummary, index$d_Checkpointer as Checkpointer, index$d_ENGINE_STATE_SCHEMA_VERSION as ENGINE_STATE_SCHEMA_VERSION, index$d_EffectivePromptBudget as EffectivePromptBudget, index$d_EngineState as EngineState, index$d_EventRangeOptions as EventRangeOptions, index$d_EventStore as EventStore, index$d_ExecutorLlmInvocationKind as ExecutorLlmInvocationKind, index$d_ExecutorLocalPatch as ExecutorLocalPatch, index$d_ExecutorLocalState as ExecutorLocalState, index$d_GraphAgentExecutor as GraphAgentExecutor, type index$d_GraphAgentExecutorDependencies as GraphAgentExecutorDependencies, type index$d_GraphContextCompactionCandidate as GraphContextCompactionCandidate, index$d_GraphExecutor as GraphExecutor, type index$d_GraphExecutorContextApplyInput as GraphExecutorContextApplyInput, type index$d_GraphExecutorContextApplyOutput as GraphExecutorContextApplyOutput, type index$d_GraphExecutorContextBuildInput as GraphExecutorContextBuildInput, type index$d_GraphExecutorContextBuildOutput as GraphExecutorContextBuildOutput, type index$d_GraphExecutorContextBuilder as GraphExecutorContextBuilder, type index$d_GraphExecutorOutputProcessor as GraphExecutorOutputProcessor, index$d_GraphNode as GraphNode, type index$d_HostToolCallBootstrap as HostToolCallBootstrap, type index$d_HostToolCallBootstrapInput as HostToolCallBootstrapInput, type index$d_HostToolCallBootstrapLocalPatch as HostToolCallBootstrapLocalPatch, index$d_LlmNode as LlmNode, index$d_MemoryCheckpointer as MemoryCheckpointer, index$d_MemoryEventStore as MemoryEventStore, index$d_PRIMARY_PROMPT_CAPACITY_ERROR_CODE as PRIMARY_PROMPT_CAPACITY_ERROR_CODE, index$d_PersistedEvent as PersistedEvent, type index$d_PrimaryPromptCapacityAdmission as PrimaryPromptCapacityAdmission, index$d_PrimaryPromptCapacityError as PrimaryPromptCapacityError, type index$d_PrimaryPromptCapacityErrorMetadata as PrimaryPromptCapacityErrorMetadata, index$d_ResolveEffectivePromptBudgetInput as ResolveEffectivePromptBudgetInput, index$d_RuntimeEventCommitPort as RuntimeEventCommitPort, index$d_RuntimeEventSink as RuntimeEventSink, index$d_RuntimeFailureFact as RuntimeFailureFact, index$d_RuntimeFailureFactSink as RuntimeFailureFactSink, index$d_ToolNode as ToolNode, index$d_UserNode as UserNode, index$d_WaitUserNode as WaitUserNode, index$d_createHostToolCallBootstrap as createHostToolCallBootstrap, index$d_createMonotonicEventStoreIdFactory as createMonotonicEventStoreIdFactory, index$d_evaluatePrimaryPromptCapacity as evaluatePrimaryPromptCapacity, index$d_isRuntimeFailureFact as isRuntimeFailureFact, index$d_readCheckpointContextUsage as readCheckpointContextUsage, index$d_requireEventStoreId as requireEventStoreId, index$d_resolveEffectivePromptBudget as resolveEffectivePromptBudget, index$d_summarizeCheckpoint as summarizeCheckpoint };
|
|
502
|
+
export { index$d_CheckpointListFilter as CheckpointListFilter, index$d_CheckpointMeta as CheckpointMeta, index$d_CheckpointSummary as CheckpointSummary, index$d_Checkpointer as Checkpointer, index$d_ENGINE_STATE_SCHEMA_VERSION as ENGINE_STATE_SCHEMA_VERSION, index$d_EffectivePromptBudget as EffectivePromptBudget, index$d_EngineState as EngineState, index$d_EventRangeOptions as EventRangeOptions, index$d_EventStore as EventStore, index$d_ExecutorLlmInvocationKind as ExecutorLlmInvocationKind, index$d_ExecutorLocalPatch as ExecutorLocalPatch, index$d_ExecutorLocalState as ExecutorLocalState, index$d_GraphAgentExecutor as GraphAgentExecutor, type index$d_GraphAgentExecutorDependencies as GraphAgentExecutorDependencies, type index$d_GraphContextCompactionCandidate as GraphContextCompactionCandidate, index$d_GraphExecutor as GraphExecutor, type index$d_GraphExecutorContextApplyInput as GraphExecutorContextApplyInput, type index$d_GraphExecutorContextApplyOutput as GraphExecutorContextApplyOutput, type index$d_GraphExecutorContextBuildInput as GraphExecutorContextBuildInput, type index$d_GraphExecutorContextBuildOutput as GraphExecutorContextBuildOutput, type index$d_GraphExecutorContextBuilder as GraphExecutorContextBuilder, type index$d_GraphExecutorOutputProcessor as GraphExecutorOutputProcessor, index$d_GraphNode as GraphNode, type index$d_HostToolCallBootstrap as HostToolCallBootstrap, type index$d_HostToolCallBootstrapInput as HostToolCallBootstrapInput, type index$d_HostToolCallBootstrapLocalPatch as HostToolCallBootstrapLocalPatch, index$d_LlmNode as LlmNode, index$d_MemoryCheckpointer as MemoryCheckpointer, index$d_MemoryEventStore as MemoryEventStore, index$d_PRIMARY_PROMPT_CAPACITY_ERROR_CODE as PRIMARY_PROMPT_CAPACITY_ERROR_CODE, index$d_PersistedEvent as PersistedEvent, type index$d_PrimaryPromptCapacityAdmission as PrimaryPromptCapacityAdmission, index$d_PrimaryPromptCapacityError as PrimaryPromptCapacityError, type index$d_PrimaryPromptCapacityErrorMetadata as PrimaryPromptCapacityErrorMetadata, index$d_ResolveEffectivePromptBudgetInput as ResolveEffectivePromptBudgetInput, index$d_RuntimeEventCommitPort as RuntimeEventCommitPort, index$d_RuntimeEventSink as RuntimeEventSink, index$d_RuntimeFailureFact as RuntimeFailureFact, index$d_RuntimeFailureFactSink as RuntimeFailureFactSink, index$d_ToolBatchCompletionMode as ToolBatchCompletionMode, index$d_ToolNode as ToolNode, index$d_UserNode as UserNode, index$d_WaitUserNode as WaitUserNode, index$d_createHostToolCallBootstrap as createHostToolCallBootstrap, index$d_createMonotonicEventStoreIdFactory as createMonotonicEventStoreIdFactory, index$d_evaluatePrimaryPromptCapacity as evaluatePrimaryPromptCapacity, index$d_isRuntimeFailureFact as isRuntimeFailureFact, index$d_readCheckpointContextUsage as readCheckpointContextUsage, index$d_requireEventStoreId as requireEventStoreId, index$d_resolveEffectivePromptBudget as resolveEffectivePromptBudget, index$d_summarizeCheckpoint as summarizeCheckpoint };
|
|
499
503
|
}
|
|
500
504
|
|
|
501
505
|
type UnknownRecord = Record<string, unknown>;
|
|
@@ -1853,6 +1857,7 @@ type index_SystemReminderRule = SystemReminderRule;
|
|
|
1853
1857
|
type index_SystemReminderRuleDefinition = SystemReminderRuleDefinition;
|
|
1854
1858
|
type index_SystemReminderTriggerEvaluator = SystemReminderTriggerEvaluator;
|
|
1855
1859
|
declare const index_ToolArgs: typeof ToolArgs;
|
|
1860
|
+
declare const index_ToolBatchCompletionMode: typeof ToolBatchCompletionMode;
|
|
1856
1861
|
declare const index_ToolCall: typeof ToolCall;
|
|
1857
1862
|
declare const index_ToolCallResult: typeof ToolCallResult;
|
|
1858
1863
|
declare const index_ToolCallStreamingPolicy: typeof ToolCallStreamingPolicy;
|
|
@@ -1960,7 +1965,7 @@ declare const index_toDisplayStep: typeof toDisplayStep;
|
|
|
1960
1965
|
declare const index_toolCallStreakTemplate: typeof toolCallStreakTemplate;
|
|
1961
1966
|
declare const index_toolCallStreakTrigger: typeof toolCallStreakTrigger;
|
|
1962
1967
|
declare namespace index {
|
|
1963
|
-
export { index_AdapterInputSupport as AdapterInputSupport, index_AgentTool as AgentTool, index_AuditEnvelopePersistenceError as AuditEnvelopePersistenceError, index_BUILTIN_SYSTEM_REMINDER_TEMPLATES as BUILTIN_SYSTEM_REMINDER_TEMPLATES, index_BUILTIN_SYSTEM_REMINDER_TRIGGERS as BUILTIN_SYSTEM_REMINDER_TRIGGERS, index_BaseTool as BaseTool, type index_CanonicalInferenceStreamState as CanonicalInferenceStreamState, type index_CanonicalInferenceTerminal as CanonicalInferenceTerminal, index_CheckpointListFilter as CheckpointListFilter, index_CheckpointMeta as CheckpointMeta, index_CheckpointSummary as CheckpointSummary, index_Checkpointer as Checkpointer, index_ChildRunParentTraceProjection as ChildRunParentTraceProjection, type index_ChildRunParentTraceProjectionOptions as ChildRunParentTraceProjectionOptions, index_CommonParameterTypes as CommonParameterTypes, index_CompleteToolModelInputParams as CompleteToolModelInputParams, type index_CompositeAuditOptions as CompositeAuditOptions, index_CompositeAuditPort as CompositeAuditPort, type index_ConsoleAuditOptions as ConsoleAuditOptions, type index_CreateContextComponentLedgerEntryInput as CreateContextComponentLedgerEntryInput, type index_CreateLlmUsageLedgerEntryInput as CreateLlmUsageLedgerEntryInput, index_DefaultGraphExecutorOptions as DefaultGraphExecutorOptions, index_DefaultTokenizerPort as DefaultTokenizerPort, type index_DefaultTokenizerPortConfig as DefaultTokenizerPortConfig, index_EMPTY_MODEL_INPUT_REQUIREMENT as EMPTY_MODEL_INPUT_REQUIREMENT, index_ENGINE_ERROR_CODES as ENGINE_ERROR_CODES, index_ENGINE_STATE_SCHEMA_VERSION as ENGINE_STATE_SCHEMA_VERSION, index_EffectivePromptBudget as EffectivePromptBudget, type index_EmitAuditEnvelopeParams as EmitAuditEnvelopeParams, index_EngineState as EngineState, type index_EnrichmentContext as EnrichmentContext, type index_EnrichmentResult as EnrichmentResult, type index_ErrorClassification as ErrorClassification, index_EventRangeOptions as EventRangeOptions, index_EventStore as EventStore, type index_EventStoreAuditOptions as EventStoreAuditOptions, index_EventStoreAuditPort as EventStoreAuditPort, index_ExecutorLlmInvocationKind as ExecutorLlmInvocationKind, index_ExecutorLocalPatch as ExecutorLocalPatch, index_ExecutorLocalState as ExecutorLocalState, type index_FileAuditOptions as FileAuditOptions, index_FileAuditPort as FileAuditPort, index_FunctionToolSchema as FunctionToolSchema, index_GraphAgentExecutor as GraphAgentExecutor, type index_GraphAgentExecutorDependencies as GraphAgentExecutorDependencies, type index_GraphContextCompactionCandidate as GraphContextCompactionCandidate, index_GraphExecutor as GraphExecutor, type index_GraphExecutorContextApplyInput as GraphExecutorContextApplyInput, type index_GraphExecutorContextApplyOutput as GraphExecutorContextApplyOutput, type index_GraphExecutorContextBuildInput as GraphExecutorContextBuildInput, type index_GraphExecutorContextBuildOutput as GraphExecutorContextBuildOutput, type index_GraphExecutorContextBuilder as GraphExecutorContextBuilder, type index_GraphExecutorOutputProcessor as GraphExecutorOutputProcessor, index_GraphLoopHarness as GraphLoopHarness, index_GraphLoopHarnessOptions as GraphLoopHarnessOptions, index_GraphLoopHarnessRunResult as GraphLoopHarnessRunResult, index_GraphLoopLlmNodeFactoryParams as GraphLoopLlmNodeFactoryParams, index_GraphNode as GraphNode, type index_HostToolCallBootstrap as HostToolCallBootstrap, type index_HostToolCallBootstrapInput as HostToolCallBootstrapInput, type index_HostToolCallBootstrapLocalPatch as HostToolCallBootstrapLocalPatch, index_INITIAL_CANONICAL_INFERENCE_STREAM_STATE as INITIAL_CANONICAL_INFERENCE_STREAM_STATE, index_JsonSchemaValue as JsonSchemaValue, index_LLMPolicy as LLMPolicy, index_LLMPolicyEngine as LLMPolicyEngine, index_LLMPolicyErrorDecision as LLMPolicyErrorDecision, index_LLMPolicyMatchContext as LLMPolicyMatchContext, index_LLM_IMAGE_INPUT_ERROR_CODES as LLM_IMAGE_INPUT_ERROR_CODES, index_LLM_MODEL_ELIGIBILITY_ERROR_CODE as LLM_MODEL_ELIGIBILITY_ERROR_CODE, index_LlmCallInvocationContext as LlmCallInvocationContext, index_LlmCallOptions as LlmCallOptions, index_LlmCaller as LlmCaller, index_LlmFallbackObserver as LlmFallbackObserver, index_LlmImageInputError as LlmImageInputError, type index_LlmImageInputErrorCode as LlmImageInputErrorCode, type index_LlmImageInputErrorMetadata as LlmImageInputErrorMetadata, type index_LlmImageInputLimitKind as LlmImageInputLimitKind, index_LlmModelEligibilityError as LlmModelEligibilityError, index_LlmNode as LlmNode, index_LlmRequestMessage as LlmRequestMessage, index_LlmRetryConfig as LlmRetryConfig, index_MODEL_INPUT_ERROR_CODES as MODEL_INPUT_ERROR_CODES, index_MODEL_INPUT_PLACEMENTS as MODEL_INPUT_PLACEMENTS, index_MemoryCheckpointer as MemoryCheckpointer, index_MemoryEventStore as MemoryEventStore, index_ModelCatalogEntry as ModelCatalogEntry, index_ModelCatalogLike as ModelCatalogLike, index_ModelFallbackAppliedInfo as ModelFallbackAppliedInfo, index_ModelFallbackPolicy as ModelFallbackPolicy, index_ModelFallbackRejectedInfo as ModelFallbackRejectedInfo, index_ModelInputCapabilityError as ModelInputCapabilityError, index_ModelInputCompatibility as ModelInputCompatibility, type index_ModelInputErrorCode as ModelInputErrorCode, type index_ModelInputErrorMetadata as ModelInputErrorMetadata, index_ModelInputIncompatibilityReason as ModelInputIncompatibilityReason, index_ModelInputPlacement as ModelInputPlacement, index_ModelInputRequirement as ModelInputRequirement, index_ModelReasoningConfig as ModelReasoningConfig, index_ModelResolver as ModelResolver, index_ObservationPreviewContext as ObservationPreviewContext, index_ObservationPreviewMeta as ObservationPreviewMeta, index_ObservationPreviewPort as ObservationPreviewPort, index_ObservationPreviewResult as ObservationPreviewResult, index_PRIMARY_PROMPT_CAPACITY_ERROR_CODE as PRIMARY_PROMPT_CAPACITY_ERROR_CODE, index_PersistedEvent as PersistedEvent, type index_PrimaryPromptCapacityAdmission as PrimaryPromptCapacityAdmission, index_PrimaryPromptCapacityError as PrimaryPromptCapacityError, type index_PrimaryPromptCapacityErrorMetadata as PrimaryPromptCapacityErrorMetadata, index_ProviderContinuation as ProviderContinuation, index_REASONING_EFFORTS as REASONING_EFFORTS, index_ReasoningEffort as ReasoningEffort, type index_RegistryEnrichmentResult as RegistryEnrichmentResult, type index_RequestEnricher as RequestEnricher, index_ResolveEffectivePromptBudgetInput as ResolveEffectivePromptBudgetInput, index_ResolveToolModelInputParams as ResolveToolModelInputParams, index_RuntimeEventCommitPort as RuntimeEventCommitPort, index_RuntimeEventSink as RuntimeEventSink, index_RuntimeEventSubRunTracePublisher as RuntimeEventSubRunTracePublisher, type index_RuntimeEventSubRunTracePublisherOptions as RuntimeEventSubRunTracePublisherOptions, index_RuntimeFailureFact as RuntimeFailureFact, index_RuntimeFailureFactSink as RuntimeFailureFactSink, index_SYSTEM_REMINDER_RULES as SYSTEM_REMINDER_RULES, index_StructuredToolResult as StructuredToolResult, index_SubRunTraceEnvelope as SubRunTraceEnvelope, index_SubRunTracePublisher as SubRunTracePublisher, type index_SystemReminderContentTemplate as SystemReminderContentTemplate, type index_SystemReminderContext as SystemReminderContext, index_SystemReminderRegistry as SystemReminderRegistry, type index_SystemReminderRule as SystemReminderRule, type index_SystemReminderRuleDefinition as SystemReminderRuleDefinition, type index_SystemReminderTriggerEvaluator as SystemReminderTriggerEvaluator, index_ToolArgs as ToolArgs, index_ToolCall as ToolCall, index_ToolCallResult as ToolCallResult, index_ToolCallStreamingPolicy as ToolCallStreamingPolicy, index_ToolCatalogPort as ToolCatalogPort, index_ToolContextConversationView as ToolContextConversationView, index_ToolContextPatch as ToolContextPatch, index_ToolControlInfo as ToolControlInfo, index_ToolExecutionContext as ToolExecutionContext, index_ToolExecutionPort as ToolExecutionPort, index_ToolExecutionResult as ToolExecutionResult, index_ToolModelInputAdmission as ToolModelInputAdmission, index_ToolModelInputAttachmentSelection as ToolModelInputAttachmentSelection, index_ToolModelInputCapabilityValidatorPort as ToolModelInputCapabilityValidatorPort, index_ToolModelInputDeclaration as ToolModelInputDeclaration, type index_ToolModelInputDeclarationValidation as ToolModelInputDeclarationValidation, index_ToolModelInputDelivery as ToolModelInputDelivery, index_ToolModelInputResolutionError as ToolModelInputResolutionError, index_ToolModelInputResolverPort as ToolModelInputResolverPort, index_ToolNode as ToolNode, index_ToolObservationPreviewMeta as ToolObservationPreviewMeta, index_ToolParameterProperty as ToolParameterProperty, index_ToolParameterSchema as ToolParameterSchema, index_ToolParameterSchemaError as ToolParameterSchemaError, index_ToolParameterType as ToolParameterType, index_ToolRegistryEntry as ToolRegistryEntry, index_ToolResult as ToolResult, index_ToolResultImageMedia as ToolResultImageMedia, index_ToolRuntimeDefinition as ToolRuntimeDefinition, index_ToolRuntimePort as ToolRuntimePort, index_ToolSchemaBuildRequest as ToolSchemaBuildRequest, index_UnifiedToolResult as UnifiedToolResult, index_UserNode as UserNode, index_WaitUserNode as WaitUserNode, index_addLedgerAggregate as addLedgerAggregate, index_addUsageTotals as addUsageTotals, index_advanceCanonicalInferenceStreamState as advanceCanonicalInferenceStreamState, index_agentHasToolTrigger as agentHasToolTrigger, index_aggregateCanonicalUsage as aggregateCanonicalUsage, index_aggregateTokenLedgerEntries as aggregateTokenLedgerEntries, index_applySystemReminders as applySystemReminders, index_assertModelInputCompatibility as assertModelInputCompatibility, index_assertToolParameterSchema as assertToolParameterSchema, index$3 as audit, index$7 as childRunTrace, index$8 as childRuns, index_computeCost as computeCost, index_computeToolIdempotencyKey as computeToolIdempotencyKey, index_consoleAudit as consoleAudit, index_consumeCanonicalInferenceStream as consumeCanonicalInferenceStream, index_copyToolContextRuntimeCapability as copyToolContextRuntimeCapability, index_countToolCallsInCurrentRequest as countToolCallsInCurrentRequest, index_createCompositeAudit as createCompositeAudit, index_createConsoleAudit as createConsoleAudit, index_createContextComponentLedgerEntry as createContextComponentLedgerEntry, index_createDefaultGraphExecutor as createDefaultGraphExecutor, index_createDefaultSystemReminderRegistry as createDefaultSystemReminderRegistry, index_createDefaultTokenizerPort as createDefaultTokenizerPort, index_createEventStoreAudit as createEventStoreAudit, index_createFileAudit as createFileAudit, index_createFixedChatModelCatalog as createFixedChatModelCatalog, index_createGraphLoopHarness as createGraphLoopHarness, index_createHostToolCallBootstrap as createHostToolCallBootstrap, index_createLlmUsageLedgerEntry as createLlmUsageLedgerEntry, index_createModelInputCompatibilityError as createModelInputCompatibilityError, index_createMonotonicEventStoreIdFactory as createMonotonicEventStoreIdFactory, index_createRunTokenUsageAggregate as createRunTokenUsageAggregate, index_createSystemReminderRules as createSystemReminderRules, index_defaultPolicyEngine as defaultPolicyEngine, index_defaultSystemReminderRegistry as defaultSystemReminderRegistry, index_deriveModelInputRequirement as deriveModelInputRequirement, index_emitAuditEnvelope as emitAuditEnvelope, index_emitSandboxDecisionAudit as emitSandboxDecisionAudit, index$6 as enrichment, index_ensureToolContextRuntimeCapability as ensureToolContextRuntimeCapability, index_evaluateModelInputCompatibility as evaluateModelInputCompatibility, index_evaluatePrimaryPromptCapacity as evaluatePrimaryPromptCapacity, index$e as events, index$b as execution, index_findCachedToolOutputByIdempotencyKey as findCachedToolOutputByIdempotencyKey, index_getToolContextRuntimeBinding as getToolContextRuntimeBinding, index$d as graph, index_hostReminderTextTemplate as hostReminderTextTemplate, index_isRuntimeFailureFact as isRuntimeFailureFact, index_isValidReasoningEffort as isValidReasoningEffort, index_lastStepsHintTemplate as lastStepsHintTemplate, index_listCompatibleModelIds as listCompatibleModelIds, index$9 as llm, index_maxStepsForceFinalAnswerTemplate as maxStepsForceFinalAnswerTemplate, index_noopAudit as noopAudit, index_normalizeToolArgs as normalizeToolArgs, index_parseToolModelInputDeclaration as parseToolModelInputDeclaration, index_periodicProgressReflectionTemplate as periodicProgressReflectionTemplate, index_phaseEqualsTrigger as phaseEqualsTrigger, index_projectChildRuntimeEventToSubRunTrace as projectChildRuntimeEventToSubRunTrace, index_readCheckpointContextUsage as readCheckpointContextUsage, index_readNonEmptyStrings as readNonEmptyStrings, index_readToolContextPersistedHistory as readToolContextPersistedHistory, index_readToolContextWorkingHistory as readToolContextWorkingHistory, index_remainingStepsLeqTrigger as remainingStepsLeqTrigger, index_requestEnricherRegistry as requestEnricherRegistry, index_requireEventStoreId as requireEventStoreId, index_resolveEffectiveEffort as resolveEffectiveEffort, index_resolveEffectivePromptBudget as resolveEffectivePromptBudget, index_resolveToolModelInput as resolveToolModelInput, index$a as runContext, index$5 as runSupervisor, index_stepCountModuloTrigger as stepCountModuloTrigger, index_stripRuntimeReservedToolContextPatch as stripRuntimeReservedToolContextPatch, index_summarizeCheckpoint as summarizeCheckpoint, index$2 as systemReminder, index$4 as telemetry, index_toDisplayStep as toDisplayStep, index$1 as tokenAccounting, index_toolCallStreakTemplate as toolCallStreakTemplate, index_toolCallStreakTrigger as toolCallStreakTrigger, index$c as tools };
|
|
1968
|
+
export { index_AdapterInputSupport as AdapterInputSupport, index_AgentTool as AgentTool, index_AuditEnvelopePersistenceError as AuditEnvelopePersistenceError, index_BUILTIN_SYSTEM_REMINDER_TEMPLATES as BUILTIN_SYSTEM_REMINDER_TEMPLATES, index_BUILTIN_SYSTEM_REMINDER_TRIGGERS as BUILTIN_SYSTEM_REMINDER_TRIGGERS, index_BaseTool as BaseTool, type index_CanonicalInferenceStreamState as CanonicalInferenceStreamState, type index_CanonicalInferenceTerminal as CanonicalInferenceTerminal, index_CheckpointListFilter as CheckpointListFilter, index_CheckpointMeta as CheckpointMeta, index_CheckpointSummary as CheckpointSummary, index_Checkpointer as Checkpointer, index_ChildRunParentTraceProjection as ChildRunParentTraceProjection, type index_ChildRunParentTraceProjectionOptions as ChildRunParentTraceProjectionOptions, index_CommonParameterTypes as CommonParameterTypes, index_CompleteToolModelInputParams as CompleteToolModelInputParams, type index_CompositeAuditOptions as CompositeAuditOptions, index_CompositeAuditPort as CompositeAuditPort, type index_ConsoleAuditOptions as ConsoleAuditOptions, type index_CreateContextComponentLedgerEntryInput as CreateContextComponentLedgerEntryInput, type index_CreateLlmUsageLedgerEntryInput as CreateLlmUsageLedgerEntryInput, index_DefaultGraphExecutorOptions as DefaultGraphExecutorOptions, index_DefaultTokenizerPort as DefaultTokenizerPort, type index_DefaultTokenizerPortConfig as DefaultTokenizerPortConfig, index_EMPTY_MODEL_INPUT_REQUIREMENT as EMPTY_MODEL_INPUT_REQUIREMENT, index_ENGINE_ERROR_CODES as ENGINE_ERROR_CODES, index_ENGINE_STATE_SCHEMA_VERSION as ENGINE_STATE_SCHEMA_VERSION, index_EffectivePromptBudget as EffectivePromptBudget, type index_EmitAuditEnvelopeParams as EmitAuditEnvelopeParams, index_EngineState as EngineState, type index_EnrichmentContext as EnrichmentContext, type index_EnrichmentResult as EnrichmentResult, type index_ErrorClassification as ErrorClassification, index_EventRangeOptions as EventRangeOptions, index_EventStore as EventStore, type index_EventStoreAuditOptions as EventStoreAuditOptions, index_EventStoreAuditPort as EventStoreAuditPort, index_ExecutorLlmInvocationKind as ExecutorLlmInvocationKind, index_ExecutorLocalPatch as ExecutorLocalPatch, index_ExecutorLocalState as ExecutorLocalState, type index_FileAuditOptions as FileAuditOptions, index_FileAuditPort as FileAuditPort, index_FunctionToolSchema as FunctionToolSchema, index_GraphAgentExecutor as GraphAgentExecutor, type index_GraphAgentExecutorDependencies as GraphAgentExecutorDependencies, type index_GraphContextCompactionCandidate as GraphContextCompactionCandidate, index_GraphExecutor as GraphExecutor, type index_GraphExecutorContextApplyInput as GraphExecutorContextApplyInput, type index_GraphExecutorContextApplyOutput as GraphExecutorContextApplyOutput, type index_GraphExecutorContextBuildInput as GraphExecutorContextBuildInput, type index_GraphExecutorContextBuildOutput as GraphExecutorContextBuildOutput, type index_GraphExecutorContextBuilder as GraphExecutorContextBuilder, type index_GraphExecutorOutputProcessor as GraphExecutorOutputProcessor, index_GraphLoopHarness as GraphLoopHarness, index_GraphLoopHarnessOptions as GraphLoopHarnessOptions, index_GraphLoopHarnessRunResult as GraphLoopHarnessRunResult, index_GraphLoopLlmNodeFactoryParams as GraphLoopLlmNodeFactoryParams, index_GraphNode as GraphNode, type index_HostToolCallBootstrap as HostToolCallBootstrap, type index_HostToolCallBootstrapInput as HostToolCallBootstrapInput, type index_HostToolCallBootstrapLocalPatch as HostToolCallBootstrapLocalPatch, index_INITIAL_CANONICAL_INFERENCE_STREAM_STATE as INITIAL_CANONICAL_INFERENCE_STREAM_STATE, index_JsonSchemaValue as JsonSchemaValue, index_LLMPolicy as LLMPolicy, index_LLMPolicyEngine as LLMPolicyEngine, index_LLMPolicyErrorDecision as LLMPolicyErrorDecision, index_LLMPolicyMatchContext as LLMPolicyMatchContext, index_LLM_IMAGE_INPUT_ERROR_CODES as LLM_IMAGE_INPUT_ERROR_CODES, index_LLM_MODEL_ELIGIBILITY_ERROR_CODE as LLM_MODEL_ELIGIBILITY_ERROR_CODE, index_LlmCallInvocationContext as LlmCallInvocationContext, index_LlmCallOptions as LlmCallOptions, index_LlmCaller as LlmCaller, index_LlmFallbackObserver as LlmFallbackObserver, index_LlmImageInputError as LlmImageInputError, type index_LlmImageInputErrorCode as LlmImageInputErrorCode, type index_LlmImageInputErrorMetadata as LlmImageInputErrorMetadata, type index_LlmImageInputLimitKind as LlmImageInputLimitKind, index_LlmModelEligibilityError as LlmModelEligibilityError, index_LlmNode as LlmNode, index_LlmRequestMessage as LlmRequestMessage, index_LlmRetryConfig as LlmRetryConfig, index_MODEL_INPUT_ERROR_CODES as MODEL_INPUT_ERROR_CODES, index_MODEL_INPUT_PLACEMENTS as MODEL_INPUT_PLACEMENTS, index_MemoryCheckpointer as MemoryCheckpointer, index_MemoryEventStore as MemoryEventStore, index_ModelCatalogEntry as ModelCatalogEntry, index_ModelCatalogLike as ModelCatalogLike, index_ModelFallbackAppliedInfo as ModelFallbackAppliedInfo, index_ModelFallbackPolicy as ModelFallbackPolicy, index_ModelFallbackRejectedInfo as ModelFallbackRejectedInfo, index_ModelInputCapabilityError as ModelInputCapabilityError, index_ModelInputCompatibility as ModelInputCompatibility, type index_ModelInputErrorCode as ModelInputErrorCode, type index_ModelInputErrorMetadata as ModelInputErrorMetadata, index_ModelInputIncompatibilityReason as ModelInputIncompatibilityReason, index_ModelInputPlacement as ModelInputPlacement, index_ModelInputRequirement as ModelInputRequirement, index_ModelReasoningConfig as ModelReasoningConfig, index_ModelResolver as ModelResolver, index_ObservationPreviewContext as ObservationPreviewContext, index_ObservationPreviewMeta as ObservationPreviewMeta, index_ObservationPreviewPort as ObservationPreviewPort, index_ObservationPreviewResult as ObservationPreviewResult, index_PRIMARY_PROMPT_CAPACITY_ERROR_CODE as PRIMARY_PROMPT_CAPACITY_ERROR_CODE, index_PersistedEvent as PersistedEvent, type index_PrimaryPromptCapacityAdmission as PrimaryPromptCapacityAdmission, index_PrimaryPromptCapacityError as PrimaryPromptCapacityError, type index_PrimaryPromptCapacityErrorMetadata as PrimaryPromptCapacityErrorMetadata, index_ProviderContinuation as ProviderContinuation, index_REASONING_EFFORTS as REASONING_EFFORTS, index_ReasoningEffort as ReasoningEffort, type index_RegistryEnrichmentResult as RegistryEnrichmentResult, type index_RequestEnricher as RequestEnricher, index_ResolveEffectivePromptBudgetInput as ResolveEffectivePromptBudgetInput, index_ResolveToolModelInputParams as ResolveToolModelInputParams, index_RuntimeEventCommitPort as RuntimeEventCommitPort, index_RuntimeEventSink as RuntimeEventSink, index_RuntimeEventSubRunTracePublisher as RuntimeEventSubRunTracePublisher, type index_RuntimeEventSubRunTracePublisherOptions as RuntimeEventSubRunTracePublisherOptions, index_RuntimeFailureFact as RuntimeFailureFact, index_RuntimeFailureFactSink as RuntimeFailureFactSink, index_SYSTEM_REMINDER_RULES as SYSTEM_REMINDER_RULES, index_StructuredToolResult as StructuredToolResult, index_SubRunTraceEnvelope as SubRunTraceEnvelope, index_SubRunTracePublisher as SubRunTracePublisher, type index_SystemReminderContentTemplate as SystemReminderContentTemplate, type index_SystemReminderContext as SystemReminderContext, index_SystemReminderRegistry as SystemReminderRegistry, type index_SystemReminderRule as SystemReminderRule, type index_SystemReminderRuleDefinition as SystemReminderRuleDefinition, type index_SystemReminderTriggerEvaluator as SystemReminderTriggerEvaluator, index_ToolArgs as ToolArgs, index_ToolBatchCompletionMode as ToolBatchCompletionMode, index_ToolCall as ToolCall, index_ToolCallResult as ToolCallResult, index_ToolCallStreamingPolicy as ToolCallStreamingPolicy, index_ToolCatalogPort as ToolCatalogPort, index_ToolContextConversationView as ToolContextConversationView, index_ToolContextPatch as ToolContextPatch, index_ToolControlInfo as ToolControlInfo, index_ToolExecutionContext as ToolExecutionContext, index_ToolExecutionPort as ToolExecutionPort, index_ToolExecutionResult as ToolExecutionResult, index_ToolModelInputAdmission as ToolModelInputAdmission, index_ToolModelInputAttachmentSelection as ToolModelInputAttachmentSelection, index_ToolModelInputCapabilityValidatorPort as ToolModelInputCapabilityValidatorPort, index_ToolModelInputDeclaration as ToolModelInputDeclaration, type index_ToolModelInputDeclarationValidation as ToolModelInputDeclarationValidation, index_ToolModelInputDelivery as ToolModelInputDelivery, index_ToolModelInputResolutionError as ToolModelInputResolutionError, index_ToolModelInputResolverPort as ToolModelInputResolverPort, index_ToolNode as ToolNode, index_ToolObservationPreviewMeta as ToolObservationPreviewMeta, index_ToolParameterProperty as ToolParameterProperty, index_ToolParameterSchema as ToolParameterSchema, index_ToolParameterSchemaError as ToolParameterSchemaError, index_ToolParameterType as ToolParameterType, index_ToolRegistryEntry as ToolRegistryEntry, index_ToolResult as ToolResult, index_ToolResultImageMedia as ToolResultImageMedia, index_ToolRuntimeDefinition as ToolRuntimeDefinition, index_ToolRuntimePort as ToolRuntimePort, index_ToolSchemaBuildRequest as ToolSchemaBuildRequest, index_UnifiedToolResult as UnifiedToolResult, index_UserNode as UserNode, index_WaitUserNode as WaitUserNode, index_addLedgerAggregate as addLedgerAggregate, index_addUsageTotals as addUsageTotals, index_advanceCanonicalInferenceStreamState as advanceCanonicalInferenceStreamState, index_agentHasToolTrigger as agentHasToolTrigger, index_aggregateCanonicalUsage as aggregateCanonicalUsage, index_aggregateTokenLedgerEntries as aggregateTokenLedgerEntries, index_applySystemReminders as applySystemReminders, index_assertModelInputCompatibility as assertModelInputCompatibility, index_assertToolParameterSchema as assertToolParameterSchema, index$3 as audit, index$7 as childRunTrace, index$8 as childRuns, index_computeCost as computeCost, index_computeToolIdempotencyKey as computeToolIdempotencyKey, index_consoleAudit as consoleAudit, index_consumeCanonicalInferenceStream as consumeCanonicalInferenceStream, index_copyToolContextRuntimeCapability as copyToolContextRuntimeCapability, index_countToolCallsInCurrentRequest as countToolCallsInCurrentRequest, index_createCompositeAudit as createCompositeAudit, index_createConsoleAudit as createConsoleAudit, index_createContextComponentLedgerEntry as createContextComponentLedgerEntry, index_createDefaultGraphExecutor as createDefaultGraphExecutor, index_createDefaultSystemReminderRegistry as createDefaultSystemReminderRegistry, index_createDefaultTokenizerPort as createDefaultTokenizerPort, index_createEventStoreAudit as createEventStoreAudit, index_createFileAudit as createFileAudit, index_createFixedChatModelCatalog as createFixedChatModelCatalog, index_createGraphLoopHarness as createGraphLoopHarness, index_createHostToolCallBootstrap as createHostToolCallBootstrap, index_createLlmUsageLedgerEntry as createLlmUsageLedgerEntry, index_createModelInputCompatibilityError as createModelInputCompatibilityError, index_createMonotonicEventStoreIdFactory as createMonotonicEventStoreIdFactory, index_createRunTokenUsageAggregate as createRunTokenUsageAggregate, index_createSystemReminderRules as createSystemReminderRules, index_defaultPolicyEngine as defaultPolicyEngine, index_defaultSystemReminderRegistry as defaultSystemReminderRegistry, index_deriveModelInputRequirement as deriveModelInputRequirement, index_emitAuditEnvelope as emitAuditEnvelope, index_emitSandboxDecisionAudit as emitSandboxDecisionAudit, index$6 as enrichment, index_ensureToolContextRuntimeCapability as ensureToolContextRuntimeCapability, index_evaluateModelInputCompatibility as evaluateModelInputCompatibility, index_evaluatePrimaryPromptCapacity as evaluatePrimaryPromptCapacity, index$e as events, index$b as execution, index_findCachedToolOutputByIdempotencyKey as findCachedToolOutputByIdempotencyKey, index_getToolContextRuntimeBinding as getToolContextRuntimeBinding, index$d as graph, index_hostReminderTextTemplate as hostReminderTextTemplate, index_isRuntimeFailureFact as isRuntimeFailureFact, index_isValidReasoningEffort as isValidReasoningEffort, index_lastStepsHintTemplate as lastStepsHintTemplate, index_listCompatibleModelIds as listCompatibleModelIds, index$9 as llm, index_maxStepsForceFinalAnswerTemplate as maxStepsForceFinalAnswerTemplate, index_noopAudit as noopAudit, index_normalizeToolArgs as normalizeToolArgs, index_parseToolModelInputDeclaration as parseToolModelInputDeclaration, index_periodicProgressReflectionTemplate as periodicProgressReflectionTemplate, index_phaseEqualsTrigger as phaseEqualsTrigger, index_projectChildRuntimeEventToSubRunTrace as projectChildRuntimeEventToSubRunTrace, index_readCheckpointContextUsage as readCheckpointContextUsage, index_readNonEmptyStrings as readNonEmptyStrings, index_readToolContextPersistedHistory as readToolContextPersistedHistory, index_readToolContextWorkingHistory as readToolContextWorkingHistory, index_remainingStepsLeqTrigger as remainingStepsLeqTrigger, index_requestEnricherRegistry as requestEnricherRegistry, index_requireEventStoreId as requireEventStoreId, index_resolveEffectiveEffort as resolveEffectiveEffort, index_resolveEffectivePromptBudget as resolveEffectivePromptBudget, index_resolveToolModelInput as resolveToolModelInput, index$a as runContext, index$5 as runSupervisor, index_stepCountModuloTrigger as stepCountModuloTrigger, index_stripRuntimeReservedToolContextPatch as stripRuntimeReservedToolContextPatch, index_summarizeCheckpoint as summarizeCheckpoint, index$2 as systemReminder, index$4 as telemetry, index_toDisplayStep as toDisplayStep, index$1 as tokenAccounting, index_toolCallStreakTemplate as toolCallStreakTemplate, index_toolCallStreakTrigger as toolCallStreakTrigger, index$c as tools };
|
|
1964
1969
|
}
|
|
1965
1970
|
|
|
1966
1971
|
export { PrimaryPromptCapacityError as $, AuditEnvelopePersistenceError as A, BUILTIN_SYSTEM_REMINDER_TEMPLATES as B, type CanonicalInferenceStreamState as C, DefaultTokenizerPort as D, ENGINE_ERROR_CODES as E, type FileAuditOptions as F, GraphAgentExecutor as G, type HostToolCallBootstrap as H, type HostToolCallBootstrapInput as I, type HostToolCallBootstrapLocalPatch as J, INITIAL_CANONICAL_INFERENCE_STREAM_STATE as K, LLMPolicyEngine as L, LLM_IMAGE_INPUT_ERROR_CODES as M, LLM_MODEL_ELIGIBILITY_ERROR_CODE as N, LlmImageInputError as O, type LlmImageInputErrorCode as P, type LlmImageInputErrorMetadata as Q, type LlmImageInputLimitKind as R, LlmModelEligibilityError as S, LlmNode as T, MODEL_INPUT_ERROR_CODES as U, MemoryCheckpointer as V, ModelInputCapabilityError as W, type ModelInputErrorCode as X, type ModelInputErrorMetadata as Y, PRIMARY_PROMPT_CAPACITY_ERROR_CODE as Z, type PrimaryPromptCapacityAdmission as _, BUILTIN_SYSTEM_REMINDER_TRIGGERS as a, parseToolModelInputDeclaration as a$, type PrimaryPromptCapacityErrorMetadata as a0, type RegistryEnrichmentResult as a1, type RequestEnricher as a2, RuntimeEventSubRunTracePublisher as a3, type RuntimeEventSubRunTracePublisherOptions as a4, SYSTEM_REMINDER_RULES as a5, type SystemReminderContentTemplate as a6, type SystemReminderContext as a7, SystemReminderRegistry as a8, type SystemReminderRule as a9, createDefaultSystemReminderRegistry as aA, createDefaultTokenizerPort as aB, createEventStoreAudit as aC, createFileAudit as aD, createHostToolCallBootstrap as aE, createLlmUsageLedgerEntry as aF, createModelInputCompatibilityError as aG, createRunTokenUsageAggregate as aH, createSystemReminderRules as aI, defaultPolicyEngine as aJ, defaultSystemReminderRegistry as aK, deriveModelInputRequirement as aL, emitAuditEnvelope as aM, emitSandboxDecisionAudit as aN, index$6 as aO, evaluateModelInputCompatibility as aP, evaluatePrimaryPromptCapacity as aQ, index$b as aR, index$d as aS, hostReminderTextTemplate as aT, isRuntimeFailureFact as aU, lastStepsHintTemplate as aV, listCompatibleModelIds as aW, index$9 as aX, maxStepsForceFinalAnswerTemplate as aY, noopAudit as aZ, normalizeToolArgs as a_, type SystemReminderRuleDefinition as aa, type SystemReminderTriggerEvaluator as ab, type ToolModelInputDeclarationValidation as ac, ToolNode as ad, ToolParameterSchemaError as ae, UserNode as af, WaitUserNode as ag, addLedgerAggregate as ah, addUsageTotals as ai, advanceCanonicalInferenceStreamState as aj, agentHasToolTrigger as ak, aggregateCanonicalUsage as al, aggregateTokenLedgerEntries as am, applySystemReminders as an, assertModelInputCompatibility as ao, assertToolParameterSchema as ap, index$3 as aq, index$7 as ar, index$8 as as, computeCost as at, consoleAudit as au, consumeCanonicalInferenceStream as av, countToolCallsInCurrentRequest as aw, createCompositeAudit as ax, createConsoleAudit as ay, createContextComponentLedgerEntry as az, type CanonicalInferenceTerminal as b, periodicProgressReflectionTemplate as b0, phaseEqualsTrigger as b1, projectChildRuntimeEventToSubRunTrace as b2, readCheckpointContextUsage as b3, readNonEmptyStrings as b4, remainingStepsLeqTrigger as b5, requestEnricherRegistry as b6, resolveToolModelInput as b7, index$a as b8, index$5 as b9, stepCountModuloTrigger as ba, index$2 as bb, index$4 as bc, toDisplayStep as bd, index$1 as be, toolCallStreakTemplate as bf, toolCallStreakTrigger as bg, index$c as bh, ChildRunParentTraceProjection as c, type ChildRunParentTraceProjectionOptions as d, type CompositeAuditOptions as e, CompositeAuditPort as f, type ConsoleAuditOptions as g, type CreateContextComponentLedgerEntryInput as h, index as i, type CreateLlmUsageLedgerEntryInput as j, type DefaultTokenizerPortConfig as k, type EmitAuditEnvelopeParams as l, type EnrichmentContext as m, type EnrichmentResult as n, type ErrorClassification as o, type EventStoreAuditOptions as p, EventStoreAuditPort as q, FileAuditPort as r, type GraphAgentExecutorDependencies as s, type GraphContextCompactionCandidate as t, type GraphExecutorContextApplyInput as u, type GraphExecutorContextApplyOutput as v, type GraphExecutorContextBuildInput as w, type GraphExecutorContextBuildOutput as x, type GraphExecutorContextBuilder as y, type GraphExecutorOutputProcessor as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as ModelCatalogEntry, a as ModelCatalogLike, E as ExecutorLocalState, R as RuntimeEventCommitPort, S as StandardToolCall, b as ExecutorLocalPatch, c as ModelResolverLike, d as LlmCaller, T as TelemetryPort, G as GraphNode, e as EngineState, N as NodeResult, C as Checkpointer, f as CheckpointMeta, g as CheckpointListFilter, h as CheckpointSummary, i as
|
|
1
|
+
import { M as ModelCatalogEntry, a as ModelCatalogLike, E as ExecutorLocalState, R as RuntimeEventCommitPort, S as StandardToolCall, b as ExecutorLocalPatch, c as ModelResolverLike, d as LlmCaller, T as TelemetryPort, G as GraphNode, e as EngineState, N as NodeResult, C as Checkpointer, f as CheckpointMeta, g as CheckpointListFilter, h as CheckpointSummary, i as ToolBatchCompletionMode, j as EngineLocalState, k as RuntimeFailureFact, l as ENGINE_STATE_SCHEMA_VERSION, m as ExecutorLlmInvocationKind, n as GraphExecutor, o as MemoryEventStore, p as RuntimeEventSink, q as RuntimeFailureFactSink, s as summarizeCheckpoint, r as ToolContextPatch, t as copyToolContextRuntimeCapability, u as ensureToolContextRuntimeCapability, v as getToolContextRuntimeBinding, x as readToolContextPersistedHistory, y as readToolContextWorkingHistory, z as stripRuntimeReservedToolContextPatch, A as LLMPolicy, B as LLMPolicyMatchContext, D as LLMPolicyErrorDecision, F as LlmCallInvocationContext, H as LlmFallbackObserver, I as ModelFallbackAppliedInfo, J as ModelFallbackPolicy, K as ModelFallbackRejectedInfo, O as ModelResolver, P as createFixedChatModelCatalog, Q as DefaultRunSupervisor, U as DefaultRunSupervisorOptions, V as FindActiveByConversationOptions, W as FindRunsByConversationOptions, X as MemoryRunRegistryStore, Y as RunExecutionContext, Z as RunExecutorPort, _ as RunOutcome, $ as RunRegistrationSpec, a0 as RunResumeClaim, a1 as RunResumeInteraction, a2 as RunSnapshot, a3 as RunSupervisor, a4 as RunTerminalError, a5 as RunTerminalEvent, a6 as RunTerminalStatus, a7 as RunWaitForTerminalOptions, a8 as ContextCompactionSuppressedReason, a9 as ContextCompactionTelemetryOutcome, aa as TELEMETRY_EVENT_KINDS, ab as TelemetryEvent, ac as TelemetryScope, ad as DefaultGraphExecutorOptions, ae as GraphLoopHarness, af as GraphLoopHarnessOptions, ag as GraphLoopHarnessRunResult, ah as GraphLoopLlmNodeFactoryParams, ai as createDefaultGraphExecutor, aj as createGraphLoopHarness } from './defaultGraphExecutor-hT7dchpC.js';
|
|
2
2
|
import { P as PromptUsageMeasurementPolicy, c as ContextUsageSnapshot, T as TokenRoute, a as TokenCountSource, b as TokenCountConfidence, M as ModelReasoningConfig, R as REASONING_EFFORTS, d as ReasoningEffort, i as isValidReasoningEffort, r as resolveEffectiveEffort, C as CanonicalLlmUsage } from './reasoning-bffu9R2B.js';
|
|
3
3
|
import { A as AuditPort } from './audit-DnuOSwWE.js';
|
|
4
4
|
import { T as TokenCounterPort } from './token-counter-BjiHQEJ-.js';
|
|
@@ -365,12 +365,15 @@ interface HostToolCallBootstrapInput {
|
|
|
365
365
|
readonly metadata?: SerializableJsonRecord;
|
|
366
366
|
readonly decisionMeta?: SerializableJsonRecord;
|
|
367
367
|
readonly parentToolCallId?: string;
|
|
368
|
+
/** 工具批次完成后继续交还 LLM,或直接把执行权交还 Host。 */
|
|
369
|
+
readonly completionMode?: ToolBatchCompletionMode;
|
|
368
370
|
}
|
|
369
371
|
interface HostToolCallBootstrapLocalPatch {
|
|
370
372
|
readonly conversationId: string;
|
|
371
373
|
readonly turnId: string;
|
|
372
374
|
readonly history: RuntimeEvent[];
|
|
373
375
|
readonly pendingToolCalls: StandardToolCall[];
|
|
376
|
+
readonly toolBatchCompletionMode?: ToolBatchCompletionMode;
|
|
374
377
|
}
|
|
375
378
|
interface HostToolCallBootstrap {
|
|
376
379
|
readonly nodeId: 'tool';
|
|
@@ -480,6 +483,7 @@ declare const index$d_RuntimeEventCommitPort: typeof RuntimeEventCommitPort;
|
|
|
480
483
|
declare const index$d_RuntimeEventSink: typeof RuntimeEventSink;
|
|
481
484
|
declare const index$d_RuntimeFailureFact: typeof RuntimeFailureFact;
|
|
482
485
|
declare const index$d_RuntimeFailureFactSink: typeof RuntimeFailureFactSink;
|
|
486
|
+
declare const index$d_ToolBatchCompletionMode: typeof ToolBatchCompletionMode;
|
|
483
487
|
type index$d_ToolNode = ToolNode;
|
|
484
488
|
declare const index$d_ToolNode: typeof ToolNode;
|
|
485
489
|
type index$d_UserNode = UserNode;
|
|
@@ -495,7 +499,7 @@ declare const index$d_requireEventStoreId: typeof requireEventStoreId;
|
|
|
495
499
|
declare const index$d_resolveEffectivePromptBudget: typeof resolveEffectivePromptBudget;
|
|
496
500
|
declare const index$d_summarizeCheckpoint: typeof summarizeCheckpoint;
|
|
497
501
|
declare namespace index$d {
|
|
498
|
-
export { index$d_CheckpointListFilter as CheckpointListFilter, index$d_CheckpointMeta as CheckpointMeta, index$d_CheckpointSummary as CheckpointSummary, index$d_Checkpointer as Checkpointer, index$d_ENGINE_STATE_SCHEMA_VERSION as ENGINE_STATE_SCHEMA_VERSION, index$d_EffectivePromptBudget as EffectivePromptBudget, index$d_EngineState as EngineState, index$d_EventRangeOptions as EventRangeOptions, index$d_EventStore as EventStore, index$d_ExecutorLlmInvocationKind as ExecutorLlmInvocationKind, index$d_ExecutorLocalPatch as ExecutorLocalPatch, index$d_ExecutorLocalState as ExecutorLocalState, index$d_GraphAgentExecutor as GraphAgentExecutor, type index$d_GraphAgentExecutorDependencies as GraphAgentExecutorDependencies, type index$d_GraphContextCompactionCandidate as GraphContextCompactionCandidate, index$d_GraphExecutor as GraphExecutor, type index$d_GraphExecutorContextApplyInput as GraphExecutorContextApplyInput, type index$d_GraphExecutorContextApplyOutput as GraphExecutorContextApplyOutput, type index$d_GraphExecutorContextBuildInput as GraphExecutorContextBuildInput, type index$d_GraphExecutorContextBuildOutput as GraphExecutorContextBuildOutput, type index$d_GraphExecutorContextBuilder as GraphExecutorContextBuilder, type index$d_GraphExecutorOutputProcessor as GraphExecutorOutputProcessor, index$d_GraphNode as GraphNode, type index$d_HostToolCallBootstrap as HostToolCallBootstrap, type index$d_HostToolCallBootstrapInput as HostToolCallBootstrapInput, type index$d_HostToolCallBootstrapLocalPatch as HostToolCallBootstrapLocalPatch, index$d_LlmNode as LlmNode, index$d_MemoryCheckpointer as MemoryCheckpointer, index$d_MemoryEventStore as MemoryEventStore, index$d_PRIMARY_PROMPT_CAPACITY_ERROR_CODE as PRIMARY_PROMPT_CAPACITY_ERROR_CODE, index$d_PersistedEvent as PersistedEvent, type index$d_PrimaryPromptCapacityAdmission as PrimaryPromptCapacityAdmission, index$d_PrimaryPromptCapacityError as PrimaryPromptCapacityError, type index$d_PrimaryPromptCapacityErrorMetadata as PrimaryPromptCapacityErrorMetadata, index$d_ResolveEffectivePromptBudgetInput as ResolveEffectivePromptBudgetInput, index$d_RuntimeEventCommitPort as RuntimeEventCommitPort, index$d_RuntimeEventSink as RuntimeEventSink, index$d_RuntimeFailureFact as RuntimeFailureFact, index$d_RuntimeFailureFactSink as RuntimeFailureFactSink, index$d_ToolNode as ToolNode, index$d_UserNode as UserNode, index$d_WaitUserNode as WaitUserNode, index$d_createHostToolCallBootstrap as createHostToolCallBootstrap, index$d_createMonotonicEventStoreIdFactory as createMonotonicEventStoreIdFactory, index$d_evaluatePrimaryPromptCapacity as evaluatePrimaryPromptCapacity, index$d_isRuntimeFailureFact as isRuntimeFailureFact, index$d_readCheckpointContextUsage as readCheckpointContextUsage, index$d_requireEventStoreId as requireEventStoreId, index$d_resolveEffectivePromptBudget as resolveEffectivePromptBudget, index$d_summarizeCheckpoint as summarizeCheckpoint };
|
|
502
|
+
export { index$d_CheckpointListFilter as CheckpointListFilter, index$d_CheckpointMeta as CheckpointMeta, index$d_CheckpointSummary as CheckpointSummary, index$d_Checkpointer as Checkpointer, index$d_ENGINE_STATE_SCHEMA_VERSION as ENGINE_STATE_SCHEMA_VERSION, index$d_EffectivePromptBudget as EffectivePromptBudget, index$d_EngineState as EngineState, index$d_EventRangeOptions as EventRangeOptions, index$d_EventStore as EventStore, index$d_ExecutorLlmInvocationKind as ExecutorLlmInvocationKind, index$d_ExecutorLocalPatch as ExecutorLocalPatch, index$d_ExecutorLocalState as ExecutorLocalState, index$d_GraphAgentExecutor as GraphAgentExecutor, type index$d_GraphAgentExecutorDependencies as GraphAgentExecutorDependencies, type index$d_GraphContextCompactionCandidate as GraphContextCompactionCandidate, index$d_GraphExecutor as GraphExecutor, type index$d_GraphExecutorContextApplyInput as GraphExecutorContextApplyInput, type index$d_GraphExecutorContextApplyOutput as GraphExecutorContextApplyOutput, type index$d_GraphExecutorContextBuildInput as GraphExecutorContextBuildInput, type index$d_GraphExecutorContextBuildOutput as GraphExecutorContextBuildOutput, type index$d_GraphExecutorContextBuilder as GraphExecutorContextBuilder, type index$d_GraphExecutorOutputProcessor as GraphExecutorOutputProcessor, index$d_GraphNode as GraphNode, type index$d_HostToolCallBootstrap as HostToolCallBootstrap, type index$d_HostToolCallBootstrapInput as HostToolCallBootstrapInput, type index$d_HostToolCallBootstrapLocalPatch as HostToolCallBootstrapLocalPatch, index$d_LlmNode as LlmNode, index$d_MemoryCheckpointer as MemoryCheckpointer, index$d_MemoryEventStore as MemoryEventStore, index$d_PRIMARY_PROMPT_CAPACITY_ERROR_CODE as PRIMARY_PROMPT_CAPACITY_ERROR_CODE, index$d_PersistedEvent as PersistedEvent, type index$d_PrimaryPromptCapacityAdmission as PrimaryPromptCapacityAdmission, index$d_PrimaryPromptCapacityError as PrimaryPromptCapacityError, type index$d_PrimaryPromptCapacityErrorMetadata as PrimaryPromptCapacityErrorMetadata, index$d_ResolveEffectivePromptBudgetInput as ResolveEffectivePromptBudgetInput, index$d_RuntimeEventCommitPort as RuntimeEventCommitPort, index$d_RuntimeEventSink as RuntimeEventSink, index$d_RuntimeFailureFact as RuntimeFailureFact, index$d_RuntimeFailureFactSink as RuntimeFailureFactSink, index$d_ToolBatchCompletionMode as ToolBatchCompletionMode, index$d_ToolNode as ToolNode, index$d_UserNode as UserNode, index$d_WaitUserNode as WaitUserNode, index$d_createHostToolCallBootstrap as createHostToolCallBootstrap, index$d_createMonotonicEventStoreIdFactory as createMonotonicEventStoreIdFactory, index$d_evaluatePrimaryPromptCapacity as evaluatePrimaryPromptCapacity, index$d_isRuntimeFailureFact as isRuntimeFailureFact, index$d_readCheckpointContextUsage as readCheckpointContextUsage, index$d_requireEventStoreId as requireEventStoreId, index$d_resolveEffectivePromptBudget as resolveEffectivePromptBudget, index$d_summarizeCheckpoint as summarizeCheckpoint };
|
|
499
503
|
}
|
|
500
504
|
|
|
501
505
|
type UnknownRecord = Record<string, unknown>;
|
|
@@ -1853,6 +1857,7 @@ type index_SystemReminderRule = SystemReminderRule;
|
|
|
1853
1857
|
type index_SystemReminderRuleDefinition = SystemReminderRuleDefinition;
|
|
1854
1858
|
type index_SystemReminderTriggerEvaluator = SystemReminderTriggerEvaluator;
|
|
1855
1859
|
declare const index_ToolArgs: typeof ToolArgs;
|
|
1860
|
+
declare const index_ToolBatchCompletionMode: typeof ToolBatchCompletionMode;
|
|
1856
1861
|
declare const index_ToolCall: typeof ToolCall;
|
|
1857
1862
|
declare const index_ToolCallResult: typeof ToolCallResult;
|
|
1858
1863
|
declare const index_ToolCallStreamingPolicy: typeof ToolCallStreamingPolicy;
|
|
@@ -1960,7 +1965,7 @@ declare const index_toDisplayStep: typeof toDisplayStep;
|
|
|
1960
1965
|
declare const index_toolCallStreakTemplate: typeof toolCallStreakTemplate;
|
|
1961
1966
|
declare const index_toolCallStreakTrigger: typeof toolCallStreakTrigger;
|
|
1962
1967
|
declare namespace index {
|
|
1963
|
-
export { index_AdapterInputSupport as AdapterInputSupport, index_AgentTool as AgentTool, index_AuditEnvelopePersistenceError as AuditEnvelopePersistenceError, index_BUILTIN_SYSTEM_REMINDER_TEMPLATES as BUILTIN_SYSTEM_REMINDER_TEMPLATES, index_BUILTIN_SYSTEM_REMINDER_TRIGGERS as BUILTIN_SYSTEM_REMINDER_TRIGGERS, index_BaseTool as BaseTool, type index_CanonicalInferenceStreamState as CanonicalInferenceStreamState, type index_CanonicalInferenceTerminal as CanonicalInferenceTerminal, index_CheckpointListFilter as CheckpointListFilter, index_CheckpointMeta as CheckpointMeta, index_CheckpointSummary as CheckpointSummary, index_Checkpointer as Checkpointer, index_ChildRunParentTraceProjection as ChildRunParentTraceProjection, type index_ChildRunParentTraceProjectionOptions as ChildRunParentTraceProjectionOptions, index_CommonParameterTypes as CommonParameterTypes, index_CompleteToolModelInputParams as CompleteToolModelInputParams, type index_CompositeAuditOptions as CompositeAuditOptions, index_CompositeAuditPort as CompositeAuditPort, type index_ConsoleAuditOptions as ConsoleAuditOptions, type index_CreateContextComponentLedgerEntryInput as CreateContextComponentLedgerEntryInput, type index_CreateLlmUsageLedgerEntryInput as CreateLlmUsageLedgerEntryInput, index_DefaultGraphExecutorOptions as DefaultGraphExecutorOptions, index_DefaultTokenizerPort as DefaultTokenizerPort, type index_DefaultTokenizerPortConfig as DefaultTokenizerPortConfig, index_EMPTY_MODEL_INPUT_REQUIREMENT as EMPTY_MODEL_INPUT_REQUIREMENT, index_ENGINE_ERROR_CODES as ENGINE_ERROR_CODES, index_ENGINE_STATE_SCHEMA_VERSION as ENGINE_STATE_SCHEMA_VERSION, index_EffectivePromptBudget as EffectivePromptBudget, type index_EmitAuditEnvelopeParams as EmitAuditEnvelopeParams, index_EngineState as EngineState, type index_EnrichmentContext as EnrichmentContext, type index_EnrichmentResult as EnrichmentResult, type index_ErrorClassification as ErrorClassification, index_EventRangeOptions as EventRangeOptions, index_EventStore as EventStore, type index_EventStoreAuditOptions as EventStoreAuditOptions, index_EventStoreAuditPort as EventStoreAuditPort, index_ExecutorLlmInvocationKind as ExecutorLlmInvocationKind, index_ExecutorLocalPatch as ExecutorLocalPatch, index_ExecutorLocalState as ExecutorLocalState, type index_FileAuditOptions as FileAuditOptions, index_FileAuditPort as FileAuditPort, index_FunctionToolSchema as FunctionToolSchema, index_GraphAgentExecutor as GraphAgentExecutor, type index_GraphAgentExecutorDependencies as GraphAgentExecutorDependencies, type index_GraphContextCompactionCandidate as GraphContextCompactionCandidate, index_GraphExecutor as GraphExecutor, type index_GraphExecutorContextApplyInput as GraphExecutorContextApplyInput, type index_GraphExecutorContextApplyOutput as GraphExecutorContextApplyOutput, type index_GraphExecutorContextBuildInput as GraphExecutorContextBuildInput, type index_GraphExecutorContextBuildOutput as GraphExecutorContextBuildOutput, type index_GraphExecutorContextBuilder as GraphExecutorContextBuilder, type index_GraphExecutorOutputProcessor as GraphExecutorOutputProcessor, index_GraphLoopHarness as GraphLoopHarness, index_GraphLoopHarnessOptions as GraphLoopHarnessOptions, index_GraphLoopHarnessRunResult as GraphLoopHarnessRunResult, index_GraphLoopLlmNodeFactoryParams as GraphLoopLlmNodeFactoryParams, index_GraphNode as GraphNode, type index_HostToolCallBootstrap as HostToolCallBootstrap, type index_HostToolCallBootstrapInput as HostToolCallBootstrapInput, type index_HostToolCallBootstrapLocalPatch as HostToolCallBootstrapLocalPatch, index_INITIAL_CANONICAL_INFERENCE_STREAM_STATE as INITIAL_CANONICAL_INFERENCE_STREAM_STATE, index_JsonSchemaValue as JsonSchemaValue, index_LLMPolicy as LLMPolicy, index_LLMPolicyEngine as LLMPolicyEngine, index_LLMPolicyErrorDecision as LLMPolicyErrorDecision, index_LLMPolicyMatchContext as LLMPolicyMatchContext, index_LLM_IMAGE_INPUT_ERROR_CODES as LLM_IMAGE_INPUT_ERROR_CODES, index_LLM_MODEL_ELIGIBILITY_ERROR_CODE as LLM_MODEL_ELIGIBILITY_ERROR_CODE, index_LlmCallInvocationContext as LlmCallInvocationContext, index_LlmCallOptions as LlmCallOptions, index_LlmCaller as LlmCaller, index_LlmFallbackObserver as LlmFallbackObserver, index_LlmImageInputError as LlmImageInputError, type index_LlmImageInputErrorCode as LlmImageInputErrorCode, type index_LlmImageInputErrorMetadata as LlmImageInputErrorMetadata, type index_LlmImageInputLimitKind as LlmImageInputLimitKind, index_LlmModelEligibilityError as LlmModelEligibilityError, index_LlmNode as LlmNode, index_LlmRequestMessage as LlmRequestMessage, index_LlmRetryConfig as LlmRetryConfig, index_MODEL_INPUT_ERROR_CODES as MODEL_INPUT_ERROR_CODES, index_MODEL_INPUT_PLACEMENTS as MODEL_INPUT_PLACEMENTS, index_MemoryCheckpointer as MemoryCheckpointer, index_MemoryEventStore as MemoryEventStore, index_ModelCatalogEntry as ModelCatalogEntry, index_ModelCatalogLike as ModelCatalogLike, index_ModelFallbackAppliedInfo as ModelFallbackAppliedInfo, index_ModelFallbackPolicy as ModelFallbackPolicy, index_ModelFallbackRejectedInfo as ModelFallbackRejectedInfo, index_ModelInputCapabilityError as ModelInputCapabilityError, index_ModelInputCompatibility as ModelInputCompatibility, type index_ModelInputErrorCode as ModelInputErrorCode, type index_ModelInputErrorMetadata as ModelInputErrorMetadata, index_ModelInputIncompatibilityReason as ModelInputIncompatibilityReason, index_ModelInputPlacement as ModelInputPlacement, index_ModelInputRequirement as ModelInputRequirement, index_ModelReasoningConfig as ModelReasoningConfig, index_ModelResolver as ModelResolver, index_ObservationPreviewContext as ObservationPreviewContext, index_ObservationPreviewMeta as ObservationPreviewMeta, index_ObservationPreviewPort as ObservationPreviewPort, index_ObservationPreviewResult as ObservationPreviewResult, index_PRIMARY_PROMPT_CAPACITY_ERROR_CODE as PRIMARY_PROMPT_CAPACITY_ERROR_CODE, index_PersistedEvent as PersistedEvent, type index_PrimaryPromptCapacityAdmission as PrimaryPromptCapacityAdmission, index_PrimaryPromptCapacityError as PrimaryPromptCapacityError, type index_PrimaryPromptCapacityErrorMetadata as PrimaryPromptCapacityErrorMetadata, index_ProviderContinuation as ProviderContinuation, index_REASONING_EFFORTS as REASONING_EFFORTS, index_ReasoningEffort as ReasoningEffort, type index_RegistryEnrichmentResult as RegistryEnrichmentResult, type index_RequestEnricher as RequestEnricher, index_ResolveEffectivePromptBudgetInput as ResolveEffectivePromptBudgetInput, index_ResolveToolModelInputParams as ResolveToolModelInputParams, index_RuntimeEventCommitPort as RuntimeEventCommitPort, index_RuntimeEventSink as RuntimeEventSink, index_RuntimeEventSubRunTracePublisher as RuntimeEventSubRunTracePublisher, type index_RuntimeEventSubRunTracePublisherOptions as RuntimeEventSubRunTracePublisherOptions, index_RuntimeFailureFact as RuntimeFailureFact, index_RuntimeFailureFactSink as RuntimeFailureFactSink, index_SYSTEM_REMINDER_RULES as SYSTEM_REMINDER_RULES, index_StructuredToolResult as StructuredToolResult, index_SubRunTraceEnvelope as SubRunTraceEnvelope, index_SubRunTracePublisher as SubRunTracePublisher, type index_SystemReminderContentTemplate as SystemReminderContentTemplate, type index_SystemReminderContext as SystemReminderContext, index_SystemReminderRegistry as SystemReminderRegistry, type index_SystemReminderRule as SystemReminderRule, type index_SystemReminderRuleDefinition as SystemReminderRuleDefinition, type index_SystemReminderTriggerEvaluator as SystemReminderTriggerEvaluator, index_ToolArgs as ToolArgs, index_ToolCall as ToolCall, index_ToolCallResult as ToolCallResult, index_ToolCallStreamingPolicy as ToolCallStreamingPolicy, index_ToolCatalogPort as ToolCatalogPort, index_ToolContextConversationView as ToolContextConversationView, index_ToolContextPatch as ToolContextPatch, index_ToolControlInfo as ToolControlInfo, index_ToolExecutionContext as ToolExecutionContext, index_ToolExecutionPort as ToolExecutionPort, index_ToolExecutionResult as ToolExecutionResult, index_ToolModelInputAdmission as ToolModelInputAdmission, index_ToolModelInputAttachmentSelection as ToolModelInputAttachmentSelection, index_ToolModelInputCapabilityValidatorPort as ToolModelInputCapabilityValidatorPort, index_ToolModelInputDeclaration as ToolModelInputDeclaration, type index_ToolModelInputDeclarationValidation as ToolModelInputDeclarationValidation, index_ToolModelInputDelivery as ToolModelInputDelivery, index_ToolModelInputResolutionError as ToolModelInputResolutionError, index_ToolModelInputResolverPort as ToolModelInputResolverPort, index_ToolNode as ToolNode, index_ToolObservationPreviewMeta as ToolObservationPreviewMeta, index_ToolParameterProperty as ToolParameterProperty, index_ToolParameterSchema as ToolParameterSchema, index_ToolParameterSchemaError as ToolParameterSchemaError, index_ToolParameterType as ToolParameterType, index_ToolRegistryEntry as ToolRegistryEntry, index_ToolResult as ToolResult, index_ToolResultImageMedia as ToolResultImageMedia, index_ToolRuntimeDefinition as ToolRuntimeDefinition, index_ToolRuntimePort as ToolRuntimePort, index_ToolSchemaBuildRequest as ToolSchemaBuildRequest, index_UnifiedToolResult as UnifiedToolResult, index_UserNode as UserNode, index_WaitUserNode as WaitUserNode, index_addLedgerAggregate as addLedgerAggregate, index_addUsageTotals as addUsageTotals, index_advanceCanonicalInferenceStreamState as advanceCanonicalInferenceStreamState, index_agentHasToolTrigger as agentHasToolTrigger, index_aggregateCanonicalUsage as aggregateCanonicalUsage, index_aggregateTokenLedgerEntries as aggregateTokenLedgerEntries, index_applySystemReminders as applySystemReminders, index_assertModelInputCompatibility as assertModelInputCompatibility, index_assertToolParameterSchema as assertToolParameterSchema, index$3 as audit, index$7 as childRunTrace, index$8 as childRuns, index_computeCost as computeCost, index_computeToolIdempotencyKey as computeToolIdempotencyKey, index_consoleAudit as consoleAudit, index_consumeCanonicalInferenceStream as consumeCanonicalInferenceStream, index_copyToolContextRuntimeCapability as copyToolContextRuntimeCapability, index_countToolCallsInCurrentRequest as countToolCallsInCurrentRequest, index_createCompositeAudit as createCompositeAudit, index_createConsoleAudit as createConsoleAudit, index_createContextComponentLedgerEntry as createContextComponentLedgerEntry, index_createDefaultGraphExecutor as createDefaultGraphExecutor, index_createDefaultSystemReminderRegistry as createDefaultSystemReminderRegistry, index_createDefaultTokenizerPort as createDefaultTokenizerPort, index_createEventStoreAudit as createEventStoreAudit, index_createFileAudit as createFileAudit, index_createFixedChatModelCatalog as createFixedChatModelCatalog, index_createGraphLoopHarness as createGraphLoopHarness, index_createHostToolCallBootstrap as createHostToolCallBootstrap, index_createLlmUsageLedgerEntry as createLlmUsageLedgerEntry, index_createModelInputCompatibilityError as createModelInputCompatibilityError, index_createMonotonicEventStoreIdFactory as createMonotonicEventStoreIdFactory, index_createRunTokenUsageAggregate as createRunTokenUsageAggregate, index_createSystemReminderRules as createSystemReminderRules, index_defaultPolicyEngine as defaultPolicyEngine, index_defaultSystemReminderRegistry as defaultSystemReminderRegistry, index_deriveModelInputRequirement as deriveModelInputRequirement, index_emitAuditEnvelope as emitAuditEnvelope, index_emitSandboxDecisionAudit as emitSandboxDecisionAudit, index$6 as enrichment, index_ensureToolContextRuntimeCapability as ensureToolContextRuntimeCapability, index_evaluateModelInputCompatibility as evaluateModelInputCompatibility, index_evaluatePrimaryPromptCapacity as evaluatePrimaryPromptCapacity, index$e as events, index$b as execution, index_findCachedToolOutputByIdempotencyKey as findCachedToolOutputByIdempotencyKey, index_getToolContextRuntimeBinding as getToolContextRuntimeBinding, index$d as graph, index_hostReminderTextTemplate as hostReminderTextTemplate, index_isRuntimeFailureFact as isRuntimeFailureFact, index_isValidReasoningEffort as isValidReasoningEffort, index_lastStepsHintTemplate as lastStepsHintTemplate, index_listCompatibleModelIds as listCompatibleModelIds, index$9 as llm, index_maxStepsForceFinalAnswerTemplate as maxStepsForceFinalAnswerTemplate, index_noopAudit as noopAudit, index_normalizeToolArgs as normalizeToolArgs, index_parseToolModelInputDeclaration as parseToolModelInputDeclaration, index_periodicProgressReflectionTemplate as periodicProgressReflectionTemplate, index_phaseEqualsTrigger as phaseEqualsTrigger, index_projectChildRuntimeEventToSubRunTrace as projectChildRuntimeEventToSubRunTrace, index_readCheckpointContextUsage as readCheckpointContextUsage, index_readNonEmptyStrings as readNonEmptyStrings, index_readToolContextPersistedHistory as readToolContextPersistedHistory, index_readToolContextWorkingHistory as readToolContextWorkingHistory, index_remainingStepsLeqTrigger as remainingStepsLeqTrigger, index_requestEnricherRegistry as requestEnricherRegistry, index_requireEventStoreId as requireEventStoreId, index_resolveEffectiveEffort as resolveEffectiveEffort, index_resolveEffectivePromptBudget as resolveEffectivePromptBudget, index_resolveToolModelInput as resolveToolModelInput, index$a as runContext, index$5 as runSupervisor, index_stepCountModuloTrigger as stepCountModuloTrigger, index_stripRuntimeReservedToolContextPatch as stripRuntimeReservedToolContextPatch, index_summarizeCheckpoint as summarizeCheckpoint, index$2 as systemReminder, index$4 as telemetry, index_toDisplayStep as toDisplayStep, index$1 as tokenAccounting, index_toolCallStreakTemplate as toolCallStreakTemplate, index_toolCallStreakTrigger as toolCallStreakTrigger, index$c as tools };
|
|
1968
|
+
export { index_AdapterInputSupport as AdapterInputSupport, index_AgentTool as AgentTool, index_AuditEnvelopePersistenceError as AuditEnvelopePersistenceError, index_BUILTIN_SYSTEM_REMINDER_TEMPLATES as BUILTIN_SYSTEM_REMINDER_TEMPLATES, index_BUILTIN_SYSTEM_REMINDER_TRIGGERS as BUILTIN_SYSTEM_REMINDER_TRIGGERS, index_BaseTool as BaseTool, type index_CanonicalInferenceStreamState as CanonicalInferenceStreamState, type index_CanonicalInferenceTerminal as CanonicalInferenceTerminal, index_CheckpointListFilter as CheckpointListFilter, index_CheckpointMeta as CheckpointMeta, index_CheckpointSummary as CheckpointSummary, index_Checkpointer as Checkpointer, index_ChildRunParentTraceProjection as ChildRunParentTraceProjection, type index_ChildRunParentTraceProjectionOptions as ChildRunParentTraceProjectionOptions, index_CommonParameterTypes as CommonParameterTypes, index_CompleteToolModelInputParams as CompleteToolModelInputParams, type index_CompositeAuditOptions as CompositeAuditOptions, index_CompositeAuditPort as CompositeAuditPort, type index_ConsoleAuditOptions as ConsoleAuditOptions, type index_CreateContextComponentLedgerEntryInput as CreateContextComponentLedgerEntryInput, type index_CreateLlmUsageLedgerEntryInput as CreateLlmUsageLedgerEntryInput, index_DefaultGraphExecutorOptions as DefaultGraphExecutorOptions, index_DefaultTokenizerPort as DefaultTokenizerPort, type index_DefaultTokenizerPortConfig as DefaultTokenizerPortConfig, index_EMPTY_MODEL_INPUT_REQUIREMENT as EMPTY_MODEL_INPUT_REQUIREMENT, index_ENGINE_ERROR_CODES as ENGINE_ERROR_CODES, index_ENGINE_STATE_SCHEMA_VERSION as ENGINE_STATE_SCHEMA_VERSION, index_EffectivePromptBudget as EffectivePromptBudget, type index_EmitAuditEnvelopeParams as EmitAuditEnvelopeParams, index_EngineState as EngineState, type index_EnrichmentContext as EnrichmentContext, type index_EnrichmentResult as EnrichmentResult, type index_ErrorClassification as ErrorClassification, index_EventRangeOptions as EventRangeOptions, index_EventStore as EventStore, type index_EventStoreAuditOptions as EventStoreAuditOptions, index_EventStoreAuditPort as EventStoreAuditPort, index_ExecutorLlmInvocationKind as ExecutorLlmInvocationKind, index_ExecutorLocalPatch as ExecutorLocalPatch, index_ExecutorLocalState as ExecutorLocalState, type index_FileAuditOptions as FileAuditOptions, index_FileAuditPort as FileAuditPort, index_FunctionToolSchema as FunctionToolSchema, index_GraphAgentExecutor as GraphAgentExecutor, type index_GraphAgentExecutorDependencies as GraphAgentExecutorDependencies, type index_GraphContextCompactionCandidate as GraphContextCompactionCandidate, index_GraphExecutor as GraphExecutor, type index_GraphExecutorContextApplyInput as GraphExecutorContextApplyInput, type index_GraphExecutorContextApplyOutput as GraphExecutorContextApplyOutput, type index_GraphExecutorContextBuildInput as GraphExecutorContextBuildInput, type index_GraphExecutorContextBuildOutput as GraphExecutorContextBuildOutput, type index_GraphExecutorContextBuilder as GraphExecutorContextBuilder, type index_GraphExecutorOutputProcessor as GraphExecutorOutputProcessor, index_GraphLoopHarness as GraphLoopHarness, index_GraphLoopHarnessOptions as GraphLoopHarnessOptions, index_GraphLoopHarnessRunResult as GraphLoopHarnessRunResult, index_GraphLoopLlmNodeFactoryParams as GraphLoopLlmNodeFactoryParams, index_GraphNode as GraphNode, type index_HostToolCallBootstrap as HostToolCallBootstrap, type index_HostToolCallBootstrapInput as HostToolCallBootstrapInput, type index_HostToolCallBootstrapLocalPatch as HostToolCallBootstrapLocalPatch, index_INITIAL_CANONICAL_INFERENCE_STREAM_STATE as INITIAL_CANONICAL_INFERENCE_STREAM_STATE, index_JsonSchemaValue as JsonSchemaValue, index_LLMPolicy as LLMPolicy, index_LLMPolicyEngine as LLMPolicyEngine, index_LLMPolicyErrorDecision as LLMPolicyErrorDecision, index_LLMPolicyMatchContext as LLMPolicyMatchContext, index_LLM_IMAGE_INPUT_ERROR_CODES as LLM_IMAGE_INPUT_ERROR_CODES, index_LLM_MODEL_ELIGIBILITY_ERROR_CODE as LLM_MODEL_ELIGIBILITY_ERROR_CODE, index_LlmCallInvocationContext as LlmCallInvocationContext, index_LlmCallOptions as LlmCallOptions, index_LlmCaller as LlmCaller, index_LlmFallbackObserver as LlmFallbackObserver, index_LlmImageInputError as LlmImageInputError, type index_LlmImageInputErrorCode as LlmImageInputErrorCode, type index_LlmImageInputErrorMetadata as LlmImageInputErrorMetadata, type index_LlmImageInputLimitKind as LlmImageInputLimitKind, index_LlmModelEligibilityError as LlmModelEligibilityError, index_LlmNode as LlmNode, index_LlmRequestMessage as LlmRequestMessage, index_LlmRetryConfig as LlmRetryConfig, index_MODEL_INPUT_ERROR_CODES as MODEL_INPUT_ERROR_CODES, index_MODEL_INPUT_PLACEMENTS as MODEL_INPUT_PLACEMENTS, index_MemoryCheckpointer as MemoryCheckpointer, index_MemoryEventStore as MemoryEventStore, index_ModelCatalogEntry as ModelCatalogEntry, index_ModelCatalogLike as ModelCatalogLike, index_ModelFallbackAppliedInfo as ModelFallbackAppliedInfo, index_ModelFallbackPolicy as ModelFallbackPolicy, index_ModelFallbackRejectedInfo as ModelFallbackRejectedInfo, index_ModelInputCapabilityError as ModelInputCapabilityError, index_ModelInputCompatibility as ModelInputCompatibility, type index_ModelInputErrorCode as ModelInputErrorCode, type index_ModelInputErrorMetadata as ModelInputErrorMetadata, index_ModelInputIncompatibilityReason as ModelInputIncompatibilityReason, index_ModelInputPlacement as ModelInputPlacement, index_ModelInputRequirement as ModelInputRequirement, index_ModelReasoningConfig as ModelReasoningConfig, index_ModelResolver as ModelResolver, index_ObservationPreviewContext as ObservationPreviewContext, index_ObservationPreviewMeta as ObservationPreviewMeta, index_ObservationPreviewPort as ObservationPreviewPort, index_ObservationPreviewResult as ObservationPreviewResult, index_PRIMARY_PROMPT_CAPACITY_ERROR_CODE as PRIMARY_PROMPT_CAPACITY_ERROR_CODE, index_PersistedEvent as PersistedEvent, type index_PrimaryPromptCapacityAdmission as PrimaryPromptCapacityAdmission, index_PrimaryPromptCapacityError as PrimaryPromptCapacityError, type index_PrimaryPromptCapacityErrorMetadata as PrimaryPromptCapacityErrorMetadata, index_ProviderContinuation as ProviderContinuation, index_REASONING_EFFORTS as REASONING_EFFORTS, index_ReasoningEffort as ReasoningEffort, type index_RegistryEnrichmentResult as RegistryEnrichmentResult, type index_RequestEnricher as RequestEnricher, index_ResolveEffectivePromptBudgetInput as ResolveEffectivePromptBudgetInput, index_ResolveToolModelInputParams as ResolveToolModelInputParams, index_RuntimeEventCommitPort as RuntimeEventCommitPort, index_RuntimeEventSink as RuntimeEventSink, index_RuntimeEventSubRunTracePublisher as RuntimeEventSubRunTracePublisher, type index_RuntimeEventSubRunTracePublisherOptions as RuntimeEventSubRunTracePublisherOptions, index_RuntimeFailureFact as RuntimeFailureFact, index_RuntimeFailureFactSink as RuntimeFailureFactSink, index_SYSTEM_REMINDER_RULES as SYSTEM_REMINDER_RULES, index_StructuredToolResult as StructuredToolResult, index_SubRunTraceEnvelope as SubRunTraceEnvelope, index_SubRunTracePublisher as SubRunTracePublisher, type index_SystemReminderContentTemplate as SystemReminderContentTemplate, type index_SystemReminderContext as SystemReminderContext, index_SystemReminderRegistry as SystemReminderRegistry, type index_SystemReminderRule as SystemReminderRule, type index_SystemReminderRuleDefinition as SystemReminderRuleDefinition, type index_SystemReminderTriggerEvaluator as SystemReminderTriggerEvaluator, index_ToolArgs as ToolArgs, index_ToolBatchCompletionMode as ToolBatchCompletionMode, index_ToolCall as ToolCall, index_ToolCallResult as ToolCallResult, index_ToolCallStreamingPolicy as ToolCallStreamingPolicy, index_ToolCatalogPort as ToolCatalogPort, index_ToolContextConversationView as ToolContextConversationView, index_ToolContextPatch as ToolContextPatch, index_ToolControlInfo as ToolControlInfo, index_ToolExecutionContext as ToolExecutionContext, index_ToolExecutionPort as ToolExecutionPort, index_ToolExecutionResult as ToolExecutionResult, index_ToolModelInputAdmission as ToolModelInputAdmission, index_ToolModelInputAttachmentSelection as ToolModelInputAttachmentSelection, index_ToolModelInputCapabilityValidatorPort as ToolModelInputCapabilityValidatorPort, index_ToolModelInputDeclaration as ToolModelInputDeclaration, type index_ToolModelInputDeclarationValidation as ToolModelInputDeclarationValidation, index_ToolModelInputDelivery as ToolModelInputDelivery, index_ToolModelInputResolutionError as ToolModelInputResolutionError, index_ToolModelInputResolverPort as ToolModelInputResolverPort, index_ToolNode as ToolNode, index_ToolObservationPreviewMeta as ToolObservationPreviewMeta, index_ToolParameterProperty as ToolParameterProperty, index_ToolParameterSchema as ToolParameterSchema, index_ToolParameterSchemaError as ToolParameterSchemaError, index_ToolParameterType as ToolParameterType, index_ToolRegistryEntry as ToolRegistryEntry, index_ToolResult as ToolResult, index_ToolResultImageMedia as ToolResultImageMedia, index_ToolRuntimeDefinition as ToolRuntimeDefinition, index_ToolRuntimePort as ToolRuntimePort, index_ToolSchemaBuildRequest as ToolSchemaBuildRequest, index_UnifiedToolResult as UnifiedToolResult, index_UserNode as UserNode, index_WaitUserNode as WaitUserNode, index_addLedgerAggregate as addLedgerAggregate, index_addUsageTotals as addUsageTotals, index_advanceCanonicalInferenceStreamState as advanceCanonicalInferenceStreamState, index_agentHasToolTrigger as agentHasToolTrigger, index_aggregateCanonicalUsage as aggregateCanonicalUsage, index_aggregateTokenLedgerEntries as aggregateTokenLedgerEntries, index_applySystemReminders as applySystemReminders, index_assertModelInputCompatibility as assertModelInputCompatibility, index_assertToolParameterSchema as assertToolParameterSchema, index$3 as audit, index$7 as childRunTrace, index$8 as childRuns, index_computeCost as computeCost, index_computeToolIdempotencyKey as computeToolIdempotencyKey, index_consoleAudit as consoleAudit, index_consumeCanonicalInferenceStream as consumeCanonicalInferenceStream, index_copyToolContextRuntimeCapability as copyToolContextRuntimeCapability, index_countToolCallsInCurrentRequest as countToolCallsInCurrentRequest, index_createCompositeAudit as createCompositeAudit, index_createConsoleAudit as createConsoleAudit, index_createContextComponentLedgerEntry as createContextComponentLedgerEntry, index_createDefaultGraphExecutor as createDefaultGraphExecutor, index_createDefaultSystemReminderRegistry as createDefaultSystemReminderRegistry, index_createDefaultTokenizerPort as createDefaultTokenizerPort, index_createEventStoreAudit as createEventStoreAudit, index_createFileAudit as createFileAudit, index_createFixedChatModelCatalog as createFixedChatModelCatalog, index_createGraphLoopHarness as createGraphLoopHarness, index_createHostToolCallBootstrap as createHostToolCallBootstrap, index_createLlmUsageLedgerEntry as createLlmUsageLedgerEntry, index_createModelInputCompatibilityError as createModelInputCompatibilityError, index_createMonotonicEventStoreIdFactory as createMonotonicEventStoreIdFactory, index_createRunTokenUsageAggregate as createRunTokenUsageAggregate, index_createSystemReminderRules as createSystemReminderRules, index_defaultPolicyEngine as defaultPolicyEngine, index_defaultSystemReminderRegistry as defaultSystemReminderRegistry, index_deriveModelInputRequirement as deriveModelInputRequirement, index_emitAuditEnvelope as emitAuditEnvelope, index_emitSandboxDecisionAudit as emitSandboxDecisionAudit, index$6 as enrichment, index_ensureToolContextRuntimeCapability as ensureToolContextRuntimeCapability, index_evaluateModelInputCompatibility as evaluateModelInputCompatibility, index_evaluatePrimaryPromptCapacity as evaluatePrimaryPromptCapacity, index$e as events, index$b as execution, index_findCachedToolOutputByIdempotencyKey as findCachedToolOutputByIdempotencyKey, index_getToolContextRuntimeBinding as getToolContextRuntimeBinding, index$d as graph, index_hostReminderTextTemplate as hostReminderTextTemplate, index_isRuntimeFailureFact as isRuntimeFailureFact, index_isValidReasoningEffort as isValidReasoningEffort, index_lastStepsHintTemplate as lastStepsHintTemplate, index_listCompatibleModelIds as listCompatibleModelIds, index$9 as llm, index_maxStepsForceFinalAnswerTemplate as maxStepsForceFinalAnswerTemplate, index_noopAudit as noopAudit, index_normalizeToolArgs as normalizeToolArgs, index_parseToolModelInputDeclaration as parseToolModelInputDeclaration, index_periodicProgressReflectionTemplate as periodicProgressReflectionTemplate, index_phaseEqualsTrigger as phaseEqualsTrigger, index_projectChildRuntimeEventToSubRunTrace as projectChildRuntimeEventToSubRunTrace, index_readCheckpointContextUsage as readCheckpointContextUsage, index_readNonEmptyStrings as readNonEmptyStrings, index_readToolContextPersistedHistory as readToolContextPersistedHistory, index_readToolContextWorkingHistory as readToolContextWorkingHistory, index_remainingStepsLeqTrigger as remainingStepsLeqTrigger, index_requestEnricherRegistry as requestEnricherRegistry, index_requireEventStoreId as requireEventStoreId, index_resolveEffectiveEffort as resolveEffectiveEffort, index_resolveEffectivePromptBudget as resolveEffectivePromptBudget, index_resolveToolModelInput as resolveToolModelInput, index$a as runContext, index$5 as runSupervisor, index_stepCountModuloTrigger as stepCountModuloTrigger, index_stripRuntimeReservedToolContextPatch as stripRuntimeReservedToolContextPatch, index_summarizeCheckpoint as summarizeCheckpoint, index$2 as systemReminder, index$4 as telemetry, index_toDisplayStep as toDisplayStep, index$1 as tokenAccounting, index_toolCallStreakTemplate as toolCallStreakTemplate, index_toolCallStreakTrigger as toolCallStreakTrigger, index$c as tools };
|
|
1964
1969
|
}
|
|
1965
1970
|
|
|
1966
1971
|
export { PrimaryPromptCapacityError as $, AuditEnvelopePersistenceError as A, BUILTIN_SYSTEM_REMINDER_TEMPLATES as B, type CanonicalInferenceStreamState as C, DefaultTokenizerPort as D, ENGINE_ERROR_CODES as E, type FileAuditOptions as F, GraphAgentExecutor as G, type HostToolCallBootstrap as H, type HostToolCallBootstrapInput as I, type HostToolCallBootstrapLocalPatch as J, INITIAL_CANONICAL_INFERENCE_STREAM_STATE as K, LLMPolicyEngine as L, LLM_IMAGE_INPUT_ERROR_CODES as M, LLM_MODEL_ELIGIBILITY_ERROR_CODE as N, LlmImageInputError as O, type LlmImageInputErrorCode as P, type LlmImageInputErrorMetadata as Q, type LlmImageInputLimitKind as R, LlmModelEligibilityError as S, LlmNode as T, MODEL_INPUT_ERROR_CODES as U, MemoryCheckpointer as V, ModelInputCapabilityError as W, type ModelInputErrorCode as X, type ModelInputErrorMetadata as Y, PRIMARY_PROMPT_CAPACITY_ERROR_CODE as Z, type PrimaryPromptCapacityAdmission as _, BUILTIN_SYSTEM_REMINDER_TRIGGERS as a, parseToolModelInputDeclaration as a$, type PrimaryPromptCapacityErrorMetadata as a0, type RegistryEnrichmentResult as a1, type RequestEnricher as a2, RuntimeEventSubRunTracePublisher as a3, type RuntimeEventSubRunTracePublisherOptions as a4, SYSTEM_REMINDER_RULES as a5, type SystemReminderContentTemplate as a6, type SystemReminderContext as a7, SystemReminderRegistry as a8, type SystemReminderRule as a9, createDefaultSystemReminderRegistry as aA, createDefaultTokenizerPort as aB, createEventStoreAudit as aC, createFileAudit as aD, createHostToolCallBootstrap as aE, createLlmUsageLedgerEntry as aF, createModelInputCompatibilityError as aG, createRunTokenUsageAggregate as aH, createSystemReminderRules as aI, defaultPolicyEngine as aJ, defaultSystemReminderRegistry as aK, deriveModelInputRequirement as aL, emitAuditEnvelope as aM, emitSandboxDecisionAudit as aN, index$6 as aO, evaluateModelInputCompatibility as aP, evaluatePrimaryPromptCapacity as aQ, index$b as aR, index$d as aS, hostReminderTextTemplate as aT, isRuntimeFailureFact as aU, lastStepsHintTemplate as aV, listCompatibleModelIds as aW, index$9 as aX, maxStepsForceFinalAnswerTemplate as aY, noopAudit as aZ, normalizeToolArgs as a_, type SystemReminderRuleDefinition as aa, type SystemReminderTriggerEvaluator as ab, type ToolModelInputDeclarationValidation as ac, ToolNode as ad, ToolParameterSchemaError as ae, UserNode as af, WaitUserNode as ag, addLedgerAggregate as ah, addUsageTotals as ai, advanceCanonicalInferenceStreamState as aj, agentHasToolTrigger as ak, aggregateCanonicalUsage as al, aggregateTokenLedgerEntries as am, applySystemReminders as an, assertModelInputCompatibility as ao, assertToolParameterSchema as ap, index$3 as aq, index$7 as ar, index$8 as as, computeCost as at, consoleAudit as au, consumeCanonicalInferenceStream as av, countToolCallsInCurrentRequest as aw, createCompositeAudit as ax, createConsoleAudit as ay, createContextComponentLedgerEntry as az, type CanonicalInferenceTerminal as b, periodicProgressReflectionTemplate as b0, phaseEqualsTrigger as b1, projectChildRuntimeEventToSubRunTrace as b2, readCheckpointContextUsage as b3, readNonEmptyStrings as b4, remainingStepsLeqTrigger as b5, requestEnricherRegistry as b6, resolveToolModelInput as b7, index$a as b8, index$5 as b9, stepCountModuloTrigger as ba, index$2 as bb, index$4 as bc, toDisplayStep as bd, index$1 as be, toolCallStreakTemplate as bf, toolCallStreakTrigger as bg, index$c as bh, ChildRunParentTraceProjection as c, type ChildRunParentTraceProjectionOptions as d, type CompositeAuditOptions as e, CompositeAuditPort as f, type ConsoleAuditOptions as g, type CreateContextComponentLedgerEntryInput as h, index as i, type CreateLlmUsageLedgerEntryInput as j, type DefaultTokenizerPortConfig as k, type EmitAuditEnvelopeParams as l, type EnrichmentContext as m, type EnrichmentResult as n, type ErrorClassification as o, type EventStoreAuditOptions as p, EventStoreAuditPort as q, FileAuditPort as r, type GraphAgentExecutorDependencies as s, type GraphContextCompactionCandidate as t, type GraphExecutorContextApplyInput as u, type GraphExecutorContextApplyOutput as v, type GraphExecutorContextBuildInput as w, type GraphExecutorContextBuildOutput as x, type GraphExecutorContextBuilder as y, type GraphExecutorOutputProcessor as z };
|
package/dist/index.cjs
CHANGED
|
@@ -8765,7 +8765,33 @@ var TOOL_CONTEXT_RUNTIME_RESERVED_KEYS = [
|
|
|
8765
8765
|
"parentToolCallId",
|
|
8766
8766
|
"modelInputAdmission"
|
|
8767
8767
|
];
|
|
8768
|
-
var
|
|
8768
|
+
var TOOL_CONTEXT_RUNTIME_BINDINGS_KEY = /* @__PURE__ */ Symbol.for(
|
|
8769
|
+
"@linnlabs/linnkit/tool-context-runtime-bindings/v1"
|
|
8770
|
+
);
|
|
8771
|
+
function isRuntimeBindingRegistry(value) {
|
|
8772
|
+
return value instanceof WeakMap;
|
|
8773
|
+
}
|
|
8774
|
+
function resolveRuntimeBindingRegistry() {
|
|
8775
|
+
const existing = Reflect.get(globalThis, TOOL_CONTEXT_RUNTIME_BINDINGS_KEY);
|
|
8776
|
+
if (existing !== void 0) {
|
|
8777
|
+
if (!isRuntimeBindingRegistry(existing)) {
|
|
8778
|
+
throw new Error("Linnkit ToolContext runtime binding registry has an incompatible owner.");
|
|
8779
|
+
}
|
|
8780
|
+
return existing;
|
|
8781
|
+
}
|
|
8782
|
+
const registry = /* @__PURE__ */ new WeakMap();
|
|
8783
|
+
const installed = Reflect.defineProperty(globalThis, TOOL_CONTEXT_RUNTIME_BINDINGS_KEY, {
|
|
8784
|
+
value: registry,
|
|
8785
|
+
configurable: false,
|
|
8786
|
+
enumerable: false,
|
|
8787
|
+
writable: false
|
|
8788
|
+
});
|
|
8789
|
+
if (!installed) {
|
|
8790
|
+
throw new Error("Cannot install Linnkit ToolContext runtime binding registry.");
|
|
8791
|
+
}
|
|
8792
|
+
return registry;
|
|
8793
|
+
}
|
|
8794
|
+
var runtimeBindings = resolveRuntimeBindingRegistry();
|
|
8769
8795
|
function toEventSource(source) {
|
|
8770
8796
|
if (typeof source === "function") {
|
|
8771
8797
|
return source;
|
|
@@ -9864,6 +9890,15 @@ var ToolNode = class {
|
|
|
9864
9890
|
});
|
|
9865
9891
|
return { kind: "yield", events: context.bridge.getRuntimeEvents() };
|
|
9866
9892
|
}
|
|
9893
|
+
if (remainingCalls.length === 0 && context.local.toolBatchCompletionMode === "yield_after_batch") {
|
|
9894
|
+
logger11.info("[ToolNode] \u5DE5\u5177\u6279\u6B21\u5DF2\u7ED3\u7B97\uFF0C\u6309 Host \u7B56\u7565\u76F4\u63A5 yield", {
|
|
9895
|
+
toolName: context.toolName,
|
|
9896
|
+
toolCallId: context.toolCallId,
|
|
9897
|
+
conversationId: context.conversationId,
|
|
9898
|
+
turnId: context.turnId
|
|
9899
|
+
});
|
|
9900
|
+
return { kind: "yield", events: context.bridge.getRuntimeEvents() };
|
|
9901
|
+
}
|
|
9867
9902
|
return {
|
|
9868
9903
|
kind: "route",
|
|
9869
9904
|
nextNodeId: remainingCalls.length > 0 ? "tool" : "llm",
|
|
@@ -9946,6 +9981,9 @@ var ToolNode = class {
|
|
|
9946
9981
|
if (fuse.shouldFuse && remainingCalls.length === 0) {
|
|
9947
9982
|
throw createToolProtocolFuseError(fuse.nextCount, context.exec.error);
|
|
9948
9983
|
}
|
|
9984
|
+
if (remainingCalls.length === 0 && context.local.toolBatchCompletionMode === "yield_after_batch") {
|
|
9985
|
+
return { kind: "yield", events: context.bridge.getRuntimeEvents() };
|
|
9986
|
+
}
|
|
9949
9987
|
return {
|
|
9950
9988
|
kind: "route",
|
|
9951
9989
|
// 同一个 assistant.tool_calls batch 必须为每个 call 产出 tool_output。
|
|
@@ -10470,7 +10508,8 @@ function createHostToolCallBootstrap(input) {
|
|
|
10470
10508
|
conversationId,
|
|
10471
10509
|
turnId,
|
|
10472
10510
|
history: [...input.history ?? [], decisionEvent],
|
|
10473
|
-
pendingToolCalls: [toolCall]
|
|
10511
|
+
pendingToolCalls: [toolCall],
|
|
10512
|
+
...input.completionMode === void 0 ? {} : { toolBatchCompletionMode: input.completionMode }
|
|
10474
10513
|
}
|
|
10475
10514
|
};
|
|
10476
10515
|
}
|