@cognipeer/agent-sdk 0.8.0 → 0.8.2
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/dist/index.cjs +1237 -612
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +268 -1
- package/dist/index.d.ts +268 -1
- package/dist/index.mjs +1223 -614
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -302,6 +302,110 @@ type SkillRegistryRef = {
|
|
|
302
302
|
};
|
|
303
303
|
declare function createSkillRegistryRef(): SkillRegistryRef;
|
|
304
304
|
|
|
305
|
+
type ContextPilotJsonCompressionConfig = {
|
|
306
|
+
enabled?: boolean;
|
|
307
|
+
/** Fraction (0-1) of array items to retain. Lower = more aggressive. */
|
|
308
|
+
targetRatio?: number;
|
|
309
|
+
/** Minimum array length before compression is even considered. */
|
|
310
|
+
minItems?: number;
|
|
311
|
+
};
|
|
312
|
+
type ContextPilotTextCompressionConfig = {
|
|
313
|
+
enabled?: boolean;
|
|
314
|
+
/** Fraction (0-1) of sentences to retain. */
|
|
315
|
+
targetRatio?: number;
|
|
316
|
+
/** Minimum character length before compression is even considered. */
|
|
317
|
+
minChars?: number;
|
|
318
|
+
};
|
|
319
|
+
type ContextPilotDiffCompressionConfig = {
|
|
320
|
+
enabled?: boolean;
|
|
321
|
+
/** Number of unchanged context lines to keep around each hunk boundary. */
|
|
322
|
+
contextLines?: number;
|
|
323
|
+
};
|
|
324
|
+
type ContextPilotLogCompressionConfig = {
|
|
325
|
+
enabled?: boolean;
|
|
326
|
+
/** Maximum number of retained lines after scoring. */
|
|
327
|
+
maxLines?: number;
|
|
328
|
+
};
|
|
329
|
+
type ContextPilotSearchCompressionConfig = {
|
|
330
|
+
enabled?: boolean;
|
|
331
|
+
/** Maximum number of retained match lines. */
|
|
332
|
+
maxMatches?: number;
|
|
333
|
+
};
|
|
334
|
+
type ContextPilotCompressionConfig = {
|
|
335
|
+
json?: ContextPilotJsonCompressionConfig;
|
|
336
|
+
text?: ContextPilotTextCompressionConfig;
|
|
337
|
+
diff?: ContextPilotDiffCompressionConfig;
|
|
338
|
+
log?: ContextPilotLogCompressionConfig;
|
|
339
|
+
search?: ContextPilotSearchCompressionConfig;
|
|
340
|
+
};
|
|
341
|
+
type ContextPilotCCRConfig = {
|
|
342
|
+
enabled?: boolean;
|
|
343
|
+
/** Time-to-live for stored originals, in milliseconds. */
|
|
344
|
+
ttlMs?: number;
|
|
345
|
+
/** Maximum number of entries kept in the reversible store (oldest evicted first). */
|
|
346
|
+
maxEntries?: number;
|
|
347
|
+
};
|
|
348
|
+
type ContextPilotCacheAlignmentConfig = {
|
|
349
|
+
enabled?: boolean;
|
|
350
|
+
/** Emit a one-time warning (event + trace) when volatile content is detected in the system prompt. */
|
|
351
|
+
warnOnVolatilePrompt?: boolean;
|
|
352
|
+
};
|
|
353
|
+
type ContextPilotDedupConfig = {
|
|
354
|
+
enabled?: boolean;
|
|
355
|
+
/** Minimum serialized size (chars) before a tool output is eligible for cross-turn dedup. */
|
|
356
|
+
minChars?: number;
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* ContextPilot: native context/token optimization layer.
|
|
360
|
+
*
|
|
361
|
+
* Runs deterministically (no extra model calls) at tool-execution time to
|
|
362
|
+
* shrink large tool outputs before they enter the transcript, while keeping
|
|
363
|
+
* every original payload recoverable via `get_tool_response`.
|
|
364
|
+
*/
|
|
365
|
+
type ContextPilotConfig = {
|
|
366
|
+
enabled?: boolean;
|
|
367
|
+
compression?: ContextPilotCompressionConfig;
|
|
368
|
+
ccr?: ContextPilotCCRConfig;
|
|
369
|
+
cacheAlignment?: ContextPilotCacheAlignmentConfig;
|
|
370
|
+
dedup?: ContextPilotDedupConfig;
|
|
371
|
+
/** Tool names that should never be processed by ContextPilot. */
|
|
372
|
+
excludeTools?: string[];
|
|
373
|
+
};
|
|
374
|
+
type ResolvedContextPilotConfig = {
|
|
375
|
+
enabled: boolean;
|
|
376
|
+
compression: {
|
|
377
|
+
json: Required<ContextPilotJsonCompressionConfig>;
|
|
378
|
+
text: Required<ContextPilotTextCompressionConfig>;
|
|
379
|
+
diff: Required<ContextPilotDiffCompressionConfig>;
|
|
380
|
+
log: Required<ContextPilotLogCompressionConfig>;
|
|
381
|
+
search: Required<ContextPilotSearchCompressionConfig>;
|
|
382
|
+
};
|
|
383
|
+
ccr: Required<ContextPilotCCRConfig>;
|
|
384
|
+
cacheAlignment: Required<ContextPilotCacheAlignmentConfig>;
|
|
385
|
+
dedup: Required<ContextPilotDedupConfig>;
|
|
386
|
+
excludeTools: string[];
|
|
387
|
+
};
|
|
388
|
+
type ContextPilotCompressorKind = "jsonCrusher" | "textCrusher" | "diffCompressor" | "logCompressor" | "searchCompressor" | "none";
|
|
389
|
+
type ContextPilotCompressionStats = {
|
|
390
|
+
applied: boolean;
|
|
391
|
+
compressorUsed: ContextPilotCompressorKind;
|
|
392
|
+
originalTokens: number;
|
|
393
|
+
compressedTokens: number;
|
|
394
|
+
droppedItems?: number;
|
|
395
|
+
ccrHash?: string;
|
|
396
|
+
/** Set when this output was recognized as a cross-turn duplicate instead of compressed. */
|
|
397
|
+
duplicateOf?: string;
|
|
398
|
+
};
|
|
399
|
+
type ContextPilotResult = ContextPilotCompressionStats & {
|
|
400
|
+
output: unknown;
|
|
401
|
+
};
|
|
402
|
+
type VolatileContentPattern = "uuid" | "iso8601" | "unix_timestamp" | "jwt" | "hex_hash" | "api_key";
|
|
403
|
+
type VolatileContentFinding = {
|
|
404
|
+
pattern: VolatileContentPattern;
|
|
405
|
+
match: string;
|
|
406
|
+
index: number;
|
|
407
|
+
};
|
|
408
|
+
|
|
305
409
|
type ImageURL = {
|
|
306
410
|
url: string;
|
|
307
411
|
detail?: 'auto' | 'low' | 'high';
|
|
@@ -453,6 +557,19 @@ type TracingConfig = {
|
|
|
453
557
|
logData?: boolean;
|
|
454
558
|
sink?: TraceSinkConfig;
|
|
455
559
|
threadId?: string;
|
|
560
|
+
/**
|
|
561
|
+
* Optional caller-supplied session id. When set, the trace session is keyed
|
|
562
|
+
* by this value instead of an auto-generated `sess_…` id, so the emitted
|
|
563
|
+
* traces can be correlated with the caller's own run/task/chat identifiers.
|
|
564
|
+
* When omitted, a random session id is generated (previous behavior).
|
|
565
|
+
*/
|
|
566
|
+
sessionId?: string;
|
|
567
|
+
/**
|
|
568
|
+
* Optional display name for the agent that owns this trace session. Overrides
|
|
569
|
+
* the SmartAgent's own `name` in the emitted session/start payload — useful
|
|
570
|
+
* when the same agent implementation runs under several logical names.
|
|
571
|
+
*/
|
|
572
|
+
agentName?: string;
|
|
456
573
|
};
|
|
457
574
|
type SmartAgentTracingConfig = TracingConfig;
|
|
458
575
|
type AgentOptions = {
|
|
@@ -500,6 +617,15 @@ type AgentOptions = {
|
|
|
500
617
|
* questions for the host application to answer.
|
|
501
618
|
*/
|
|
502
619
|
humanInTheLoop?: HumanInTheLoopOptions;
|
|
620
|
+
/**
|
|
621
|
+
* ContextPilot: native, deterministic context/token optimization layer.
|
|
622
|
+
* Compresses large tool outputs (JSON arrays, logs, diffs, search results,
|
|
623
|
+
* long text) at execution time using relevance scoring, while keeping every
|
|
624
|
+
* original payload recoverable via `get_tool_response`. **Opt-in** — disabled
|
|
625
|
+
* unless `contextPilot: { enabled: true }` (or an equivalent override) is
|
|
626
|
+
* passed explicitly.
|
|
627
|
+
*/
|
|
628
|
+
contextPilot?: ContextPilotConfig;
|
|
503
629
|
};
|
|
504
630
|
type ReasoningLevel = "minimal" | "low" | "medium" | "high";
|
|
505
631
|
type ReflectionCadence = "off" | "every_turn" | "after_tool" | "on_branch" | "initial_then_after_tool";
|
|
@@ -721,6 +847,7 @@ type SmartAgentCustomProfileConfig = {
|
|
|
721
847
|
memory?: SmartAgentMemoryConfig;
|
|
722
848
|
delegation?: SmartAgentDelegationConfig;
|
|
723
849
|
toolResponses?: SmartAgentToolResponseConfig;
|
|
850
|
+
contextPilot?: ContextPilotConfig;
|
|
724
851
|
};
|
|
725
852
|
type ProfileConfig = {
|
|
726
853
|
limits: Required<AgentLimits>;
|
|
@@ -734,6 +861,7 @@ type ProfileConfig = {
|
|
|
734
861
|
};
|
|
735
862
|
delegation: Required<SmartAgentDelegationConfig>;
|
|
736
863
|
toolResponses: Required<SmartAgentToolResponseConfig>;
|
|
864
|
+
contextPilot: ResolvedContextPilotConfig;
|
|
737
865
|
};
|
|
738
866
|
type ResolvedSmartAgentConfig = ProfileConfig & {
|
|
739
867
|
runtimeProfile: RuntimeProfile;
|
|
@@ -755,6 +883,11 @@ type SmartAgentOptions = {
|
|
|
755
883
|
planning?: SmartAgentPlanningConfig;
|
|
756
884
|
delegation?: SmartAgentDelegationConfig;
|
|
757
885
|
toolResponses?: SmartAgentToolResponseConfig;
|
|
886
|
+
/**
|
|
887
|
+
* ContextPilot: native, deterministic context/token optimization layer.
|
|
888
|
+
* See `AgentOptions.contextPilot` for details. **Opt-in** — disabled by default.
|
|
889
|
+
*/
|
|
890
|
+
contextPilot?: ContextPilotConfig;
|
|
758
891
|
systemPrompt?: string;
|
|
759
892
|
todoListPrompt?: string;
|
|
760
893
|
/** @deprecated Use planning.mode="todo" */
|
|
@@ -1068,6 +1201,8 @@ type TraceSessionRuntime = {
|
|
|
1068
1201
|
model?: string;
|
|
1069
1202
|
provider?: string;
|
|
1070
1203
|
};
|
|
1204
|
+
/** Caller-supplied agent name override (from TracingConfig.agentName). */
|
|
1205
|
+
configAgentName?: string;
|
|
1071
1206
|
resolvedConfig: ResolvedTraceConfig;
|
|
1072
1207
|
events: TraceEventRecord[];
|
|
1073
1208
|
summary: TraceSessionSummary;
|
|
@@ -1105,6 +1240,8 @@ type AgentState = {
|
|
|
1105
1240
|
archiveId?: string;
|
|
1106
1241
|
summary?: string;
|
|
1107
1242
|
status?: "success" | "error" | "rejected" | "handoff";
|
|
1243
|
+
/** Set when ContextPilot compressed this tool's output before it entered the transcript. */
|
|
1244
|
+
contextPilot?: ContextPilotCompressionStats;
|
|
1108
1245
|
}>;
|
|
1109
1246
|
toolCache?: Record<string, any>;
|
|
1110
1247
|
toolCallCount?: number;
|
|
@@ -1714,6 +1851,7 @@ type ContextToolsStateRef = {
|
|
|
1714
1851
|
role?: string;
|
|
1715
1852
|
content?: unknown;
|
|
1716
1853
|
}>;
|
|
1854
|
+
ctx?: Record<string, any>;
|
|
1717
1855
|
};
|
|
1718
1856
|
declare function hasToolResponseRecoveryReference(messages: Array<{
|
|
1719
1857
|
role?: string;
|
|
@@ -1954,6 +2092,109 @@ declare function getResolvedSmartConfig(opts: SmartAgentOptions, runtime?: {
|
|
|
1954
2092
|
smart?: ResolvedSmartAgentConfig | undefined;
|
|
1955
2093
|
}): ResolvedSmartAgentConfig;
|
|
1956
2094
|
|
|
2095
|
+
/** Unicode-aware tokenizer: splits on non-word boundaries so it works for Turkish, CJK, etc. */
|
|
2096
|
+
declare function tokenize(text: string): string[];
|
|
2097
|
+
type Bm25Params = {
|
|
2098
|
+
k1?: number;
|
|
2099
|
+
b?: number;
|
|
2100
|
+
};
|
|
2101
|
+
/**
|
|
2102
|
+
* Scores each document in `docs` against `query` using BM25. When `query` is
|
|
2103
|
+
* empty, every document gets a neutral score of 1 (callers should then rely
|
|
2104
|
+
* on their own tie-break, e.g. recency or original order).
|
|
2105
|
+
*/
|
|
2106
|
+
declare function scoreItemsByRelevance(docs: string[], query: string, params?: Bm25Params): number[];
|
|
2107
|
+
/** Ranks items by score (desc), keeps the top `count`, then restores original order. */
|
|
2108
|
+
declare function selectTopIndicesInOrder(scores: number[], count: number): number[];
|
|
2109
|
+
|
|
2110
|
+
declare class CCRStore {
|
|
2111
|
+
private entries;
|
|
2112
|
+
private readonly defaultTtlMs;
|
|
2113
|
+
private readonly maxEntries;
|
|
2114
|
+
constructor(options?: {
|
|
2115
|
+
ttlMs?: number;
|
|
2116
|
+
maxEntries?: number;
|
|
2117
|
+
});
|
|
2118
|
+
/** Stores `value` and returns a short content hash that can be used to retrieve it later. */
|
|
2119
|
+
store(value: unknown, ttlMs?: number): string;
|
|
2120
|
+
/** Returns the original value for `hash`, or `undefined` if missing/expired. */
|
|
2121
|
+
retrieve(hash: string): unknown | undefined;
|
|
2122
|
+
has(hash: string): boolean;
|
|
2123
|
+
get size(): number;
|
|
2124
|
+
private evictIfNeeded;
|
|
2125
|
+
static hashOf(value: unknown): string;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
type DedupEntry = {
|
|
2129
|
+
executionId: string;
|
|
2130
|
+
toolName: string;
|
|
2131
|
+
};
|
|
2132
|
+
declare class DedupTracker {
|
|
2133
|
+
private seen;
|
|
2134
|
+
/**
|
|
2135
|
+
* Registers `content` under `executionId`/`toolName`. Returns the entry
|
|
2136
|
+
* that first produced this exact content, or `undefined` if this is the
|
|
2137
|
+
* first time it has been seen.
|
|
2138
|
+
*/
|
|
2139
|
+
checkAndRegister(content: string, executionId: string, toolName: string): DedupEntry | undefined;
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
/**
|
|
2143
|
+
* Scans `text` for volatile content and returns up to `limit` findings.
|
|
2144
|
+
* Cheap regex-only detection, no ML, safe to call on every system prompt.
|
|
2145
|
+
*/
|
|
2146
|
+
declare function detectVolatileContent(text: string, limit?: number): VolatileContentFinding[];
|
|
2147
|
+
|
|
2148
|
+
declare const CONTEXT_PILOT_JSON_MARKER_KEY = "__contextPilotDropped";
|
|
2149
|
+
declare function compressJsonOutput(output: unknown, query: string, config: Required<ContextPilotJsonCompressionConfig>, ccrStore: CCRStore): ContextPilotResult;
|
|
2150
|
+
|
|
2151
|
+
declare function compressTextOutput(text: string, query: string, config: Required<ContextPilotTextCompressionConfig>, ccrStore: CCRStore): ContextPilotResult;
|
|
2152
|
+
|
|
2153
|
+
/** Cheap content-shape detector used to route a text tool output to the right compressor. */
|
|
2154
|
+
declare function detectTextFormat(text: string): "diff" | "log" | "search" | "text";
|
|
2155
|
+
/**
|
|
2156
|
+
* Keeps hunk headers and every added/removed line verbatim, trims unchanged
|
|
2157
|
+
* context lines beyond `contextLines` around each hunk boundary.
|
|
2158
|
+
*/
|
|
2159
|
+
declare function compressDiffOutput(text: string, config: Required<ContextPilotDiffCompressionConfig>, ccrStore: CCRStore): ContextPilotResult;
|
|
2160
|
+
/**
|
|
2161
|
+
* Scores each line by log-level keywords (errors/failures always win) and
|
|
2162
|
+
* keeps the top `maxLines`, always preserving the first and last line.
|
|
2163
|
+
*/
|
|
2164
|
+
declare function compressLogOutput(text: string, config: Required<ContextPilotLogCompressionConfig>, ccrStore: CCRStore): ContextPilotResult;
|
|
2165
|
+
/**
|
|
2166
|
+
* Keeps up to `maxMatches` grep/ripgrep-style match lines (`file:line:content`
|
|
2167
|
+
* or `file-line-content`), biased towards file diversity via a soft per-file cap.
|
|
2168
|
+
*/
|
|
2169
|
+
declare function compressSearchOutput(text: string, config: Required<ContextPilotSearchCompressionConfig>, ccrStore: CCRStore): ContextPilotResult;
|
|
2170
|
+
|
|
2171
|
+
type ContextPilotRuntime = {
|
|
2172
|
+
ccrStore: CCRStore;
|
|
2173
|
+
dedupTracker: DedupTracker;
|
|
2174
|
+
};
|
|
2175
|
+
/** Creates a fresh (per-invoke) runtime: CCR store + dedup tracker. */
|
|
2176
|
+
declare function createContextPilotRuntime(config: ResolvedContextPilotConfig): ContextPilotRuntime;
|
|
2177
|
+
/** Extracts the latest user message text, used as the relevance query for compression scoring. */
|
|
2178
|
+
declare function extractLatestUserQuery(messages: BaseMessage[] | undefined): string;
|
|
2179
|
+
type CompressToolOutputParams = {
|
|
2180
|
+
toolName: string;
|
|
2181
|
+
output: unknown;
|
|
2182
|
+
query: string;
|
|
2183
|
+
executionId: string;
|
|
2184
|
+
config: ResolvedContextPilotConfig;
|
|
2185
|
+
runtime: ContextPilotRuntime;
|
|
2186
|
+
};
|
|
2187
|
+
/**
|
|
2188
|
+
* ContextPilot entry point. Order of operations:
|
|
2189
|
+
* 1. Cross-turn duplicate check (short-circuits with a pointer if identical
|
|
2190
|
+
* content was already seen in this run).
|
|
2191
|
+
* 2. Non-string (JSON-like) outputs go through the JSON/array compressor.
|
|
2192
|
+
* 3. String outputs are format-sniffed (diff/log/search/plain text) and
|
|
2193
|
+
* routed to the matching compressor, falling back to generic text
|
|
2194
|
+
* compression.
|
|
2195
|
+
*/
|
|
2196
|
+
declare function compressToolOutput(params: CompressToolOutputParams): ContextPilotResult;
|
|
2197
|
+
|
|
1957
2198
|
type GuardrailEvaluationParams = {
|
|
1958
2199
|
guardrails?: ConversationGuardrail[];
|
|
1959
2200
|
phase: GuardrailPhase;
|
|
@@ -2589,6 +2830,18 @@ declare class AnthropicProvider extends BaseProvider {
|
|
|
2589
2830
|
completeStream(request: ChatCompletionRequest): AsyncGenerator<ChatCompletionChunk, void, unknown>;
|
|
2590
2831
|
private buildRequestBody;
|
|
2591
2832
|
private splitSystemMessages;
|
|
2833
|
+
/**
|
|
2834
|
+
* Converts unified messages to Anthropic format, coalescing consecutive
|
|
2835
|
+
* tool-result messages into a single `user` turn.
|
|
2836
|
+
*
|
|
2837
|
+
* The unified message list carries one `role: "tool"` entry per tool call
|
|
2838
|
+
* (mirroring OpenAI's shape). Anthropic's Messages API expects every
|
|
2839
|
+
* `tool_result` block answering a single assistant turn's `tool_use`
|
|
2840
|
+
* block(s) to be batched into ONE `user` message rather than sent as
|
|
2841
|
+
* separate consecutive `user` messages.
|
|
2842
|
+
*/
|
|
2843
|
+
private toAnthropicMessages;
|
|
2844
|
+
private toAnthropicToolResult;
|
|
2592
2845
|
private toAnthropicMessage;
|
|
2593
2846
|
private toAnthropicTool;
|
|
2594
2847
|
private doFetch;
|
|
@@ -2626,6 +2879,19 @@ declare class BedrockProvider extends BaseProvider {
|
|
|
2626
2879
|
completeStream(request: ChatCompletionRequest): AsyncGenerator<ChatCompletionChunk, void, unknown>;
|
|
2627
2880
|
private buildConverseBody;
|
|
2628
2881
|
private splitSystemMessages;
|
|
2882
|
+
/**
|
|
2883
|
+
* Converts unified messages to Bedrock Converse format, coalescing
|
|
2884
|
+
* consecutive tool-result messages into a single `user` turn.
|
|
2885
|
+
*
|
|
2886
|
+
* The unified message list carries one `role: "tool"` entry per tool call
|
|
2887
|
+
* (mirroring OpenAI's shape). Bedrock's Converse API requires every
|
|
2888
|
+
* `toolResult` block answering a single assistant turn's `toolUse`
|
|
2889
|
+
* block(s) to be batched into ONE `user` message — sending them as
|
|
2890
|
+
* separate consecutive `user` messages triggers: "Expected toolResult
|
|
2891
|
+
* blocks at messages.N.content for the following Ids: ...".
|
|
2892
|
+
*/
|
|
2893
|
+
private toBedrockMessages;
|
|
2894
|
+
private toBedrockToolResult;
|
|
2629
2895
|
private toBedrockMessage;
|
|
2630
2896
|
private toBedrockTool;
|
|
2631
2897
|
private doFetch;
|
|
@@ -2647,6 +2913,7 @@ declare class VertexProvider extends BaseProvider {
|
|
|
2647
2913
|
private buildUrl;
|
|
2648
2914
|
private buildGeminiBody;
|
|
2649
2915
|
private buildContents;
|
|
2916
|
+
private toGeminiFunctionResponsePart;
|
|
2650
2917
|
private toGeminiContent;
|
|
2651
2918
|
private toGeminiTool;
|
|
2652
2919
|
private getAccessToken;
|
|
@@ -2704,4 +2971,4 @@ declare function fromNativeProvider(provider: BaseProvider, options?: NativeMode
|
|
|
2704
2971
|
*/
|
|
2705
2972
|
declare function createProvider(config: ProviderConfig): BaseProvider;
|
|
2706
2973
|
|
|
2707
|
-
export { type AIMessage, type AgentInstance, type AgentInvokeResult, type AgentLimits, type AgentOptions, type AgentRuleOptions, type AgentRuntimeConfig, type AgentSnapshot, type AgentSnapshotMetadata, type AgentState, AnthropicProvider, type AnthropicProviderConfig, AzureProvider, type AzureProviderConfig, type BaseChatMessage, type BaseChatMessagePart, type BaseChatModel, type BaseMessage, BaseProvider, BedrockProvider, type BedrockProviderConfig, type BuildChildConfig, type BuiltInRuntimeProfile, type CancellationTokenLike, type CancelledEvent, type ChatCompletionChunk, type ChatCompletionRequest, type ChatCompletionResponse, type ChildContextPolicy, type CodeDetectionRuleOptions, type CodeGuardrailOptions, type ContextPolicy, type ContextToolsStateRef, type ConversationGuardrail, type CustomRuleCallback, type CustomRuleOptions, DEFAULT_PROFILE_CONFIGS, DEFAULT_SKILL_POLICY, DEFAULT_SUBAGENT_POLICY, DEFAULT_SUBAGENT_TOOL_NAMES, type DelegationEventStamp, type DelegationMode, type EvalCase, type EvalCaseResult, type EvalFamily, type EvalHarnessMetrics, type EvalHarnessParams, type EvalHarnessResult, type EvalProfileDescriptor, type EvalProfileTarget, type FinalAnswerEvent, type FinishReason, type GuardrailContext, type GuardrailDisposition, type GuardrailEvent, type GuardrailIncident, type GuardrailOutcome, GuardrailPhase, type GuardrailRule, type HandoffDescriptor, type HandoffEvent, type HumanInTheLoopAskUserConfig, type HumanInTheLoopOptions, type HumanInTheLoopRuntimeConfig, InMemoryMemoryStore, type InvokeConfig, type JsonGuardrailOptions, type JsonSchemaRuleOptions, type LoadSkillsOptions, type MemoryFact, type MemoryProviderKind, type MemoryReadPolicy, type MemoryScope, type MemoryStore, type MemoryWritePolicy, type Message, type MetadataEvent, type ModelCapabilities, NativeJsonSchemaStrategy, type NativeModelOptions, type NativeReasoningConfig, OpenAICompatibleProvider, type OpenAICompatibleProviderConfig, OpenAIProvider, type OpenAIProviderConfig, type PendingToolApproval, type PendingUserQuestion, type PlanEvent, type PlanStepRecord, type PlanningMode, type ProfileConfig, type ProgressEvent, type ProgressUpdate, type PromptHooks, type ProviderConfig, ProviderError, type ToolCall as ProviderToolCall, type ToolDefinition as ProviderToolDefinition, type ProviderType, type ReasoningConfig, type ReasoningLevel, type ReflectionCadence, type ReflectionConfig, type ReflectionEvent, type ReflectionHookContext, type ReflectionRecord, type RegexGuardrailOptions, type RegexRuleOptions, type ReplanPolicy, type ResolvedSmartAgentConfig, type ResolvedTraceConfig, type ResolvedTraceSink, type RestoreSnapshotOptions, type RuntimeProfile, SMALL_TIER_SKILL_POLICY, type SerializableSmartState, type Skill, type SkillExecutionContext, type SkillFrontmatter, type SkillFs, type SkillModelTier, type SkillPolicy, type SkillRegistryRef, type SkillToolDeps, type SkillToolHeader, type SmartAgentBudgetConfig, type SmartAgentContextConfig, type SmartAgentCustomProfileConfig, type SmartAgentDelegationConfig, type SmartAgentEvent, type SmartAgentInstance, type SmartAgentLimits, type SmartAgentMemoryConfig, type SmartAgentOptions, type SmartAgentPlanningConfig, type SmartAgentSummarizationConfig, type SmartAgentToolResponseConfig, type SmartAgentTracingConfig, type SmartModel, type SmartState, type SmartToolFn, type SnapshotOptions, type SnapshotRuntimeHint, type StreamChunk, type StreamEvent, type StructuredOutputError, type StructuredOutputFieldError, StructuredOutputManager, type StructuredOutputManagerConfig, type StructuredOutputResult, type StructuredOutputStrategy, type StructuredSummary, type SubagentDef, type SubagentEvent, type SubagentMode, type SubagentPendingRecord, type SubagentPolicy, type SubagentRegistryRef, type SubagentResult, type SubagentToolDeps, type SubagentToolNames, type SummarizationEvent, type SummarizationMode, type SummaryFactItem, type SummaryIntegrityCheck, type TokenCounter, type TokenUsage, type ToolApprovalEvent, type ToolApprovalResolution, type ToolApprovalStatus, ToolBasedStrategy, type ToolCachePolicy, type ToolCallEvent, type ToolInterface, type ToolResponseClassification, type ToolResponseRetentionPolicy, type ToolRetryPolicy, type TraceDataSection, type TraceErrorRecord, type TraceEventRecord, type TraceMessageSection, type TraceMetadataSection, type TraceSessionConfigSnapshot, type TraceSessionFile, type TraceSessionStatus, type TraceSessionSummary, type TraceSinkCognipeerConfig, type TraceSinkConfig, type TraceSinkCustomConfig, type TraceSinkFileConfig, type TraceSinkHttpConfig, type TraceSinkOtlpConfig, type TraceSinkSnapshot, type TraceSummarySection, type TraceToolCallSection, type TraceToolDetails, type TraceToolResponseSection, type TraceToolResultSection, type TracingConfig, type TracingMode, type UnifiedMessage, type UserQuestionAnswer, type UserQuestionAnswerSet, type UserQuestionEvent, type UserQuestionItem, type UserQuestionOption, type UserQuestionResolution, type UserQuestionStatus, VertexProvider, type VertexProviderConfig, agentVerdictRule, appendBoundTools, buildSkillHeaderBlock, buildSubagentCatalogBlock, buildSystemPrompt, canOpenSkill, canSpawn, captureSnapshot, codePresenceRule, cognipeerSink, composeToolSets, countApproxTokens, countMessagesTokens, createAgent, createAgentNode, createAskUserQuestionTool, createBindSkillToolsTool, createCodeGuardrail, createContextSummarizeNode, createContextTools, createDelegateTool, createGetToolResponseTool, createGuardrail, createJsonGuardrail, createManageTodoTool, createOpenSkillTool, createParallelTool, createProvider, createRegexGuardrail, createResolverNode, createSkillRegistryRef, createSkillTools, createSmartAgent, createSpawnTool, createSubagentRegistryRef, createSubagentTools, createTool, createToolLimitFinalizeNode, createToolsNode, customCallbackRule, customSink, dedupeToolsByName, defaultTokenCounter, emptyUsage, evaluateGuardrails, fileSink, findSubagent, formatZodError, fromLangchainModel, fromLangchainTools, fromNativeProvider, generateSpanId, generateTraceId, getModelCapabilities, getNestedValue, getResolvedSmartConfig, getTokenCounter, hasToolResponseRecoveryReference, httpSink, isSmartModel, jsonSchemaRule, loadSkillsFromDisk, normalizeSmartAgentOptions, otlpSink, parseSkillFrontmatter, readMemoryFacts, regexRule, resolveAvailableSkills, resolveAvailableSubagents, resolveMemoryStore, resolveReasoning, resolveStrategy, resolveSubagentTools, resolveToolApprovalState, resolveUserQuestionState, restoreSnapshot, runSmartAgentEvalHarness, seedChildMessages, setTokenCounter, startStreamingSession, traceSessionToOtlp, validateReasoningConfig, withTools, withinDepth, writeSummaryFactsToMemory };
|
|
2974
|
+
export { type AIMessage, type AgentInstance, type AgentInvokeResult, type AgentLimits, type AgentOptions, type AgentRuleOptions, type AgentRuntimeConfig, type AgentSnapshot, type AgentSnapshotMetadata, type AgentState, AnthropicProvider, type AnthropicProviderConfig, AzureProvider, type AzureProviderConfig, type BaseChatMessage, type BaseChatMessagePart, type BaseChatModel, type BaseMessage, BaseProvider, BedrockProvider, type BedrockProviderConfig, type BuildChildConfig, type BuiltInRuntimeProfile, CCRStore, CONTEXT_PILOT_JSON_MARKER_KEY, type CancellationTokenLike, type CancelledEvent, type ChatCompletionChunk, type ChatCompletionRequest, type ChatCompletionResponse, type ChildContextPolicy, type CodeDetectionRuleOptions, type CodeGuardrailOptions, type CompressToolOutputParams, type ContextPilotCCRConfig, type ContextPilotCacheAlignmentConfig, type ContextPilotCompressionConfig, type ContextPilotCompressionStats, type ContextPilotCompressorKind, type ContextPilotConfig, type ContextPilotDedupConfig, type ContextPilotDiffCompressionConfig, type ContextPilotJsonCompressionConfig, type ContextPilotLogCompressionConfig, type ContextPilotResult, type ContextPilotRuntime, type ContextPilotSearchCompressionConfig, type ContextPilotTextCompressionConfig, type ContextPolicy, type ContextToolsStateRef, type ConversationGuardrail, type CustomRuleCallback, type CustomRuleOptions, DEFAULT_PROFILE_CONFIGS, DEFAULT_SKILL_POLICY, DEFAULT_SUBAGENT_POLICY, DEFAULT_SUBAGENT_TOOL_NAMES, DedupTracker, type DelegationEventStamp, type DelegationMode, type EvalCase, type EvalCaseResult, type EvalFamily, type EvalHarnessMetrics, type EvalHarnessParams, type EvalHarnessResult, type EvalProfileDescriptor, type EvalProfileTarget, type FinalAnswerEvent, type FinishReason, type GuardrailContext, type GuardrailDisposition, type GuardrailEvent, type GuardrailIncident, type GuardrailOutcome, GuardrailPhase, type GuardrailRule, type HandoffDescriptor, type HandoffEvent, type HumanInTheLoopAskUserConfig, type HumanInTheLoopOptions, type HumanInTheLoopRuntimeConfig, InMemoryMemoryStore, type InvokeConfig, type JsonGuardrailOptions, type JsonSchemaRuleOptions, type LoadSkillsOptions, type MemoryFact, type MemoryProviderKind, type MemoryReadPolicy, type MemoryScope, type MemoryStore, type MemoryWritePolicy, type Message, type MetadataEvent, type ModelCapabilities, NativeJsonSchemaStrategy, type NativeModelOptions, type NativeReasoningConfig, OpenAICompatibleProvider, type OpenAICompatibleProviderConfig, OpenAIProvider, type OpenAIProviderConfig, type PendingToolApproval, type PendingUserQuestion, type PlanEvent, type PlanStepRecord, type PlanningMode, type ProfileConfig, type ProgressEvent, type ProgressUpdate, type PromptHooks, type ProviderConfig, ProviderError, type ToolCall as ProviderToolCall, type ToolDefinition as ProviderToolDefinition, type ProviderType, type ReasoningConfig, type ReasoningLevel, type ReflectionCadence, type ReflectionConfig, type ReflectionEvent, type ReflectionHookContext, type ReflectionRecord, type RegexGuardrailOptions, type RegexRuleOptions, type ReplanPolicy, type ResolvedContextPilotConfig, type ResolvedSmartAgentConfig, type ResolvedTraceConfig, type ResolvedTraceSink, type RestoreSnapshotOptions, type RuntimeProfile, SMALL_TIER_SKILL_POLICY, type SerializableSmartState, type Skill, type SkillExecutionContext, type SkillFrontmatter, type SkillFs, type SkillModelTier, type SkillPolicy, type SkillRegistryRef, type SkillToolDeps, type SkillToolHeader, type SmartAgentBudgetConfig, type SmartAgentContextConfig, type SmartAgentCustomProfileConfig, type SmartAgentDelegationConfig, type SmartAgentEvent, type SmartAgentInstance, type SmartAgentLimits, type SmartAgentMemoryConfig, type SmartAgentOptions, type SmartAgentPlanningConfig, type SmartAgentSummarizationConfig, type SmartAgentToolResponseConfig, type SmartAgentTracingConfig, type SmartModel, type SmartState, type SmartToolFn, type SnapshotOptions, type SnapshotRuntimeHint, type StreamChunk, type StreamEvent, type StructuredOutputError, type StructuredOutputFieldError, StructuredOutputManager, type StructuredOutputManagerConfig, type StructuredOutputResult, type StructuredOutputStrategy, type StructuredSummary, type SubagentDef, type SubagentEvent, type SubagentMode, type SubagentPendingRecord, type SubagentPolicy, type SubagentRegistryRef, type SubagentResult, type SubagentToolDeps, type SubagentToolNames, type SummarizationEvent, type SummarizationMode, type SummaryFactItem, type SummaryIntegrityCheck, type TokenCounter, type TokenUsage, type ToolApprovalEvent, type ToolApprovalResolution, type ToolApprovalStatus, ToolBasedStrategy, type ToolCachePolicy, type ToolCallEvent, type ToolInterface, type ToolResponseClassification, type ToolResponseRetentionPolicy, type ToolRetryPolicy, type TraceDataSection, type TraceErrorRecord, type TraceEventRecord, type TraceMessageSection, type TraceMetadataSection, type TraceSessionConfigSnapshot, type TraceSessionFile, type TraceSessionStatus, type TraceSessionSummary, type TraceSinkCognipeerConfig, type TraceSinkConfig, type TraceSinkCustomConfig, type TraceSinkFileConfig, type TraceSinkHttpConfig, type TraceSinkOtlpConfig, type TraceSinkSnapshot, type TraceSummarySection, type TraceToolCallSection, type TraceToolDetails, type TraceToolResponseSection, type TraceToolResultSection, type TracingConfig, type TracingMode, type UnifiedMessage, type UserQuestionAnswer, type UserQuestionAnswerSet, type UserQuestionEvent, type UserQuestionItem, type UserQuestionOption, type UserQuestionResolution, type UserQuestionStatus, VertexProvider, type VertexProviderConfig, type VolatileContentFinding, type VolatileContentPattern, agentVerdictRule, appendBoundTools, buildSkillHeaderBlock, buildSubagentCatalogBlock, buildSystemPrompt, canOpenSkill, canSpawn, captureSnapshot, codePresenceRule, cognipeerSink, composeToolSets, compressDiffOutput, compressJsonOutput, compressLogOutput, compressSearchOutput, compressTextOutput, compressToolOutput, countApproxTokens, countMessagesTokens, createAgent, createAgentNode, createAskUserQuestionTool, createBindSkillToolsTool, createCodeGuardrail, createContextPilotRuntime, createContextSummarizeNode, createContextTools, createDelegateTool, createGetToolResponseTool, createGuardrail, createJsonGuardrail, createManageTodoTool, createOpenSkillTool, createParallelTool, createProvider, createRegexGuardrail, createResolverNode, createSkillRegistryRef, createSkillTools, createSmartAgent, createSpawnTool, createSubagentRegistryRef, createSubagentTools, createTool, createToolLimitFinalizeNode, createToolsNode, customCallbackRule, customSink, dedupeToolsByName, defaultTokenCounter, detectTextFormat, detectVolatileContent, emptyUsage, evaluateGuardrails, extractLatestUserQuery, fileSink, findSubagent, formatZodError, fromLangchainModel, fromLangchainTools, fromNativeProvider, generateSpanId, generateTraceId, getModelCapabilities, getNestedValue, getResolvedSmartConfig, getTokenCounter, hasToolResponseRecoveryReference, httpSink, isSmartModel, jsonSchemaRule, loadSkillsFromDisk, normalizeSmartAgentOptions, otlpSink, parseSkillFrontmatter, readMemoryFacts, regexRule, resolveAvailableSkills, resolveAvailableSubagents, resolveMemoryStore, resolveReasoning, resolveStrategy, resolveSubagentTools, resolveToolApprovalState, resolveUserQuestionState, restoreSnapshot, runSmartAgentEvalHarness, scoreItemsByRelevance, seedChildMessages, selectTopIndicesInOrder, setTokenCounter, startStreamingSession, tokenize, traceSessionToOtlp, validateReasoningConfig, withTools, withinDepth, writeSummaryFactsToMemory };
|