@linnlabs/linnkit 0.10.0 → 0.21.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 +156 -1
- package/dist/{agent-invocation-BHcNfrBV.d.cts → agent-invocation-CAlm9qOw.d.cts} +1 -1
- package/dist/{agent-invocation-BznDaXDs.d.ts → agent-invocation-DKoEDLkl.d.ts} +1 -1
- package/dist/{ai-engine.types-vZRnQcJa.d.ts → ai-engine.types-CeLoM624.d.cts} +9 -1
- package/dist/{ai-engine.types-BpeU_XQG.d.cts → ai-engine.types-LqmnfR2W.d.ts} +9 -1
- package/dist/{audit-CtcfART1.d.ts → audit-BuWHoMEr.d.ts} +4 -2
- package/dist/{audit-LeOrm2hX.d.cts → audit-DnzNQzwq.d.cts} +4 -2
- package/dist/cli.cjs +565 -194
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +565 -194
- package/dist/cli.js.map +1 -1
- package/dist/context-manager.cjs +590 -26
- package/dist/context-manager.cjs.map +1 -1
- package/dist/context-manager.d.cts +84 -7
- package/dist/context-manager.d.ts +84 -7
- package/dist/context-manager.js +590 -26
- package/dist/context-manager.js.map +1 -1
- package/dist/{context-trace-BHKDS-eq.d.cts → context-trace-DrtvKac4.d.cts} +36 -3
- package/dist/{context-trace-CHbqHmyE.d.ts → context-trace-WV1HAZeB.d.ts} +36 -3
- package/dist/contracts.cjs +222 -1
- package/dist/contracts.cjs.map +1 -1
- package/dist/contracts.d.cts +5 -3
- package/dist/contracts.d.ts +5 -3
- package/dist/contracts.js +202 -2
- package/dist/contracts.js.map +1 -1
- package/dist/{defaultGraphExecutor-C2E59v_R.d.cts → defaultGraphExecutor-L1ri3oij.d.cts} +35 -7
- package/dist/{defaultGraphExecutor-B29_qTHy.d.ts → defaultGraphExecutor-QzzdudLQ.d.ts} +35 -7
- package/dist/{index-BAaUP9yU.d.cts → index-BeQO0rx2.d.cts} +328 -263
- package/dist/{index-Cvr23YCl.d.cts → index-CDofGr_4.d.ts} +24 -6
- package/dist/{index-CKQzzZ5Y.d.cts → index-Crl5E4eF.d.cts} +26 -3
- package/dist/{index-C0DAjsdX.d.ts → index-DWGKvssS.d.ts} +2 -2
- package/dist/{index-D0mKxTR5.d.ts → index-X5lYU1Lj.d.ts} +26 -3
- package/dist/{index-DDzuSb0n.d.ts → index-uCNCpJBg.d.cts} +24 -6
- package/dist/{index-BaVpVNi2.d.ts → index-wOZD-p2-.d.ts} +328 -263
- package/dist/{index-BnYCS8Zg.d.cts → index-wXVAHZ0D.d.cts} +2 -2
- package/dist/index.cjs +893 -312
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -14
- package/dist/index.d.ts +17 -14
- package/dist/index.js +893 -312
- package/dist/index.js.map +1 -1
- package/dist/{messages-XthmnHZ3.d.cts → messages-Br5SiLD3.d.cts} +706 -1
- package/dist/{messages-XthmnHZ3.d.ts → messages-Br5SiLD3.d.ts} +706 -1
- package/dist/{ports-s-tSp3sB.d.cts → ports-Dugizzje.d.cts} +4 -0
- package/dist/{ports-DpPTFhSd.d.ts → ports-fhp84x_C.d.ts} +4 -0
- package/dist/ports.d.cts +8 -5
- package/dist/ports.d.ts +8 -5
- package/dist/quickstart.cjs +564 -193
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.d.cts +9 -8
- package/dist/quickstart.d.ts +9 -8
- package/dist/quickstart.js +564 -193
- package/dist/quickstart.js.map +1 -1
- package/dist/{runAgent-C6F-399C.d.ts → runAgent-BmMSju8I.d.ts} +4 -4
- package/dist/{runAgent-ilEj66Ik.d.cts → runAgent-CKgcRSRH.d.cts} +4 -4
- package/dist/{runHandle-BNOqS-Bl.d.cts → runHandle-DH4VmQx6.d.cts} +4 -2
- package/dist/{runHandle-BdLXOFqF.d.ts → runHandle-o3p06Nva.d.ts} +4 -2
- package/dist/runtime-kernel/events.cjs +201 -1
- package/dist/runtime-kernel/events.cjs.map +1 -1
- package/dist/runtime-kernel/events.d.cts +3 -3
- package/dist/runtime-kernel/events.d.ts +3 -3
- package/dist/runtime-kernel/events.js +201 -1
- package/dist/runtime-kernel/events.js.map +1 -1
- package/dist/runtime-kernel.cjs +824 -264
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.d.cts +14 -12
- package/dist/runtime-kernel.d.ts +14 -12
- package/dist/runtime-kernel.js +816 -265
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +847 -264
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.d.cts +14 -12
- package/dist/testkit.d.ts +14 -12
- package/dist/testkit.js +847 -264
- package/dist/testkit.js.map +1 -1
- package/dist/{agentSpec-Du4Iye0q.d.cts → token-accounting-CwpSPg4y.d.cts} +1265 -1
- package/dist/{agentSpec-Du4Iye0q.d.ts → token-accounting-CwpSPg4y.d.ts} +1265 -1
- package/dist/token-calibration-Cxv6dDYF.d.cts +327 -0
- package/dist/token-calibration-Cxv6dDYF.d.ts +327 -0
- package/dist/token-counter-CFfP8PQb.d.cts +26 -0
- package/dist/token-counter-SFyyTeaG.d.ts +26 -0
- package/dist/token-usage-CqwT7-5K.d.cts +133 -0
- package/dist/token-usage-CqwT7-5K.d.ts +133 -0
- package/dist/{tokenizer-DFL4I7-I.d.ts → tokenizer-BFJNCHFX.d.ts} +1 -1
- package/dist/{tokenizer-DH_JXv-H.d.cts → tokenizer-DoGsBE3A.d.cts} +1 -1
- package/docs/README.md +1 -1
- package/docs/integration/README.md +2 -2
- package/docs/integration/agent-registration-guide.md +2 -0
- package/docs/integration/context-engineering.md +53 -1
- package/docs/integration/context-fences.md +12 -0
- package/package.json +2 -2
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
import { A as AgentInvocationRequest } from './agent-invocation-
|
|
2
|
-
import { A as AgentAiEngine, a as AgentAiEngineStreamContent, b as AuditPort } from './audit-
|
|
3
|
-
import { T as
|
|
4
|
-
import {
|
|
1
|
+
import { A as AgentInvocationRequest } from './agent-invocation-DKoEDLkl.js';
|
|
2
|
+
import { A as AgentAiEngine, a as AgentAiEngineStreamContent, b as AuditPort } from './audit-BuWHoMEr.js';
|
|
3
|
+
import { a as TokenCountResult, T as TokenCounterPort } from './token-counter-SFyyTeaG.js';
|
|
4
|
+
import { T as TokenizerPort } from './tokenizer-BFJNCHFX.js';
|
|
5
|
+
import { T as TokenRoute, C as CanonicalLlmUsage } from './token-usage-CqwT7-5K.js';
|
|
6
|
+
import { L as LlmCallOptions, a as LlmRequestMessage, b as LlmResponseContent, c as LlmRetryConfig, P as ProviderReasoningDetails, T as ToolCall, d as ToolCallChunk, e as ToolCallExtraContent } from './ai-engine.types-LqmnfR2W.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 可选 usage 归一化端口。
|
|
10
|
+
*
|
|
11
|
+
* host 若不想在 adapter response 里直接回传 canonicalUsage,可集中注入该端口;
|
|
12
|
+
* linnkit 只定义协议,不在这里放 provider family 规则。
|
|
13
|
+
*/
|
|
14
|
+
interface UsageNormalizer {
|
|
15
|
+
normalize(input: {
|
|
16
|
+
route: TokenRoute;
|
|
17
|
+
rawUsage: unknown;
|
|
18
|
+
}): CanonicalLlmUsage | undefined;
|
|
19
|
+
}
|
|
5
20
|
|
|
6
21
|
declare const index_AgentAiEngine: typeof AgentAiEngine;
|
|
7
22
|
declare const index_AgentAiEngineStreamContent: typeof AgentAiEngineStreamContent;
|
|
@@ -12,12 +27,15 @@ declare const index_LlmRequestMessage: typeof LlmRequestMessage;
|
|
|
12
27
|
declare const index_LlmResponseContent: typeof LlmResponseContent;
|
|
13
28
|
declare const index_LlmRetryConfig: typeof LlmRetryConfig;
|
|
14
29
|
declare const index_ProviderReasoningDetails: typeof ProviderReasoningDetails;
|
|
30
|
+
declare const index_TokenCountResult: typeof TokenCountResult;
|
|
31
|
+
declare const index_TokenCounterPort: typeof TokenCounterPort;
|
|
15
32
|
declare const index_TokenizerPort: typeof TokenizerPort;
|
|
16
33
|
declare const index_ToolCall: typeof ToolCall;
|
|
17
34
|
declare const index_ToolCallChunk: typeof ToolCallChunk;
|
|
18
35
|
declare const index_ToolCallExtraContent: typeof ToolCallExtraContent;
|
|
36
|
+
type index_UsageNormalizer = UsageNormalizer;
|
|
19
37
|
declare namespace index {
|
|
20
|
-
export { index_AgentAiEngine as AgentAiEngine, index_AgentAiEngineStreamContent as AgentAiEngineStreamContent, index_AgentInvocationRequest as AgentInvocationRequest, index_AuditPort as AuditPort, index_LlmCallOptions as LlmCallOptions, index_LlmRequestMessage as LlmRequestMessage, index_LlmResponseContent as LlmResponseContent, index_LlmRetryConfig as LlmRetryConfig, index_ProviderReasoningDetails as ProviderReasoningDetails, index_TokenizerPort as TokenizerPort, index_ToolCall as ToolCall, index_ToolCallChunk as ToolCallChunk, index_ToolCallExtraContent as ToolCallExtraContent };
|
|
38
|
+
export { index_AgentAiEngine as AgentAiEngine, index_AgentAiEngineStreamContent as AgentAiEngineStreamContent, index_AgentInvocationRequest as AgentInvocationRequest, index_AuditPort as AuditPort, index_LlmCallOptions as LlmCallOptions, index_LlmRequestMessage as LlmRequestMessage, index_LlmResponseContent as LlmResponseContent, index_LlmRetryConfig as LlmRetryConfig, index_ProviderReasoningDetails as ProviderReasoningDetails, index_TokenCountResult as TokenCountResult, index_TokenCounterPort as TokenCounterPort, index_TokenizerPort as TokenizerPort, index_ToolCall as ToolCall, index_ToolCallChunk as ToolCallChunk, index_ToolCallExtraContent as ToolCallExtraContent, type index_UsageNormalizer as UsageNormalizer };
|
|
21
39
|
}
|
|
22
40
|
|
|
23
|
-
export { index as i };
|
|
41
|
+
export { type UsageNormalizer as U, index as i };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { A as AiMessage, a as AssistantMessage, H as HistorySummaryMeta, I as ImageInfoMeta, P as PersistentMetadata, b as ProviderReasoningDetails, S as SystemMessage, T as TaskTrackingMeta, c as ToolCallExtraContent, d as ToolCallWire, e as ToolCallsMeta, f as ToolMessage, g as ToolOutputMeta, U as UserMessage, h as createAssistantMessage, i as createHistorySummaryMessage, j as createSystemMessage, k as createToolMessage, l as createUserMessage, m as hasToolCalls, n as isAssistantMessage, o as isHistorySummaryMessage, p as isSystemMessage, q as isToolMessage, r as isUserMessage, v as validateAiMessage, s as validateHistorySummaryMeta } from './messages-
|
|
2
|
-
import {
|
|
1
|
+
import { A as AiMessage, a as AssistantMessage, H as HistorySummaryMeta, I as ImageInfoMeta, O as ObservationTruncationMeta, P as PersistentMetadata, b as ProviderReasoningDetails, S as SystemMessage, T as TaskTrackingMeta, c as ToolCallExtraContent, d as ToolCallWire, e as ToolCallsMeta, f as ToolMessage, g as ToolOutputMeta, U as UserMessage, h as createAssistantMessage, i as createHistorySummaryMessage, j as createSystemMessage, k as createToolMessage, l as createUserMessage, m as hasToolCalls, n as isAssistantMessage, o as isHistorySummaryMessage, p as isSystemMessage, q as isToolMessage, r as isUserMessage, v as validateAiMessage, s as validateHistorySummaryMeta } from './messages-Br5SiLD3.cjs';
|
|
2
|
+
import { j as AgentCapability, f as AgentSpec, k as AgentSpecAuditConfig, l as AgentSpecBudgetPolicy, b as AgentSpecCheckpointPolicy, g as AgentSpecContextPolicy, h as AgentSpecContextPolicyInput, d as AgentSpecContextTracePolicy, m as AgentSpecMessageType, n as AgentSpecModelHints, o as AgentSpecMustKeepPolicy, p as AgentSpecMustKeepTruncationRule, a as AgentSpecProviderReplayPolicy, q as AgentSpecReasoningRetentionPolicy, c as AgentSpecSummarizationPolicy, r as AgentSpecSystemReminderExtraRule, e as AgentSpecSystemReminderPolicy, s as AgentSpecSystemReminderTrigger, i as AgentSpecTokenEstimationPolicy, t as AgentSpecToolHistoryPolicy, u as AgentSpecToolObservationGovernancePolicy, A as AgentSpecToolOutputPolicy, v as AgentSpecWorkingMemoryPolicy, w as ContextComponentTokenLedgerEntry, C as ContextTokenComponent, x as ContextTokenComponentKind, y as CostBreakdown, L as LlmUsageTokenLedgerEntry, R as RunTokenUsageAggregate, S as SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS, T as TokenCostComponent, z as TokenLedgerAggregate, B as TokenLedgerEntry, D as TokenLedgerEntryKind, E as TokenPricing, F as TokenUsageTotals, G as ToolBindingSpec, H as defineContextPolicy } from './token-accounting-CwpSPg4y.cjs';
|
|
3
3
|
import { A as AUDIT_ACTIONS, a as AUDIT_DECISION_OUTCOMES, b as AuditActor, c as AuditCostDelta, d as AuditDecision, e as AuditEnvelope, f as AuditEvidence, g as AuditScope } from './audit-BaRUGaqv.cjs';
|
|
4
4
|
import { A as AgentTodoItem, a as AgentTodoSnapshot, b as AgentTodoStatus, c as AuditEnvelopeEvent, B as BaseEvent, C as ControlEvent, E as ErrorEvent, F as FinalAnswerChunkEvent, d as FinalAnswerEvent, H as HistorySummaryEvent, P as ProviderReasoningDetailsPayload, e as RequiresUserInteractionEvent, R as RuntimeEvent, S as Status, f as StreamEndEvent, g as SubRunTraceEvent, T as ThoughtEvent, h as TodoUpdatedEvent, i as ToolCallDecisionEvent, j as ToolCallDecisionPayload, k as ToolCallPhase, l as ToolOutputEvent, m as ToolProcessEvent, U as UserInputEvent, n as createAuditEnvelopeEvent, o as createErrorEvent, p as createFinalAnswerChunkEvent, q as createFinalAnswerEvent, r as createHistorySummaryEvent, s as createStreamEndEvent, t as createSubRunTraceEvent, u as createThoughtEvent, v as createTodoUpdatedEvent, w as createToolCallDecisionEvent, x as createToolOutputEvent, y as createToolProcessEvent, z as createUserInputEvent, D as validateRuntimeEvent, G as validateRuntimeEvents } from './todo-Ca8llpRQ.cjs';
|
|
5
5
|
import { E as EventEnvelope, a as ExecutionTraceContext } from './execution-CAIypb41.cjs';
|
|
6
6
|
import { B as BaseSSEEvent, S as SSEErrorEvent, a as SSEEvent, b as SSEFinalAnswerChunkEvent, c as SSEFinalAnswerEvent, d as SSEHistorySummaryEvent, e as SSEMarkdownChunkEvent, f as SSERequiresUserInteractionEvent, g as SSEStreamEndEvent, h as SSESubRunTraceEvent, i as SSESummarizationEndEvent, j as SSESummarizationErrorEvent, k as SSESummarizationStartEvent, l as SSEThoughtEvent, m as SSETodoUpdatedEvent, n as SSEToolCallDecisionEvent, o as SSEToolOutputEvent, p as SSEToolProcessEvent, q as createSSEErrorEvent, r as createSSEFinalAnswerChunkEvent, s as createSSEFinalAnswerEvent, t as createSSEHistorySummaryEvent, u as createSSEMarkdownChunkEvent, v as createSSERequiresUserInteractionEvent, w as createSSEStreamEndEvent, x as createSSESubRunTraceEvent, y as createSSEThoughtEvent, z as createSSETodoUpdatedEvent, A as createSSEToolCallDecisionEvent, C as createSSEToolOutputEvent, D as createSSEToolProcessEvent, E as validateSSEEvent } from './sse-vPyrOPa0.cjs';
|
|
7
|
+
import { C as CanonicalLlmUsage, a as TokenCountConfidence, b as TokenCountSource, T as TokenRoute, c as TokenRouteCapabilities } from './token-usage-CqwT7-5K.cjs';
|
|
8
|
+
import { C as ContextBuildTokenEstimate, a as TokenUsageCalibrationSample, T as TokenUsageCalibrationTrace } from './token-calibration-Cxv6dDYF.cjs';
|
|
7
9
|
|
|
8
10
|
declare const DEFAULT_MAX_STEPS = 80;
|
|
9
11
|
|
|
@@ -46,7 +48,13 @@ declare const index_AuditEvidence: typeof AuditEvidence;
|
|
|
46
48
|
declare const index_AuditScope: typeof AuditScope;
|
|
47
49
|
declare const index_BaseEvent: typeof BaseEvent;
|
|
48
50
|
declare const index_BaseSSEEvent: typeof BaseSSEEvent;
|
|
51
|
+
declare const index_CanonicalLlmUsage: typeof CanonicalLlmUsage;
|
|
52
|
+
declare const index_ContextBuildTokenEstimate: typeof ContextBuildTokenEstimate;
|
|
53
|
+
declare const index_ContextComponentTokenLedgerEntry: typeof ContextComponentTokenLedgerEntry;
|
|
54
|
+
declare const index_ContextTokenComponent: typeof ContextTokenComponent;
|
|
55
|
+
declare const index_ContextTokenComponentKind: typeof ContextTokenComponentKind;
|
|
49
56
|
declare const index_ControlEvent: typeof ControlEvent;
|
|
57
|
+
declare const index_CostBreakdown: typeof CostBreakdown;
|
|
50
58
|
declare const index_DEFAULT_MAX_STEPS: typeof DEFAULT_MAX_STEPS;
|
|
51
59
|
declare const index_ErrorEvent: typeof ErrorEvent;
|
|
52
60
|
declare const index_EventEnvelope: typeof EventEnvelope;
|
|
@@ -56,10 +64,13 @@ declare const index_FinalAnswerEvent: typeof FinalAnswerEvent;
|
|
|
56
64
|
declare const index_HistorySummaryEvent: typeof HistorySummaryEvent;
|
|
57
65
|
declare const index_HistorySummaryMeta: typeof HistorySummaryMeta;
|
|
58
66
|
declare const index_ImageInfoMeta: typeof ImageInfoMeta;
|
|
67
|
+
declare const index_LlmUsageTokenLedgerEntry: typeof LlmUsageTokenLedgerEntry;
|
|
68
|
+
declare const index_ObservationTruncationMeta: typeof ObservationTruncationMeta;
|
|
59
69
|
declare const index_PersistentMetadata: typeof PersistentMetadata;
|
|
60
70
|
declare const index_ProviderReasoningDetails: typeof ProviderReasoningDetails;
|
|
61
71
|
declare const index_ProviderReasoningDetailsPayload: typeof ProviderReasoningDetailsPayload;
|
|
62
72
|
declare const index_RequiresUserInteractionEvent: typeof RequiresUserInteractionEvent;
|
|
73
|
+
declare const index_RunTokenUsageAggregate: typeof RunTokenUsageAggregate;
|
|
63
74
|
declare const index_RuntimeEvent: typeof RuntimeEvent;
|
|
64
75
|
declare const index_SSEErrorEvent: typeof SSEErrorEvent;
|
|
65
76
|
declare const index_SSEEvent: typeof SSEEvent;
|
|
@@ -86,6 +97,18 @@ declare const index_SystemMessage: typeof SystemMessage;
|
|
|
86
97
|
declare const index_TaskTrackingMeta: typeof TaskTrackingMeta;
|
|
87
98
|
declare const index_ThoughtEvent: typeof ThoughtEvent;
|
|
88
99
|
declare const index_TodoUpdatedEvent: typeof TodoUpdatedEvent;
|
|
100
|
+
declare const index_TokenCostComponent: typeof TokenCostComponent;
|
|
101
|
+
declare const index_TokenCountConfidence: typeof TokenCountConfidence;
|
|
102
|
+
declare const index_TokenCountSource: typeof TokenCountSource;
|
|
103
|
+
declare const index_TokenLedgerAggregate: typeof TokenLedgerAggregate;
|
|
104
|
+
declare const index_TokenLedgerEntry: typeof TokenLedgerEntry;
|
|
105
|
+
declare const index_TokenLedgerEntryKind: typeof TokenLedgerEntryKind;
|
|
106
|
+
declare const index_TokenPricing: typeof TokenPricing;
|
|
107
|
+
declare const index_TokenRoute: typeof TokenRoute;
|
|
108
|
+
declare const index_TokenRouteCapabilities: typeof TokenRouteCapabilities;
|
|
109
|
+
declare const index_TokenUsageCalibrationSample: typeof TokenUsageCalibrationSample;
|
|
110
|
+
declare const index_TokenUsageCalibrationTrace: typeof TokenUsageCalibrationTrace;
|
|
111
|
+
declare const index_TokenUsageTotals: typeof TokenUsageTotals;
|
|
89
112
|
declare const index_ToolBindingSpec: typeof ToolBindingSpec;
|
|
90
113
|
declare const index_ToolCallDecisionEvent: typeof ToolCallDecisionEvent;
|
|
91
114
|
declare const index_ToolCallDecisionPayload: typeof ToolCallDecisionPayload;
|
|
@@ -143,7 +166,7 @@ declare const index_validateRuntimeEvent: typeof validateRuntimeEvent;
|
|
|
143
166
|
declare const index_validateRuntimeEvents: typeof validateRuntimeEvents;
|
|
144
167
|
declare const index_validateSSEEvent: typeof validateSSEEvent;
|
|
145
168
|
declare namespace index {
|
|
146
|
-
export { index_AUDIT_ACTIONS as AUDIT_ACTIONS, index_AUDIT_DECISION_OUTCOMES as AUDIT_DECISION_OUTCOMES, index_AgentCapability as AgentCapability, index_AgentSpec as AgentSpec, index_AgentSpecAuditConfig as AgentSpecAuditConfig, index_AgentSpecBudgetPolicy as AgentSpecBudgetPolicy, index_AgentSpecCheckpointPolicy as AgentSpecCheckpointPolicy, index_AgentSpecContextPolicy as AgentSpecContextPolicy, index_AgentSpecContextPolicyInput as AgentSpecContextPolicyInput, index_AgentSpecContextTracePolicy as AgentSpecContextTracePolicy, index_AgentSpecMessageType as AgentSpecMessageType, index_AgentSpecModelHints as AgentSpecModelHints, index_AgentSpecMustKeepPolicy as AgentSpecMustKeepPolicy, index_AgentSpecMustKeepTruncationRule as AgentSpecMustKeepTruncationRule, index_AgentSpecProviderReplayPolicy as AgentSpecProviderReplayPolicy, index_AgentSpecReasoningRetentionPolicy as AgentSpecReasoningRetentionPolicy, index_AgentSpecSummarizationPolicy as AgentSpecSummarizationPolicy, index_AgentSpecSystemReminderExtraRule as AgentSpecSystemReminderExtraRule, index_AgentSpecSystemReminderPolicy as AgentSpecSystemReminderPolicy, index_AgentSpecSystemReminderTrigger as AgentSpecSystemReminderTrigger, index_AgentSpecTokenEstimationPolicy as AgentSpecTokenEstimationPolicy, index_AgentSpecToolHistoryPolicy as AgentSpecToolHistoryPolicy, index_AgentSpecToolObservationGovernancePolicy as AgentSpecToolObservationGovernancePolicy, index_AgentSpecToolOutputPolicy as AgentSpecToolOutputPolicy, index_AgentSpecWorkingMemoryPolicy as AgentSpecWorkingMemoryPolicy, index_AgentTodoItem as AgentTodoItem, index_AgentTodoSnapshot as AgentTodoSnapshot, index_AgentTodoStatus as AgentTodoStatus, index_AiMessage as AiMessage, index_AssistantMessage as AssistantMessage, index_AuditActor as AuditActor, index_AuditCostDelta as AuditCostDelta, index_AuditDecision as AuditDecision, index_AuditEnvelope as AuditEnvelope, index_AuditEnvelopeEvent as AuditEnvelopeEvent, index_AuditEvidence as AuditEvidence, index_AuditScope as AuditScope, index_BaseEvent as BaseEvent, index_BaseSSEEvent as BaseSSEEvent, index_ControlEvent as ControlEvent, index_DEFAULT_MAX_STEPS as DEFAULT_MAX_STEPS, index_ErrorEvent as ErrorEvent, index_EventEnvelope as EventEnvelope, index_ExecutionTraceContext as ExecutionTraceContext, index_FinalAnswerChunkEvent as FinalAnswerChunkEvent, index_FinalAnswerEvent as FinalAnswerEvent, index_HistorySummaryEvent as HistorySummaryEvent, index_HistorySummaryMeta as HistorySummaryMeta, index_ImageInfoMeta as ImageInfoMeta, index_PersistentMetadata as PersistentMetadata, index_ProviderReasoningDetails as ProviderReasoningDetails, index_ProviderReasoningDetailsPayload as ProviderReasoningDetailsPayload, index_RequiresUserInteractionEvent as RequiresUserInteractionEvent, index_RuntimeEvent as RuntimeEvent, index_SSEErrorEvent as SSEErrorEvent, index_SSEEvent as SSEEvent, index_SSEFinalAnswerChunkEvent as SSEFinalAnswerChunkEvent, index_SSEFinalAnswerEvent as SSEFinalAnswerEvent, index_SSEHistorySummaryEvent as SSEHistorySummaryEvent, index_SSEMarkdownChunkEvent as SSEMarkdownChunkEvent, index_SSERequiresUserInteractionEvent as SSERequiresUserInteractionEvent, index_SSEStreamEndEvent as SSEStreamEndEvent, index_SSESubRunTraceEvent as SSESubRunTraceEvent, index_SSESummarizationEndEvent as SSESummarizationEndEvent, index_SSESummarizationErrorEvent as SSESummarizationErrorEvent, index_SSESummarizationStartEvent as SSESummarizationStartEvent, index_SSEThoughtEvent as SSEThoughtEvent, index_SSETodoUpdatedEvent as SSETodoUpdatedEvent, index_SSEToolCallDecisionEvent as SSEToolCallDecisionEvent, index_SSEToolOutputEvent as SSEToolOutputEvent, index_SSEToolProcessEvent as SSEToolProcessEvent, index_SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS as SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS, index_Status as Status, index_StreamEndEvent as StreamEndEvent, index_SubRunTraceEvent as SubRunTraceEvent, index_SystemMessage as SystemMessage, index_TaskTrackingMeta as TaskTrackingMeta, index_ThoughtEvent as ThoughtEvent, index_TodoUpdatedEvent as TodoUpdatedEvent, index_ToolBindingSpec as ToolBindingSpec, index_ToolCallDecisionEvent as ToolCallDecisionEvent, index_ToolCallDecisionPayload as ToolCallDecisionPayload, index_ToolCallExtraContent as ToolCallExtraContent, index_ToolCallPhase as ToolCallPhase, index_ToolCallWire as ToolCallWire, index_ToolCallsMeta as ToolCallsMeta, index_ToolMessage as ToolMessage, index_ToolOutputEvent as ToolOutputEvent, index_ToolOutputMeta as ToolOutputMeta, index_ToolProcessEvent as ToolProcessEvent, index_UserInputEvent as UserInputEvent, index_UserMessage as UserMessage, index_createAssistantMessage as createAssistantMessage, index_createAuditEnvelopeEvent as createAuditEnvelopeEvent, index_createErrorEvent as createErrorEvent, index_createFinalAnswerChunkEvent as createFinalAnswerChunkEvent, index_createFinalAnswerEvent as createFinalAnswerEvent, index_createHistorySummaryEvent as createHistorySummaryEvent, index_createHistorySummaryMessage as createHistorySummaryMessage, index_createSSEErrorEvent as createSSEErrorEvent, index_createSSEFinalAnswerChunkEvent as createSSEFinalAnswerChunkEvent, index_createSSEFinalAnswerEvent as createSSEFinalAnswerEvent, index_createSSEHistorySummaryEvent as createSSEHistorySummaryEvent, index_createSSEMarkdownChunkEvent as createSSEMarkdownChunkEvent, index_createSSERequiresUserInteractionEvent as createSSERequiresUserInteractionEvent, index_createSSEStreamEndEvent as createSSEStreamEndEvent, index_createSSESubRunTraceEvent as createSSESubRunTraceEvent, index_createSSEThoughtEvent as createSSEThoughtEvent, index_createSSETodoUpdatedEvent as createSSETodoUpdatedEvent, index_createSSEToolCallDecisionEvent as createSSEToolCallDecisionEvent, index_createSSEToolOutputEvent as createSSEToolOutputEvent, index_createSSEToolProcessEvent as createSSEToolProcessEvent, index_createStreamEndEvent as createStreamEndEvent, index_createSubRunTraceEvent as createSubRunTraceEvent, index_createSystemMessage as createSystemMessage, index_createThoughtEvent as createThoughtEvent, index_createTodoUpdatedEvent as createTodoUpdatedEvent, index_createToolCallDecisionEvent as createToolCallDecisionEvent, index_createToolMessage as createToolMessage, index_createToolOutputEvent as createToolOutputEvent, index_createToolProcessEvent as createToolProcessEvent, index_createUserInputEvent as createUserInputEvent, index_createUserMessage as createUserMessage, index_defineContextPolicy as defineContextPolicy, index_hasToolCalls as hasToolCalls, index_isAssistantMessage as isAssistantMessage, index_isHistorySummaryMessage as isHistorySummaryMessage, index_isSystemMessage as isSystemMessage, index_isToolMessage as isToolMessage, index_isUserMessage as isUserMessage, index_validateAiMessage as validateAiMessage, index_validateHistorySummaryMeta as validateHistorySummaryMeta, index_validateRuntimeEvent as validateRuntimeEvent, index_validateRuntimeEvents as validateRuntimeEvents, index_validateSSEEvent as validateSSEEvent };
|
|
169
|
+
export { index_AUDIT_ACTIONS as AUDIT_ACTIONS, index_AUDIT_DECISION_OUTCOMES as AUDIT_DECISION_OUTCOMES, index_AgentCapability as AgentCapability, index_AgentSpec as AgentSpec, index_AgentSpecAuditConfig as AgentSpecAuditConfig, index_AgentSpecBudgetPolicy as AgentSpecBudgetPolicy, index_AgentSpecCheckpointPolicy as AgentSpecCheckpointPolicy, index_AgentSpecContextPolicy as AgentSpecContextPolicy, index_AgentSpecContextPolicyInput as AgentSpecContextPolicyInput, index_AgentSpecContextTracePolicy as AgentSpecContextTracePolicy, index_AgentSpecMessageType as AgentSpecMessageType, index_AgentSpecModelHints as AgentSpecModelHints, index_AgentSpecMustKeepPolicy as AgentSpecMustKeepPolicy, index_AgentSpecMustKeepTruncationRule as AgentSpecMustKeepTruncationRule, index_AgentSpecProviderReplayPolicy as AgentSpecProviderReplayPolicy, index_AgentSpecReasoningRetentionPolicy as AgentSpecReasoningRetentionPolicy, index_AgentSpecSummarizationPolicy as AgentSpecSummarizationPolicy, index_AgentSpecSystemReminderExtraRule as AgentSpecSystemReminderExtraRule, index_AgentSpecSystemReminderPolicy as AgentSpecSystemReminderPolicy, index_AgentSpecSystemReminderTrigger as AgentSpecSystemReminderTrigger, index_AgentSpecTokenEstimationPolicy as AgentSpecTokenEstimationPolicy, index_AgentSpecToolHistoryPolicy as AgentSpecToolHistoryPolicy, index_AgentSpecToolObservationGovernancePolicy as AgentSpecToolObservationGovernancePolicy, index_AgentSpecToolOutputPolicy as AgentSpecToolOutputPolicy, index_AgentSpecWorkingMemoryPolicy as AgentSpecWorkingMemoryPolicy, index_AgentTodoItem as AgentTodoItem, index_AgentTodoSnapshot as AgentTodoSnapshot, index_AgentTodoStatus as AgentTodoStatus, index_AiMessage as AiMessage, index_AssistantMessage as AssistantMessage, index_AuditActor as AuditActor, index_AuditCostDelta as AuditCostDelta, index_AuditDecision as AuditDecision, index_AuditEnvelope as AuditEnvelope, index_AuditEnvelopeEvent as AuditEnvelopeEvent, index_AuditEvidence as AuditEvidence, index_AuditScope as AuditScope, index_BaseEvent as BaseEvent, index_BaseSSEEvent as BaseSSEEvent, index_CanonicalLlmUsage as CanonicalLlmUsage, index_ContextBuildTokenEstimate as ContextBuildTokenEstimate, index_ContextComponentTokenLedgerEntry as ContextComponentTokenLedgerEntry, index_ContextTokenComponent as ContextTokenComponent, index_ContextTokenComponentKind as ContextTokenComponentKind, index_ControlEvent as ControlEvent, index_CostBreakdown as CostBreakdown, index_DEFAULT_MAX_STEPS as DEFAULT_MAX_STEPS, index_ErrorEvent as ErrorEvent, index_EventEnvelope as EventEnvelope, index_ExecutionTraceContext as ExecutionTraceContext, index_FinalAnswerChunkEvent as FinalAnswerChunkEvent, index_FinalAnswerEvent as FinalAnswerEvent, index_HistorySummaryEvent as HistorySummaryEvent, index_HistorySummaryMeta as HistorySummaryMeta, index_ImageInfoMeta as ImageInfoMeta, index_LlmUsageTokenLedgerEntry as LlmUsageTokenLedgerEntry, index_ObservationTruncationMeta as ObservationTruncationMeta, index_PersistentMetadata as PersistentMetadata, index_ProviderReasoningDetails as ProviderReasoningDetails, index_ProviderReasoningDetailsPayload as ProviderReasoningDetailsPayload, index_RequiresUserInteractionEvent as RequiresUserInteractionEvent, index_RunTokenUsageAggregate as RunTokenUsageAggregate, index_RuntimeEvent as RuntimeEvent, index_SSEErrorEvent as SSEErrorEvent, index_SSEEvent as SSEEvent, index_SSEFinalAnswerChunkEvent as SSEFinalAnswerChunkEvent, index_SSEFinalAnswerEvent as SSEFinalAnswerEvent, index_SSEHistorySummaryEvent as SSEHistorySummaryEvent, index_SSEMarkdownChunkEvent as SSEMarkdownChunkEvent, index_SSERequiresUserInteractionEvent as SSERequiresUserInteractionEvent, index_SSEStreamEndEvent as SSEStreamEndEvent, index_SSESubRunTraceEvent as SSESubRunTraceEvent, index_SSESummarizationEndEvent as SSESummarizationEndEvent, index_SSESummarizationErrorEvent as SSESummarizationErrorEvent, index_SSESummarizationStartEvent as SSESummarizationStartEvent, index_SSEThoughtEvent as SSEThoughtEvent, index_SSETodoUpdatedEvent as SSETodoUpdatedEvent, index_SSEToolCallDecisionEvent as SSEToolCallDecisionEvent, index_SSEToolOutputEvent as SSEToolOutputEvent, index_SSEToolProcessEvent as SSEToolProcessEvent, index_SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS as SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS, index_Status as Status, index_StreamEndEvent as StreamEndEvent, index_SubRunTraceEvent as SubRunTraceEvent, index_SystemMessage as SystemMessage, index_TaskTrackingMeta as TaskTrackingMeta, index_ThoughtEvent as ThoughtEvent, index_TodoUpdatedEvent as TodoUpdatedEvent, index_TokenCostComponent as TokenCostComponent, index_TokenCountConfidence as TokenCountConfidence, index_TokenCountSource as TokenCountSource, index_TokenLedgerAggregate as TokenLedgerAggregate, index_TokenLedgerEntry as TokenLedgerEntry, index_TokenLedgerEntryKind as TokenLedgerEntryKind, index_TokenPricing as TokenPricing, index_TokenRoute as TokenRoute, index_TokenRouteCapabilities as TokenRouteCapabilities, index_TokenUsageCalibrationSample as TokenUsageCalibrationSample, index_TokenUsageCalibrationTrace as TokenUsageCalibrationTrace, index_TokenUsageTotals as TokenUsageTotals, index_ToolBindingSpec as ToolBindingSpec, index_ToolCallDecisionEvent as ToolCallDecisionEvent, index_ToolCallDecisionPayload as ToolCallDecisionPayload, index_ToolCallExtraContent as ToolCallExtraContent, index_ToolCallPhase as ToolCallPhase, index_ToolCallWire as ToolCallWire, index_ToolCallsMeta as ToolCallsMeta, index_ToolMessage as ToolMessage, index_ToolOutputEvent as ToolOutputEvent, index_ToolOutputMeta as ToolOutputMeta, index_ToolProcessEvent as ToolProcessEvent, index_UserInputEvent as UserInputEvent, index_UserMessage as UserMessage, index_createAssistantMessage as createAssistantMessage, index_createAuditEnvelopeEvent as createAuditEnvelopeEvent, index_createErrorEvent as createErrorEvent, index_createFinalAnswerChunkEvent as createFinalAnswerChunkEvent, index_createFinalAnswerEvent as createFinalAnswerEvent, index_createHistorySummaryEvent as createHistorySummaryEvent, index_createHistorySummaryMessage as createHistorySummaryMessage, index_createSSEErrorEvent as createSSEErrorEvent, index_createSSEFinalAnswerChunkEvent as createSSEFinalAnswerChunkEvent, index_createSSEFinalAnswerEvent as createSSEFinalAnswerEvent, index_createSSEHistorySummaryEvent as createSSEHistorySummaryEvent, index_createSSEMarkdownChunkEvent as createSSEMarkdownChunkEvent, index_createSSERequiresUserInteractionEvent as createSSERequiresUserInteractionEvent, index_createSSEStreamEndEvent as createSSEStreamEndEvent, index_createSSESubRunTraceEvent as createSSESubRunTraceEvent, index_createSSEThoughtEvent as createSSEThoughtEvent, index_createSSETodoUpdatedEvent as createSSETodoUpdatedEvent, index_createSSEToolCallDecisionEvent as createSSEToolCallDecisionEvent, index_createSSEToolOutputEvent as createSSEToolOutputEvent, index_createSSEToolProcessEvent as createSSEToolProcessEvent, index_createStreamEndEvent as createStreamEndEvent, index_createSubRunTraceEvent as createSubRunTraceEvent, index_createSystemMessage as createSystemMessage, index_createThoughtEvent as createThoughtEvent, index_createTodoUpdatedEvent as createTodoUpdatedEvent, index_createToolCallDecisionEvent as createToolCallDecisionEvent, index_createToolMessage as createToolMessage, index_createToolOutputEvent as createToolOutputEvent, index_createToolProcessEvent as createToolProcessEvent, index_createUserInputEvent as createUserInputEvent, index_createUserMessage as createUserMessage, index_defineContextPolicy as defineContextPolicy, index_hasToolCalls as hasToolCalls, index_isAssistantMessage as isAssistantMessage, index_isHistorySummaryMessage as isHistorySummaryMessage, index_isSystemMessage as isSystemMessage, index_isToolMessage as isToolMessage, index_isUserMessage as isUserMessage, index_validateAiMessage as validateAiMessage, index_validateHistorySummaryMeta as validateHistorySummaryMeta, index_validateRuntimeEvent as validateRuntimeEvent, index_validateRuntimeEvents as validateRuntimeEvents, index_validateSSEEvent as validateSSEEvent };
|
|
147
170
|
}
|
|
148
171
|
|
|
149
172
|
export { DEFAULT_MAX_STEPS as D, index as i };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { A as AnyAgentEvent } from './agentEvents-DEB7Fy_J.js';
|
|
3
3
|
import { R as RuntimeEvent } from './todo-Ca8llpRQ.js';
|
|
4
|
-
import { A as AiMessage } from './messages-
|
|
5
|
-
import { c as ToolPresentationPort } from './ports-
|
|
4
|
+
import { A as AiMessage } from './messages-Br5SiLD3.js';
|
|
5
|
+
import { c as ToolPresentationPort } from './ports-fhp84x_C.js';
|
|
6
6
|
import { a as SSEEvent } from './sse-vPyrOPa0.js';
|
|
7
7
|
|
|
8
8
|
interface EventMappingContext {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { A as AiMessage, a as AssistantMessage, H as HistorySummaryMeta, I as ImageInfoMeta, P as PersistentMetadata, b as ProviderReasoningDetails, S as SystemMessage, T as TaskTrackingMeta, c as ToolCallExtraContent, d as ToolCallWire, e as ToolCallsMeta, f as ToolMessage, g as ToolOutputMeta, U as UserMessage, h as createAssistantMessage, i as createHistorySummaryMessage, j as createSystemMessage, k as createToolMessage, l as createUserMessage, m as hasToolCalls, n as isAssistantMessage, o as isHistorySummaryMessage, p as isSystemMessage, q as isToolMessage, r as isUserMessage, v as validateAiMessage, s as validateHistorySummaryMeta } from './messages-
|
|
2
|
-
import {
|
|
1
|
+
import { A as AiMessage, a as AssistantMessage, H as HistorySummaryMeta, I as ImageInfoMeta, O as ObservationTruncationMeta, P as PersistentMetadata, b as ProviderReasoningDetails, S as SystemMessage, T as TaskTrackingMeta, c as ToolCallExtraContent, d as ToolCallWire, e as ToolCallsMeta, f as ToolMessage, g as ToolOutputMeta, U as UserMessage, h as createAssistantMessage, i as createHistorySummaryMessage, j as createSystemMessage, k as createToolMessage, l as createUserMessage, m as hasToolCalls, n as isAssistantMessage, o as isHistorySummaryMessage, p as isSystemMessage, q as isToolMessage, r as isUserMessage, v as validateAiMessage, s as validateHistorySummaryMeta } from './messages-Br5SiLD3.js';
|
|
2
|
+
import { j as AgentCapability, f as AgentSpec, k as AgentSpecAuditConfig, l as AgentSpecBudgetPolicy, b as AgentSpecCheckpointPolicy, g as AgentSpecContextPolicy, h as AgentSpecContextPolicyInput, d as AgentSpecContextTracePolicy, m as AgentSpecMessageType, n as AgentSpecModelHints, o as AgentSpecMustKeepPolicy, p as AgentSpecMustKeepTruncationRule, a as AgentSpecProviderReplayPolicy, q as AgentSpecReasoningRetentionPolicy, c as AgentSpecSummarizationPolicy, r as AgentSpecSystemReminderExtraRule, e as AgentSpecSystemReminderPolicy, s as AgentSpecSystemReminderTrigger, i as AgentSpecTokenEstimationPolicy, t as AgentSpecToolHistoryPolicy, u as AgentSpecToolObservationGovernancePolicy, A as AgentSpecToolOutputPolicy, v as AgentSpecWorkingMemoryPolicy, w as ContextComponentTokenLedgerEntry, C as ContextTokenComponent, x as ContextTokenComponentKind, y as CostBreakdown, L as LlmUsageTokenLedgerEntry, R as RunTokenUsageAggregate, S as SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS, T as TokenCostComponent, z as TokenLedgerAggregate, B as TokenLedgerEntry, D as TokenLedgerEntryKind, E as TokenPricing, F as TokenUsageTotals, G as ToolBindingSpec, H as defineContextPolicy } from './token-accounting-CwpSPg4y.js';
|
|
3
3
|
import { A as AUDIT_ACTIONS, a as AUDIT_DECISION_OUTCOMES, b as AuditActor, c as AuditCostDelta, d as AuditDecision, e as AuditEnvelope, f as AuditEvidence, g as AuditScope } from './audit-BaRUGaqv.js';
|
|
4
4
|
import { A as AgentTodoItem, a as AgentTodoSnapshot, b as AgentTodoStatus, c as AuditEnvelopeEvent, B as BaseEvent, C as ControlEvent, E as ErrorEvent, F as FinalAnswerChunkEvent, d as FinalAnswerEvent, H as HistorySummaryEvent, P as ProviderReasoningDetailsPayload, e as RequiresUserInteractionEvent, R as RuntimeEvent, S as Status, f as StreamEndEvent, g as SubRunTraceEvent, T as ThoughtEvent, h as TodoUpdatedEvent, i as ToolCallDecisionEvent, j as ToolCallDecisionPayload, k as ToolCallPhase, l as ToolOutputEvent, m as ToolProcessEvent, U as UserInputEvent, n as createAuditEnvelopeEvent, o as createErrorEvent, p as createFinalAnswerChunkEvent, q as createFinalAnswerEvent, r as createHistorySummaryEvent, s as createStreamEndEvent, t as createSubRunTraceEvent, u as createThoughtEvent, v as createTodoUpdatedEvent, w as createToolCallDecisionEvent, x as createToolOutputEvent, y as createToolProcessEvent, z as createUserInputEvent, D as validateRuntimeEvent, G as validateRuntimeEvents } from './todo-Ca8llpRQ.js';
|
|
5
5
|
import { E as EventEnvelope, a as ExecutionTraceContext } from './execution-CAIypb41.js';
|
|
6
6
|
import { B as BaseSSEEvent, S as SSEErrorEvent, a as SSEEvent, b as SSEFinalAnswerChunkEvent, c as SSEFinalAnswerEvent, d as SSEHistorySummaryEvent, e as SSEMarkdownChunkEvent, f as SSERequiresUserInteractionEvent, g as SSEStreamEndEvent, h as SSESubRunTraceEvent, i as SSESummarizationEndEvent, j as SSESummarizationErrorEvent, k as SSESummarizationStartEvent, l as SSEThoughtEvent, m as SSETodoUpdatedEvent, n as SSEToolCallDecisionEvent, o as SSEToolOutputEvent, p as SSEToolProcessEvent, q as createSSEErrorEvent, r as createSSEFinalAnswerChunkEvent, s as createSSEFinalAnswerEvent, t as createSSEHistorySummaryEvent, u as createSSEMarkdownChunkEvent, v as createSSERequiresUserInteractionEvent, w as createSSEStreamEndEvent, x as createSSESubRunTraceEvent, y as createSSEThoughtEvent, z as createSSETodoUpdatedEvent, A as createSSEToolCallDecisionEvent, C as createSSEToolOutputEvent, D as createSSEToolProcessEvent, E as validateSSEEvent } from './sse-vPyrOPa0.js';
|
|
7
|
+
import { C as CanonicalLlmUsage, a as TokenCountConfidence, b as TokenCountSource, T as TokenRoute, c as TokenRouteCapabilities } from './token-usage-CqwT7-5K.js';
|
|
8
|
+
import { C as ContextBuildTokenEstimate, a as TokenUsageCalibrationSample, T as TokenUsageCalibrationTrace } from './token-calibration-Cxv6dDYF.js';
|
|
7
9
|
|
|
8
10
|
declare const DEFAULT_MAX_STEPS = 80;
|
|
9
11
|
|
|
@@ -46,7 +48,13 @@ declare const index_AuditEvidence: typeof AuditEvidence;
|
|
|
46
48
|
declare const index_AuditScope: typeof AuditScope;
|
|
47
49
|
declare const index_BaseEvent: typeof BaseEvent;
|
|
48
50
|
declare const index_BaseSSEEvent: typeof BaseSSEEvent;
|
|
51
|
+
declare const index_CanonicalLlmUsage: typeof CanonicalLlmUsage;
|
|
52
|
+
declare const index_ContextBuildTokenEstimate: typeof ContextBuildTokenEstimate;
|
|
53
|
+
declare const index_ContextComponentTokenLedgerEntry: typeof ContextComponentTokenLedgerEntry;
|
|
54
|
+
declare const index_ContextTokenComponent: typeof ContextTokenComponent;
|
|
55
|
+
declare const index_ContextTokenComponentKind: typeof ContextTokenComponentKind;
|
|
49
56
|
declare const index_ControlEvent: typeof ControlEvent;
|
|
57
|
+
declare const index_CostBreakdown: typeof CostBreakdown;
|
|
50
58
|
declare const index_DEFAULT_MAX_STEPS: typeof DEFAULT_MAX_STEPS;
|
|
51
59
|
declare const index_ErrorEvent: typeof ErrorEvent;
|
|
52
60
|
declare const index_EventEnvelope: typeof EventEnvelope;
|
|
@@ -56,10 +64,13 @@ declare const index_FinalAnswerEvent: typeof FinalAnswerEvent;
|
|
|
56
64
|
declare const index_HistorySummaryEvent: typeof HistorySummaryEvent;
|
|
57
65
|
declare const index_HistorySummaryMeta: typeof HistorySummaryMeta;
|
|
58
66
|
declare const index_ImageInfoMeta: typeof ImageInfoMeta;
|
|
67
|
+
declare const index_LlmUsageTokenLedgerEntry: typeof LlmUsageTokenLedgerEntry;
|
|
68
|
+
declare const index_ObservationTruncationMeta: typeof ObservationTruncationMeta;
|
|
59
69
|
declare const index_PersistentMetadata: typeof PersistentMetadata;
|
|
60
70
|
declare const index_ProviderReasoningDetails: typeof ProviderReasoningDetails;
|
|
61
71
|
declare const index_ProviderReasoningDetailsPayload: typeof ProviderReasoningDetailsPayload;
|
|
62
72
|
declare const index_RequiresUserInteractionEvent: typeof RequiresUserInteractionEvent;
|
|
73
|
+
declare const index_RunTokenUsageAggregate: typeof RunTokenUsageAggregate;
|
|
63
74
|
declare const index_RuntimeEvent: typeof RuntimeEvent;
|
|
64
75
|
declare const index_SSEErrorEvent: typeof SSEErrorEvent;
|
|
65
76
|
declare const index_SSEEvent: typeof SSEEvent;
|
|
@@ -86,6 +97,18 @@ declare const index_SystemMessage: typeof SystemMessage;
|
|
|
86
97
|
declare const index_TaskTrackingMeta: typeof TaskTrackingMeta;
|
|
87
98
|
declare const index_ThoughtEvent: typeof ThoughtEvent;
|
|
88
99
|
declare const index_TodoUpdatedEvent: typeof TodoUpdatedEvent;
|
|
100
|
+
declare const index_TokenCostComponent: typeof TokenCostComponent;
|
|
101
|
+
declare const index_TokenCountConfidence: typeof TokenCountConfidence;
|
|
102
|
+
declare const index_TokenCountSource: typeof TokenCountSource;
|
|
103
|
+
declare const index_TokenLedgerAggregate: typeof TokenLedgerAggregate;
|
|
104
|
+
declare const index_TokenLedgerEntry: typeof TokenLedgerEntry;
|
|
105
|
+
declare const index_TokenLedgerEntryKind: typeof TokenLedgerEntryKind;
|
|
106
|
+
declare const index_TokenPricing: typeof TokenPricing;
|
|
107
|
+
declare const index_TokenRoute: typeof TokenRoute;
|
|
108
|
+
declare const index_TokenRouteCapabilities: typeof TokenRouteCapabilities;
|
|
109
|
+
declare const index_TokenUsageCalibrationSample: typeof TokenUsageCalibrationSample;
|
|
110
|
+
declare const index_TokenUsageCalibrationTrace: typeof TokenUsageCalibrationTrace;
|
|
111
|
+
declare const index_TokenUsageTotals: typeof TokenUsageTotals;
|
|
89
112
|
declare const index_ToolBindingSpec: typeof ToolBindingSpec;
|
|
90
113
|
declare const index_ToolCallDecisionEvent: typeof ToolCallDecisionEvent;
|
|
91
114
|
declare const index_ToolCallDecisionPayload: typeof ToolCallDecisionPayload;
|
|
@@ -143,7 +166,7 @@ declare const index_validateRuntimeEvent: typeof validateRuntimeEvent;
|
|
|
143
166
|
declare const index_validateRuntimeEvents: typeof validateRuntimeEvents;
|
|
144
167
|
declare const index_validateSSEEvent: typeof validateSSEEvent;
|
|
145
168
|
declare namespace index {
|
|
146
|
-
export { index_AUDIT_ACTIONS as AUDIT_ACTIONS, index_AUDIT_DECISION_OUTCOMES as AUDIT_DECISION_OUTCOMES, index_AgentCapability as AgentCapability, index_AgentSpec as AgentSpec, index_AgentSpecAuditConfig as AgentSpecAuditConfig, index_AgentSpecBudgetPolicy as AgentSpecBudgetPolicy, index_AgentSpecCheckpointPolicy as AgentSpecCheckpointPolicy, index_AgentSpecContextPolicy as AgentSpecContextPolicy, index_AgentSpecContextPolicyInput as AgentSpecContextPolicyInput, index_AgentSpecContextTracePolicy as AgentSpecContextTracePolicy, index_AgentSpecMessageType as AgentSpecMessageType, index_AgentSpecModelHints as AgentSpecModelHints, index_AgentSpecMustKeepPolicy as AgentSpecMustKeepPolicy, index_AgentSpecMustKeepTruncationRule as AgentSpecMustKeepTruncationRule, index_AgentSpecProviderReplayPolicy as AgentSpecProviderReplayPolicy, index_AgentSpecReasoningRetentionPolicy as AgentSpecReasoningRetentionPolicy, index_AgentSpecSummarizationPolicy as AgentSpecSummarizationPolicy, index_AgentSpecSystemReminderExtraRule as AgentSpecSystemReminderExtraRule, index_AgentSpecSystemReminderPolicy as AgentSpecSystemReminderPolicy, index_AgentSpecSystemReminderTrigger as AgentSpecSystemReminderTrigger, index_AgentSpecTokenEstimationPolicy as AgentSpecTokenEstimationPolicy, index_AgentSpecToolHistoryPolicy as AgentSpecToolHistoryPolicy, index_AgentSpecToolObservationGovernancePolicy as AgentSpecToolObservationGovernancePolicy, index_AgentSpecToolOutputPolicy as AgentSpecToolOutputPolicy, index_AgentSpecWorkingMemoryPolicy as AgentSpecWorkingMemoryPolicy, index_AgentTodoItem as AgentTodoItem, index_AgentTodoSnapshot as AgentTodoSnapshot, index_AgentTodoStatus as AgentTodoStatus, index_AiMessage as AiMessage, index_AssistantMessage as AssistantMessage, index_AuditActor as AuditActor, index_AuditCostDelta as AuditCostDelta, index_AuditDecision as AuditDecision, index_AuditEnvelope as AuditEnvelope, index_AuditEnvelopeEvent as AuditEnvelopeEvent, index_AuditEvidence as AuditEvidence, index_AuditScope as AuditScope, index_BaseEvent as BaseEvent, index_BaseSSEEvent as BaseSSEEvent, index_ControlEvent as ControlEvent, index_DEFAULT_MAX_STEPS as DEFAULT_MAX_STEPS, index_ErrorEvent as ErrorEvent, index_EventEnvelope as EventEnvelope, index_ExecutionTraceContext as ExecutionTraceContext, index_FinalAnswerChunkEvent as FinalAnswerChunkEvent, index_FinalAnswerEvent as FinalAnswerEvent, index_HistorySummaryEvent as HistorySummaryEvent, index_HistorySummaryMeta as HistorySummaryMeta, index_ImageInfoMeta as ImageInfoMeta, index_PersistentMetadata as PersistentMetadata, index_ProviderReasoningDetails as ProviderReasoningDetails, index_ProviderReasoningDetailsPayload as ProviderReasoningDetailsPayload, index_RequiresUserInteractionEvent as RequiresUserInteractionEvent, index_RuntimeEvent as RuntimeEvent, index_SSEErrorEvent as SSEErrorEvent, index_SSEEvent as SSEEvent, index_SSEFinalAnswerChunkEvent as SSEFinalAnswerChunkEvent, index_SSEFinalAnswerEvent as SSEFinalAnswerEvent, index_SSEHistorySummaryEvent as SSEHistorySummaryEvent, index_SSEMarkdownChunkEvent as SSEMarkdownChunkEvent, index_SSERequiresUserInteractionEvent as SSERequiresUserInteractionEvent, index_SSEStreamEndEvent as SSEStreamEndEvent, index_SSESubRunTraceEvent as SSESubRunTraceEvent, index_SSESummarizationEndEvent as SSESummarizationEndEvent, index_SSESummarizationErrorEvent as SSESummarizationErrorEvent, index_SSESummarizationStartEvent as SSESummarizationStartEvent, index_SSEThoughtEvent as SSEThoughtEvent, index_SSETodoUpdatedEvent as SSETodoUpdatedEvent, index_SSEToolCallDecisionEvent as SSEToolCallDecisionEvent, index_SSEToolOutputEvent as SSEToolOutputEvent, index_SSEToolProcessEvent as SSEToolProcessEvent, index_SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS as SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS, index_Status as Status, index_StreamEndEvent as StreamEndEvent, index_SubRunTraceEvent as SubRunTraceEvent, index_SystemMessage as SystemMessage, index_TaskTrackingMeta as TaskTrackingMeta, index_ThoughtEvent as ThoughtEvent, index_TodoUpdatedEvent as TodoUpdatedEvent, index_ToolBindingSpec as ToolBindingSpec, index_ToolCallDecisionEvent as ToolCallDecisionEvent, index_ToolCallDecisionPayload as ToolCallDecisionPayload, index_ToolCallExtraContent as ToolCallExtraContent, index_ToolCallPhase as ToolCallPhase, index_ToolCallWire as ToolCallWire, index_ToolCallsMeta as ToolCallsMeta, index_ToolMessage as ToolMessage, index_ToolOutputEvent as ToolOutputEvent, index_ToolOutputMeta as ToolOutputMeta, index_ToolProcessEvent as ToolProcessEvent, index_UserInputEvent as UserInputEvent, index_UserMessage as UserMessage, index_createAssistantMessage as createAssistantMessage, index_createAuditEnvelopeEvent as createAuditEnvelopeEvent, index_createErrorEvent as createErrorEvent, index_createFinalAnswerChunkEvent as createFinalAnswerChunkEvent, index_createFinalAnswerEvent as createFinalAnswerEvent, index_createHistorySummaryEvent as createHistorySummaryEvent, index_createHistorySummaryMessage as createHistorySummaryMessage, index_createSSEErrorEvent as createSSEErrorEvent, index_createSSEFinalAnswerChunkEvent as createSSEFinalAnswerChunkEvent, index_createSSEFinalAnswerEvent as createSSEFinalAnswerEvent, index_createSSEHistorySummaryEvent as createSSEHistorySummaryEvent, index_createSSEMarkdownChunkEvent as createSSEMarkdownChunkEvent, index_createSSERequiresUserInteractionEvent as createSSERequiresUserInteractionEvent, index_createSSEStreamEndEvent as createSSEStreamEndEvent, index_createSSESubRunTraceEvent as createSSESubRunTraceEvent, index_createSSEThoughtEvent as createSSEThoughtEvent, index_createSSETodoUpdatedEvent as createSSETodoUpdatedEvent, index_createSSEToolCallDecisionEvent as createSSEToolCallDecisionEvent, index_createSSEToolOutputEvent as createSSEToolOutputEvent, index_createSSEToolProcessEvent as createSSEToolProcessEvent, index_createStreamEndEvent as createStreamEndEvent, index_createSubRunTraceEvent as createSubRunTraceEvent, index_createSystemMessage as createSystemMessage, index_createThoughtEvent as createThoughtEvent, index_createTodoUpdatedEvent as createTodoUpdatedEvent, index_createToolCallDecisionEvent as createToolCallDecisionEvent, index_createToolMessage as createToolMessage, index_createToolOutputEvent as createToolOutputEvent, index_createToolProcessEvent as createToolProcessEvent, index_createUserInputEvent as createUserInputEvent, index_createUserMessage as createUserMessage, index_defineContextPolicy as defineContextPolicy, index_hasToolCalls as hasToolCalls, index_isAssistantMessage as isAssistantMessage, index_isHistorySummaryMessage as isHistorySummaryMessage, index_isSystemMessage as isSystemMessage, index_isToolMessage as isToolMessage, index_isUserMessage as isUserMessage, index_validateAiMessage as validateAiMessage, index_validateHistorySummaryMeta as validateHistorySummaryMeta, index_validateRuntimeEvent as validateRuntimeEvent, index_validateRuntimeEvents as validateRuntimeEvents, index_validateSSEEvent as validateSSEEvent };
|
|
169
|
+
export { index_AUDIT_ACTIONS as AUDIT_ACTIONS, index_AUDIT_DECISION_OUTCOMES as AUDIT_DECISION_OUTCOMES, index_AgentCapability as AgentCapability, index_AgentSpec as AgentSpec, index_AgentSpecAuditConfig as AgentSpecAuditConfig, index_AgentSpecBudgetPolicy as AgentSpecBudgetPolicy, index_AgentSpecCheckpointPolicy as AgentSpecCheckpointPolicy, index_AgentSpecContextPolicy as AgentSpecContextPolicy, index_AgentSpecContextPolicyInput as AgentSpecContextPolicyInput, index_AgentSpecContextTracePolicy as AgentSpecContextTracePolicy, index_AgentSpecMessageType as AgentSpecMessageType, index_AgentSpecModelHints as AgentSpecModelHints, index_AgentSpecMustKeepPolicy as AgentSpecMustKeepPolicy, index_AgentSpecMustKeepTruncationRule as AgentSpecMustKeepTruncationRule, index_AgentSpecProviderReplayPolicy as AgentSpecProviderReplayPolicy, index_AgentSpecReasoningRetentionPolicy as AgentSpecReasoningRetentionPolicy, index_AgentSpecSummarizationPolicy as AgentSpecSummarizationPolicy, index_AgentSpecSystemReminderExtraRule as AgentSpecSystemReminderExtraRule, index_AgentSpecSystemReminderPolicy as AgentSpecSystemReminderPolicy, index_AgentSpecSystemReminderTrigger as AgentSpecSystemReminderTrigger, index_AgentSpecTokenEstimationPolicy as AgentSpecTokenEstimationPolicy, index_AgentSpecToolHistoryPolicy as AgentSpecToolHistoryPolicy, index_AgentSpecToolObservationGovernancePolicy as AgentSpecToolObservationGovernancePolicy, index_AgentSpecToolOutputPolicy as AgentSpecToolOutputPolicy, index_AgentSpecWorkingMemoryPolicy as AgentSpecWorkingMemoryPolicy, index_AgentTodoItem as AgentTodoItem, index_AgentTodoSnapshot as AgentTodoSnapshot, index_AgentTodoStatus as AgentTodoStatus, index_AiMessage as AiMessage, index_AssistantMessage as AssistantMessage, index_AuditActor as AuditActor, index_AuditCostDelta as AuditCostDelta, index_AuditDecision as AuditDecision, index_AuditEnvelope as AuditEnvelope, index_AuditEnvelopeEvent as AuditEnvelopeEvent, index_AuditEvidence as AuditEvidence, index_AuditScope as AuditScope, index_BaseEvent as BaseEvent, index_BaseSSEEvent as BaseSSEEvent, index_CanonicalLlmUsage as CanonicalLlmUsage, index_ContextBuildTokenEstimate as ContextBuildTokenEstimate, index_ContextComponentTokenLedgerEntry as ContextComponentTokenLedgerEntry, index_ContextTokenComponent as ContextTokenComponent, index_ContextTokenComponentKind as ContextTokenComponentKind, index_ControlEvent as ControlEvent, index_CostBreakdown as CostBreakdown, index_DEFAULT_MAX_STEPS as DEFAULT_MAX_STEPS, index_ErrorEvent as ErrorEvent, index_EventEnvelope as EventEnvelope, index_ExecutionTraceContext as ExecutionTraceContext, index_FinalAnswerChunkEvent as FinalAnswerChunkEvent, index_FinalAnswerEvent as FinalAnswerEvent, index_HistorySummaryEvent as HistorySummaryEvent, index_HistorySummaryMeta as HistorySummaryMeta, index_ImageInfoMeta as ImageInfoMeta, index_LlmUsageTokenLedgerEntry as LlmUsageTokenLedgerEntry, index_ObservationTruncationMeta as ObservationTruncationMeta, index_PersistentMetadata as PersistentMetadata, index_ProviderReasoningDetails as ProviderReasoningDetails, index_ProviderReasoningDetailsPayload as ProviderReasoningDetailsPayload, index_RequiresUserInteractionEvent as RequiresUserInteractionEvent, index_RunTokenUsageAggregate as RunTokenUsageAggregate, index_RuntimeEvent as RuntimeEvent, index_SSEErrorEvent as SSEErrorEvent, index_SSEEvent as SSEEvent, index_SSEFinalAnswerChunkEvent as SSEFinalAnswerChunkEvent, index_SSEFinalAnswerEvent as SSEFinalAnswerEvent, index_SSEHistorySummaryEvent as SSEHistorySummaryEvent, index_SSEMarkdownChunkEvent as SSEMarkdownChunkEvent, index_SSERequiresUserInteractionEvent as SSERequiresUserInteractionEvent, index_SSEStreamEndEvent as SSEStreamEndEvent, index_SSESubRunTraceEvent as SSESubRunTraceEvent, index_SSESummarizationEndEvent as SSESummarizationEndEvent, index_SSESummarizationErrorEvent as SSESummarizationErrorEvent, index_SSESummarizationStartEvent as SSESummarizationStartEvent, index_SSEThoughtEvent as SSEThoughtEvent, index_SSETodoUpdatedEvent as SSETodoUpdatedEvent, index_SSEToolCallDecisionEvent as SSEToolCallDecisionEvent, index_SSEToolOutputEvent as SSEToolOutputEvent, index_SSEToolProcessEvent as SSEToolProcessEvent, index_SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS as SYSTEM_REMINDER_BUILTIN_TRIGGER_KINDS, index_Status as Status, index_StreamEndEvent as StreamEndEvent, index_SubRunTraceEvent as SubRunTraceEvent, index_SystemMessage as SystemMessage, index_TaskTrackingMeta as TaskTrackingMeta, index_ThoughtEvent as ThoughtEvent, index_TodoUpdatedEvent as TodoUpdatedEvent, index_TokenCostComponent as TokenCostComponent, index_TokenCountConfidence as TokenCountConfidence, index_TokenCountSource as TokenCountSource, index_TokenLedgerAggregate as TokenLedgerAggregate, index_TokenLedgerEntry as TokenLedgerEntry, index_TokenLedgerEntryKind as TokenLedgerEntryKind, index_TokenPricing as TokenPricing, index_TokenRoute as TokenRoute, index_TokenRouteCapabilities as TokenRouteCapabilities, index_TokenUsageCalibrationSample as TokenUsageCalibrationSample, index_TokenUsageCalibrationTrace as TokenUsageCalibrationTrace, index_TokenUsageTotals as TokenUsageTotals, index_ToolBindingSpec as ToolBindingSpec, index_ToolCallDecisionEvent as ToolCallDecisionEvent, index_ToolCallDecisionPayload as ToolCallDecisionPayload, index_ToolCallExtraContent as ToolCallExtraContent, index_ToolCallPhase as ToolCallPhase, index_ToolCallWire as ToolCallWire, index_ToolCallsMeta as ToolCallsMeta, index_ToolMessage as ToolMessage, index_ToolOutputEvent as ToolOutputEvent, index_ToolOutputMeta as ToolOutputMeta, index_ToolProcessEvent as ToolProcessEvent, index_UserInputEvent as UserInputEvent, index_UserMessage as UserMessage, index_createAssistantMessage as createAssistantMessage, index_createAuditEnvelopeEvent as createAuditEnvelopeEvent, index_createErrorEvent as createErrorEvent, index_createFinalAnswerChunkEvent as createFinalAnswerChunkEvent, index_createFinalAnswerEvent as createFinalAnswerEvent, index_createHistorySummaryEvent as createHistorySummaryEvent, index_createHistorySummaryMessage as createHistorySummaryMessage, index_createSSEErrorEvent as createSSEErrorEvent, index_createSSEFinalAnswerChunkEvent as createSSEFinalAnswerChunkEvent, index_createSSEFinalAnswerEvent as createSSEFinalAnswerEvent, index_createSSEHistorySummaryEvent as createSSEHistorySummaryEvent, index_createSSEMarkdownChunkEvent as createSSEMarkdownChunkEvent, index_createSSERequiresUserInteractionEvent as createSSERequiresUserInteractionEvent, index_createSSEStreamEndEvent as createSSEStreamEndEvent, index_createSSESubRunTraceEvent as createSSESubRunTraceEvent, index_createSSEThoughtEvent as createSSEThoughtEvent, index_createSSETodoUpdatedEvent as createSSETodoUpdatedEvent, index_createSSEToolCallDecisionEvent as createSSEToolCallDecisionEvent, index_createSSEToolOutputEvent as createSSEToolOutputEvent, index_createSSEToolProcessEvent as createSSEToolProcessEvent, index_createStreamEndEvent as createStreamEndEvent, index_createSubRunTraceEvent as createSubRunTraceEvent, index_createSystemMessage as createSystemMessage, index_createThoughtEvent as createThoughtEvent, index_createTodoUpdatedEvent as createTodoUpdatedEvent, index_createToolCallDecisionEvent as createToolCallDecisionEvent, index_createToolMessage as createToolMessage, index_createToolOutputEvent as createToolOutputEvent, index_createToolProcessEvent as createToolProcessEvent, index_createUserInputEvent as createUserInputEvent, index_createUserMessage as createUserMessage, index_defineContextPolicy as defineContextPolicy, index_hasToolCalls as hasToolCalls, index_isAssistantMessage as isAssistantMessage, index_isHistorySummaryMessage as isHistorySummaryMessage, index_isSystemMessage as isSystemMessage, index_isToolMessage as isToolMessage, index_isUserMessage as isUserMessage, index_validateAiMessage as validateAiMessage, index_validateHistorySummaryMeta as validateHistorySummaryMeta, index_validateRuntimeEvent as validateRuntimeEvent, index_validateRuntimeEvents as validateRuntimeEvents, index_validateSSEEvent as validateSSEEvent };
|
|
147
170
|
}
|
|
148
171
|
|
|
149
172
|
export { DEFAULT_MAX_STEPS as D, index as i };
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
import { A as AgentInvocationRequest } from './agent-invocation-
|
|
2
|
-
import { A as AgentAiEngine, a as AgentAiEngineStreamContent, b as AuditPort } from './audit-
|
|
3
|
-
import { T as
|
|
4
|
-
import {
|
|
1
|
+
import { A as AgentInvocationRequest } from './agent-invocation-CAlm9qOw.cjs';
|
|
2
|
+
import { A as AgentAiEngine, a as AgentAiEngineStreamContent, b as AuditPort } from './audit-DnzNQzwq.cjs';
|
|
3
|
+
import { a as TokenCountResult, T as TokenCounterPort } from './token-counter-CFfP8PQb.cjs';
|
|
4
|
+
import { T as TokenizerPort } from './tokenizer-DoGsBE3A.cjs';
|
|
5
|
+
import { T as TokenRoute, C as CanonicalLlmUsage } from './token-usage-CqwT7-5K.cjs';
|
|
6
|
+
import { L as LlmCallOptions, a as LlmRequestMessage, b as LlmResponseContent, c as LlmRetryConfig, P as ProviderReasoningDetails, T as ToolCall, d as ToolCallChunk, e as ToolCallExtraContent } from './ai-engine.types-CeLoM624.cjs';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 可选 usage 归一化端口。
|
|
10
|
+
*
|
|
11
|
+
* host 若不想在 adapter response 里直接回传 canonicalUsage,可集中注入该端口;
|
|
12
|
+
* linnkit 只定义协议,不在这里放 provider family 规则。
|
|
13
|
+
*/
|
|
14
|
+
interface UsageNormalizer {
|
|
15
|
+
normalize(input: {
|
|
16
|
+
route: TokenRoute;
|
|
17
|
+
rawUsage: unknown;
|
|
18
|
+
}): CanonicalLlmUsage | undefined;
|
|
19
|
+
}
|
|
5
20
|
|
|
6
21
|
declare const index_AgentAiEngine: typeof AgentAiEngine;
|
|
7
22
|
declare const index_AgentAiEngineStreamContent: typeof AgentAiEngineStreamContent;
|
|
@@ -12,12 +27,15 @@ declare const index_LlmRequestMessage: typeof LlmRequestMessage;
|
|
|
12
27
|
declare const index_LlmResponseContent: typeof LlmResponseContent;
|
|
13
28
|
declare const index_LlmRetryConfig: typeof LlmRetryConfig;
|
|
14
29
|
declare const index_ProviderReasoningDetails: typeof ProviderReasoningDetails;
|
|
30
|
+
declare const index_TokenCountResult: typeof TokenCountResult;
|
|
31
|
+
declare const index_TokenCounterPort: typeof TokenCounterPort;
|
|
15
32
|
declare const index_TokenizerPort: typeof TokenizerPort;
|
|
16
33
|
declare const index_ToolCall: typeof ToolCall;
|
|
17
34
|
declare const index_ToolCallChunk: typeof ToolCallChunk;
|
|
18
35
|
declare const index_ToolCallExtraContent: typeof ToolCallExtraContent;
|
|
36
|
+
type index_UsageNormalizer = UsageNormalizer;
|
|
19
37
|
declare namespace index {
|
|
20
|
-
export { index_AgentAiEngine as AgentAiEngine, index_AgentAiEngineStreamContent as AgentAiEngineStreamContent, index_AgentInvocationRequest as AgentInvocationRequest, index_AuditPort as AuditPort, index_LlmCallOptions as LlmCallOptions, index_LlmRequestMessage as LlmRequestMessage, index_LlmResponseContent as LlmResponseContent, index_LlmRetryConfig as LlmRetryConfig, index_ProviderReasoningDetails as ProviderReasoningDetails, index_TokenizerPort as TokenizerPort, index_ToolCall as ToolCall, index_ToolCallChunk as ToolCallChunk, index_ToolCallExtraContent as ToolCallExtraContent };
|
|
38
|
+
export { index_AgentAiEngine as AgentAiEngine, index_AgentAiEngineStreamContent as AgentAiEngineStreamContent, index_AgentInvocationRequest as AgentInvocationRequest, index_AuditPort as AuditPort, index_LlmCallOptions as LlmCallOptions, index_LlmRequestMessage as LlmRequestMessage, index_LlmResponseContent as LlmResponseContent, index_LlmRetryConfig as LlmRetryConfig, index_ProviderReasoningDetails as ProviderReasoningDetails, index_TokenCountResult as TokenCountResult, index_TokenCounterPort as TokenCounterPort, index_TokenizerPort as TokenizerPort, index_ToolCall as ToolCall, index_ToolCallChunk as ToolCallChunk, index_ToolCallExtraContent as ToolCallExtraContent, type index_UsageNormalizer as UsageNormalizer };
|
|
21
39
|
}
|
|
22
40
|
|
|
23
|
-
export { index as i };
|
|
41
|
+
export { type UsageNormalizer as U, index as i };
|