llmist 3.1.0 → 4.0.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/dist/{chunk-LFI4WQVV.js → chunk-Q6NQRMYD.js} +2 -2
- package/dist/chunk-Q6NQRMYD.js.map +1 -0
- package/dist/{chunk-JCFPJMRQ.js → chunk-RHR2M6T6.js} +138 -35
- package/dist/chunk-RHR2M6T6.js.map +1 -0
- package/dist/cli.cjs +231 -78
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +96 -46
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +137 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +2 -2
- package/dist/{mock-stream-CTLm00_q.d.cts → mock-stream-BvNYtrlG.d.cts} +83 -23
- package/dist/{mock-stream-CTLm00_q.d.ts → mock-stream-BvNYtrlG.d.ts} +83 -23
- package/dist/testing/index.cjs +137 -34
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +2 -2
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-JCFPJMRQ.js.map +0 -1
- package/dist/chunk-LFI4WQVV.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ZodType, ZodTypeAny } from 'zod';
|
|
2
2
|
export { z } from 'zod';
|
|
3
|
-
import { s as AgentHooks, t as ModelRegistry, u as LLMist, C as CompactionConfig, I as IConversationManager, v as CompactionEvent, L as LLMMessage, w as CompactionStats, x as CompactionStrategy, R as ResolvedCompactionConfig, y as CompactionContext, z as CompactionResult, B as MessageContent, G as GadgetMediaOutput, H as HintTemplate, S as StreamEvent, T as TokenUsage, D as GadgetRegistry, E as MediaStore, F as AgentContextConfig, J as SubagentConfigMap,
|
|
4
|
-
export { ae as AfterGadgetExecutionAction, af as AfterGadgetExecutionControllerContext, ag as AfterLLMCallAction, ah as AfterLLMCallControllerContext, ai as AfterLLMErrorAction, a9 as AgentBuilder, aj as AgentOptions,
|
|
3
|
+
import { s as AgentHooks, t as ModelRegistry, u as LLMist, C as CompactionConfig, I as IConversationManager, v as CompactionEvent, L as LLMMessage, w as CompactionStats, x as CompactionStrategy, R as ResolvedCompactionConfig, y as CompactionContext, z as CompactionResult, B as MessageContent, G as GadgetMediaOutput, H as HintTemplate, S as StreamEvent, T as TokenUsage, D as GadgetRegistry, E as MediaStore, F as AgentContextConfig, J as SubagentConfigMap, K as SubagentEvent, b as LLMStreamChunk, N as ExecutionContext, O as GadgetExecuteReturn, P as GadgetExample, A as AbstractGadget, Q as ParsedGadgetCall, U as GadgetExecutionResult, V as MediaKind, W as MediaMetadata, X as GadgetExecuteResultWithMedia, Y as ProviderAdapter, Z as ModelDescriptor, _ as ModelSpec, $ as LLMGenerationOptions, a as LLMStream, a0 as ImageModelSpec, a1 as ImageGenerationOptions, a2 as ImageGenerationResult, a3 as SpeechModelSpec, a4 as SpeechGenerationOptions, a5 as SpeechGenerationResult } from './mock-stream-BvNYtrlG.cjs';
|
|
4
|
+
export { ae as AfterGadgetExecutionAction, af as AfterGadgetExecutionControllerContext, ag as AfterLLMCallAction, ah as AfterLLMCallControllerContext, ai as AfterLLMErrorAction, a9 as AgentBuilder, aj as AgentOptions, aI as AudioContentPart, aJ as AudioMimeType, aK as AudioSource, ak as BeforeGadgetExecutionAction, al as BeforeLLMCallAction, am as ChunkInterceptorContext, aL as ContentPart, an as Controllers, b8 as CostEstimate, bu as CostReportingLLMist, aF as DEFAULT_COMPACTION_CONFIG, bk as DEFAULT_HINTS, bl as DEFAULT_PROMPTS, aG as DEFAULT_SUMMARIZATION_PROMPT, aa as EventHandlers, bs as GadgetClass, bv as GadgetExecuteResult, ao as GadgetExecutionControllerContext, bt as GadgetOrClass, ap as GadgetParameterInterceptorContext, aq as GadgetResultInterceptorContext, bw as GadgetSkippedEvent, bg as HintContext, a6 as HistoryMessage, aM as ImageBase64Source, aN as ImageContentPart, aO as ImageMimeType, aP as ImageSource, aQ as ImageUrlSource, ar as Interceptors, as as LLMCallControllerContext, at as LLMErrorControllerContext, b6 as LLMMessageBuilder, aH as LLMistOptions, au as MessageInterceptorContext, b4 as MessageRole, av as MessageTurn, d as MockBuilder, f as MockManager, l as MockMatcher, n as MockMatcherContext, o as MockOptions, M as MockProviderAdapter, p as MockRegistration, q as MockResponse, r as MockStats, b9 as ModelFeatures, bf as ModelIdentifierParser, ba as ModelLimits, bb as ModelPricing, aw as ObserveChunkContext, ax as ObserveCompactionContext, ay as ObserveGadgetCompleteContext, az as ObserveGadgetStartContext, aA as ObserveLLMCallContext, aB as ObserveLLMCompleteContext, aC as ObserveLLMErrorContext, aD as Observers, bh as PromptContext, bi as PromptTemplate, bj as PromptTemplateConfig, be as ProviderIdentifier, bx as StoredMedia, aE as SubagentContext, by as SubagentStreamEvent, aR as TextContentPart, bp as TextGenerationOptions, bz as TextOnlyAction, bA as TextOnlyContext, bB as TextOnlyCustomHandler, bC as TextOnlyGadgetConfig, bD as TextOnlyHandler, bE as TextOnlyStrategy, a7 as TrailingMessage, a8 as TrailingMessageContext, bc as VisionAnalyzeOptions, bd as VisionAnalyzeResult, aS as audioFromBase64, aT as audioFromBuffer, ab as collectEvents, ac as collectText, bq as complete, c as createMockAdapter, e as createMockClient, h as createMockStream, i as createTextMockStream, aU as detectAudioMimeType, aV as detectImageMimeType, b5 as extractMessageText, g as getMockManager, aW as imageFromBase64, aX as imageFromBuffer, aY as imageFromUrl, aZ as isAudioPart, a_ as isDataUrl, a$ as isImagePart, b0 as isTextPart, m as mockLLM, b7 as normalizeMessageContent, b1 as parseDataUrl, bm as resolveHintTemplate, bn as resolvePromptTemplate, bo as resolveRulesTemplate, ad as runWithHandlers, br as stream, b2 as text, b3 as toBase64 } from './mock-stream-BvNYtrlG.cjs';
|
|
5
5
|
import { Logger, ILogObj } from 'tslog';
|
|
6
6
|
import { MessageCreateParamsStreaming, MessageStreamEvent } from '@anthropic-ai/sdk/resources/messages';
|
|
7
7
|
import OpenAI from 'openai';
|
|
@@ -1199,8 +1199,8 @@ interface StreamProcessorOptions {
|
|
|
1199
1199
|
agentConfig?: AgentContextConfig;
|
|
1200
1200
|
/** Subagent-specific configuration overrides */
|
|
1201
1201
|
subagentConfig?: SubagentConfigMap;
|
|
1202
|
-
/** Callback for subagent gadgets to report
|
|
1203
|
-
|
|
1202
|
+
/** Callback for subagent gadgets to report subagent events to parent */
|
|
1203
|
+
onSubagentEvent?: (event: SubagentEvent) => void;
|
|
1204
1204
|
}
|
|
1205
1205
|
/**
|
|
1206
1206
|
* Result of stream processing.
|
|
@@ -1729,11 +1729,11 @@ declare class GadgetExecutor {
|
|
|
1729
1729
|
private readonly mediaStore?;
|
|
1730
1730
|
private readonly agentConfig?;
|
|
1731
1731
|
private readonly subagentConfig?;
|
|
1732
|
-
private readonly
|
|
1732
|
+
private readonly onSubagentEvent?;
|
|
1733
1733
|
private readonly logger;
|
|
1734
1734
|
private readonly errorFormatter;
|
|
1735
1735
|
private readonly argPrefix;
|
|
1736
|
-
constructor(registry: GadgetRegistry, requestHumanInput?: ((question: string) => Promise<string>) | undefined, logger?: Logger<ILogObj>, defaultGadgetTimeoutMs?: number | undefined, errorFormatterOptions?: ErrorFormatterOptions, client?: LLMist | undefined, mediaStore?: MediaStore | undefined, agentConfig?: AgentContextConfig | undefined, subagentConfig?: SubagentConfigMap | undefined,
|
|
1736
|
+
constructor(registry: GadgetRegistry, requestHumanInput?: ((question: string) => Promise<string>) | undefined, logger?: Logger<ILogObj>, defaultGadgetTimeoutMs?: number | undefined, errorFormatterOptions?: ErrorFormatterOptions, client?: LLMist | undefined, mediaStore?: MediaStore | undefined, agentConfig?: AgentContextConfig | undefined, subagentConfig?: SubagentConfigMap | undefined, onSubagentEvent?: ((event: SubagentEvent) => void) | undefined);
|
|
1737
1737
|
/**
|
|
1738
1738
|
* Creates a promise that rejects with a TimeoutException after the specified timeout.
|
|
1739
1739
|
* Aborts the provided AbortController before rejecting, allowing gadgets to clean up.
|
|
@@ -2607,4 +2607,4 @@ declare class OpenAIChatProvider extends BaseProviderAdapter {
|
|
|
2607
2607
|
}
|
|
2608
2608
|
declare function createOpenAIProviderFromEnv(): OpenAIChatProvider | null;
|
|
2609
2609
|
|
|
2610
|
-
export { AbortException, AbstractGadget, AgentHooks, AnthropicMessagesProvider, CompactionConfig, CompactionContext, CompactionEvent, CompactionManager, CompactionResult, CompactionStats, CompactionStrategy, ConversationManager, type CreateGadgetConfig, ExecutionContext, Gadget, GadgetCallParser, type GadgetConfig, GadgetExample, GadgetExecuteResultWithMedia, GadgetExecuteReturn, GadgetExecutionResult, GadgetExecutor, GadgetMediaOutput, GadgetOutputStore, GadgetRegistry, GeminiGenerativeProvider, HintTemplate, type HintsConfig, HookPresets, HumanInputRequiredException, HybridStrategy, IConversationManager, type IterationHintOptions, LLMGenerationOptions, LLMMessage, LLMStream, LLMStreamChunk, LLMist, type LoggerOptions, type LoggingOptions, MODEL_ALIASES, MediaKind, MediaMetadata, MediaStore, MessageContent, ModelDescriptor, ModelRegistry, ModelSpec, OpenAIChatProvider, type ParallelGadgetHintOptions, ParsedGadgetCall, ProviderAdapter, ResolvedCompactionConfig, SlidingWindowStrategy, type StoredOutput, StreamEvent, type StreamProcessingResult, StreamProcessor, type StreamProcessorOptions, SummarizationStrategy, TaskCompletionSignal, TimeoutException, TokenUsage, type ValidationIssue, type ValidationResult, createAnthropicProviderFromEnv, createGadget, createGadgetOutputViewer, createGeminiProviderFromEnv, createHints, createLogger, createMediaOutput, createOpenAIProviderFromEnv, defaultLogger, discoverProviderAdapters, getModelId, getProvider, hasProviderPrefix, iterationProgressHint, parallelGadgetHint, resolveModel, resultWithAudio, resultWithFile, resultWithImage, resultWithImages, resultWithMedia, validateAndApplyDefaults, validateGadgetParams };
|
|
2610
|
+
export { AbortException, AbstractGadget, AgentHooks, AnthropicMessagesProvider, CompactionConfig, CompactionContext, CompactionEvent, CompactionManager, CompactionResult, CompactionStats, CompactionStrategy, ConversationManager, type CreateGadgetConfig, ExecutionContext, Gadget, GadgetCallParser, type GadgetConfig, GadgetExample, GadgetExecuteResultWithMedia, GadgetExecuteReturn, GadgetExecutionResult, GadgetExecutor, GadgetMediaOutput, GadgetOutputStore, GadgetRegistry, GeminiGenerativeProvider, HintTemplate, type HintsConfig, HookPresets, HumanInputRequiredException, HybridStrategy, IConversationManager, type IterationHintOptions, LLMGenerationOptions, LLMMessage, LLMStream, LLMStreamChunk, LLMist, type LoggerOptions, type LoggingOptions, MODEL_ALIASES, MediaKind, MediaMetadata, MediaStore, MessageContent, ModelDescriptor, ModelRegistry, ModelSpec, OpenAIChatProvider, type ParallelGadgetHintOptions, ParsedGadgetCall, ProviderAdapter, ResolvedCompactionConfig, SlidingWindowStrategy, type StoredOutput, StreamEvent, type StreamProcessingResult, StreamProcessor, type StreamProcessorOptions, SubagentEvent, SummarizationStrategy, TaskCompletionSignal, TimeoutException, TokenUsage, type ValidationIssue, type ValidationResult, createAnthropicProviderFromEnv, createGadget, createGadgetOutputViewer, createGeminiProviderFromEnv, createHints, createLogger, createMediaOutput, createOpenAIProviderFromEnv, defaultLogger, discoverProviderAdapters, getModelId, getProvider, hasProviderPrefix, iterationProgressHint, parallelGadgetHint, resolveModel, resultWithAudio, resultWithFile, resultWithImage, resultWithImages, resultWithMedia, validateAndApplyDefaults, validateGadgetParams };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ZodType, ZodTypeAny } from 'zod';
|
|
2
2
|
export { z } from 'zod';
|
|
3
|
-
import { s as AgentHooks, t as ModelRegistry, u as LLMist, C as CompactionConfig, I as IConversationManager, v as CompactionEvent, L as LLMMessage, w as CompactionStats, x as CompactionStrategy, R as ResolvedCompactionConfig, y as CompactionContext, z as CompactionResult, B as MessageContent, G as GadgetMediaOutput, H as HintTemplate, S as StreamEvent, T as TokenUsage, D as GadgetRegistry, E as MediaStore, F as AgentContextConfig, J as SubagentConfigMap,
|
|
4
|
-
export { ae as AfterGadgetExecutionAction, af as AfterGadgetExecutionControllerContext, ag as AfterLLMCallAction, ah as AfterLLMCallControllerContext, ai as AfterLLMErrorAction, a9 as AgentBuilder, aj as AgentOptions,
|
|
3
|
+
import { s as AgentHooks, t as ModelRegistry, u as LLMist, C as CompactionConfig, I as IConversationManager, v as CompactionEvent, L as LLMMessage, w as CompactionStats, x as CompactionStrategy, R as ResolvedCompactionConfig, y as CompactionContext, z as CompactionResult, B as MessageContent, G as GadgetMediaOutput, H as HintTemplate, S as StreamEvent, T as TokenUsage, D as GadgetRegistry, E as MediaStore, F as AgentContextConfig, J as SubagentConfigMap, K as SubagentEvent, b as LLMStreamChunk, N as ExecutionContext, O as GadgetExecuteReturn, P as GadgetExample, A as AbstractGadget, Q as ParsedGadgetCall, U as GadgetExecutionResult, V as MediaKind, W as MediaMetadata, X as GadgetExecuteResultWithMedia, Y as ProviderAdapter, Z as ModelDescriptor, _ as ModelSpec, $ as LLMGenerationOptions, a as LLMStream, a0 as ImageModelSpec, a1 as ImageGenerationOptions, a2 as ImageGenerationResult, a3 as SpeechModelSpec, a4 as SpeechGenerationOptions, a5 as SpeechGenerationResult } from './mock-stream-BvNYtrlG.js';
|
|
4
|
+
export { ae as AfterGadgetExecutionAction, af as AfterGadgetExecutionControllerContext, ag as AfterLLMCallAction, ah as AfterLLMCallControllerContext, ai as AfterLLMErrorAction, a9 as AgentBuilder, aj as AgentOptions, aI as AudioContentPart, aJ as AudioMimeType, aK as AudioSource, ak as BeforeGadgetExecutionAction, al as BeforeLLMCallAction, am as ChunkInterceptorContext, aL as ContentPart, an as Controllers, b8 as CostEstimate, bu as CostReportingLLMist, aF as DEFAULT_COMPACTION_CONFIG, bk as DEFAULT_HINTS, bl as DEFAULT_PROMPTS, aG as DEFAULT_SUMMARIZATION_PROMPT, aa as EventHandlers, bs as GadgetClass, bv as GadgetExecuteResult, ao as GadgetExecutionControllerContext, bt as GadgetOrClass, ap as GadgetParameterInterceptorContext, aq as GadgetResultInterceptorContext, bw as GadgetSkippedEvent, bg as HintContext, a6 as HistoryMessage, aM as ImageBase64Source, aN as ImageContentPart, aO as ImageMimeType, aP as ImageSource, aQ as ImageUrlSource, ar as Interceptors, as as LLMCallControllerContext, at as LLMErrorControllerContext, b6 as LLMMessageBuilder, aH as LLMistOptions, au as MessageInterceptorContext, b4 as MessageRole, av as MessageTurn, d as MockBuilder, f as MockManager, l as MockMatcher, n as MockMatcherContext, o as MockOptions, M as MockProviderAdapter, p as MockRegistration, q as MockResponse, r as MockStats, b9 as ModelFeatures, bf as ModelIdentifierParser, ba as ModelLimits, bb as ModelPricing, aw as ObserveChunkContext, ax as ObserveCompactionContext, ay as ObserveGadgetCompleteContext, az as ObserveGadgetStartContext, aA as ObserveLLMCallContext, aB as ObserveLLMCompleteContext, aC as ObserveLLMErrorContext, aD as Observers, bh as PromptContext, bi as PromptTemplate, bj as PromptTemplateConfig, be as ProviderIdentifier, bx as StoredMedia, aE as SubagentContext, by as SubagentStreamEvent, aR as TextContentPart, bp as TextGenerationOptions, bz as TextOnlyAction, bA as TextOnlyContext, bB as TextOnlyCustomHandler, bC as TextOnlyGadgetConfig, bD as TextOnlyHandler, bE as TextOnlyStrategy, a7 as TrailingMessage, a8 as TrailingMessageContext, bc as VisionAnalyzeOptions, bd as VisionAnalyzeResult, aS as audioFromBase64, aT as audioFromBuffer, ab as collectEvents, ac as collectText, bq as complete, c as createMockAdapter, e as createMockClient, h as createMockStream, i as createTextMockStream, aU as detectAudioMimeType, aV as detectImageMimeType, b5 as extractMessageText, g as getMockManager, aW as imageFromBase64, aX as imageFromBuffer, aY as imageFromUrl, aZ as isAudioPart, a_ as isDataUrl, a$ as isImagePart, b0 as isTextPart, m as mockLLM, b7 as normalizeMessageContent, b1 as parseDataUrl, bm as resolveHintTemplate, bn as resolvePromptTemplate, bo as resolveRulesTemplate, ad as runWithHandlers, br as stream, b2 as text, b3 as toBase64 } from './mock-stream-BvNYtrlG.js';
|
|
5
5
|
import { Logger, ILogObj } from 'tslog';
|
|
6
6
|
import { MessageCreateParamsStreaming, MessageStreamEvent } from '@anthropic-ai/sdk/resources/messages';
|
|
7
7
|
import OpenAI from 'openai';
|
|
@@ -1199,8 +1199,8 @@ interface StreamProcessorOptions {
|
|
|
1199
1199
|
agentConfig?: AgentContextConfig;
|
|
1200
1200
|
/** Subagent-specific configuration overrides */
|
|
1201
1201
|
subagentConfig?: SubagentConfigMap;
|
|
1202
|
-
/** Callback for subagent gadgets to report
|
|
1203
|
-
|
|
1202
|
+
/** Callback for subagent gadgets to report subagent events to parent */
|
|
1203
|
+
onSubagentEvent?: (event: SubagentEvent) => void;
|
|
1204
1204
|
}
|
|
1205
1205
|
/**
|
|
1206
1206
|
* Result of stream processing.
|
|
@@ -1729,11 +1729,11 @@ declare class GadgetExecutor {
|
|
|
1729
1729
|
private readonly mediaStore?;
|
|
1730
1730
|
private readonly agentConfig?;
|
|
1731
1731
|
private readonly subagentConfig?;
|
|
1732
|
-
private readonly
|
|
1732
|
+
private readonly onSubagentEvent?;
|
|
1733
1733
|
private readonly logger;
|
|
1734
1734
|
private readonly errorFormatter;
|
|
1735
1735
|
private readonly argPrefix;
|
|
1736
|
-
constructor(registry: GadgetRegistry, requestHumanInput?: ((question: string) => Promise<string>) | undefined, logger?: Logger<ILogObj>, defaultGadgetTimeoutMs?: number | undefined, errorFormatterOptions?: ErrorFormatterOptions, client?: LLMist | undefined, mediaStore?: MediaStore | undefined, agentConfig?: AgentContextConfig | undefined, subagentConfig?: SubagentConfigMap | undefined,
|
|
1736
|
+
constructor(registry: GadgetRegistry, requestHumanInput?: ((question: string) => Promise<string>) | undefined, logger?: Logger<ILogObj>, defaultGadgetTimeoutMs?: number | undefined, errorFormatterOptions?: ErrorFormatterOptions, client?: LLMist | undefined, mediaStore?: MediaStore | undefined, agentConfig?: AgentContextConfig | undefined, subagentConfig?: SubagentConfigMap | undefined, onSubagentEvent?: ((event: SubagentEvent) => void) | undefined);
|
|
1737
1737
|
/**
|
|
1738
1738
|
* Creates a promise that rejects with a TimeoutException after the specified timeout.
|
|
1739
1739
|
* Aborts the provided AbortController before rejecting, allowing gadgets to clean up.
|
|
@@ -2607,4 +2607,4 @@ declare class OpenAIChatProvider extends BaseProviderAdapter {
|
|
|
2607
2607
|
}
|
|
2608
2608
|
declare function createOpenAIProviderFromEnv(): OpenAIChatProvider | null;
|
|
2609
2609
|
|
|
2610
|
-
export { AbortException, AbstractGadget, AgentHooks, AnthropicMessagesProvider, CompactionConfig, CompactionContext, CompactionEvent, CompactionManager, CompactionResult, CompactionStats, CompactionStrategy, ConversationManager, type CreateGadgetConfig, ExecutionContext, Gadget, GadgetCallParser, type GadgetConfig, GadgetExample, GadgetExecuteResultWithMedia, GadgetExecuteReturn, GadgetExecutionResult, GadgetExecutor, GadgetMediaOutput, GadgetOutputStore, GadgetRegistry, GeminiGenerativeProvider, HintTemplate, type HintsConfig, HookPresets, HumanInputRequiredException, HybridStrategy, IConversationManager, type IterationHintOptions, LLMGenerationOptions, LLMMessage, LLMStream, LLMStreamChunk, LLMist, type LoggerOptions, type LoggingOptions, MODEL_ALIASES, MediaKind, MediaMetadata, MediaStore, MessageContent, ModelDescriptor, ModelRegistry, ModelSpec, OpenAIChatProvider, type ParallelGadgetHintOptions, ParsedGadgetCall, ProviderAdapter, ResolvedCompactionConfig, SlidingWindowStrategy, type StoredOutput, StreamEvent, type StreamProcessingResult, StreamProcessor, type StreamProcessorOptions, SummarizationStrategy, TaskCompletionSignal, TimeoutException, TokenUsage, type ValidationIssue, type ValidationResult, createAnthropicProviderFromEnv, createGadget, createGadgetOutputViewer, createGeminiProviderFromEnv, createHints, createLogger, createMediaOutput, createOpenAIProviderFromEnv, defaultLogger, discoverProviderAdapters, getModelId, getProvider, hasProviderPrefix, iterationProgressHint, parallelGadgetHint, resolveModel, resultWithAudio, resultWithFile, resultWithImage, resultWithImages, resultWithMedia, validateAndApplyDefaults, validateGadgetParams };
|
|
2610
|
+
export { AbortException, AbstractGadget, AgentHooks, AnthropicMessagesProvider, CompactionConfig, CompactionContext, CompactionEvent, CompactionManager, CompactionResult, CompactionStats, CompactionStrategy, ConversationManager, type CreateGadgetConfig, ExecutionContext, Gadget, GadgetCallParser, type GadgetConfig, GadgetExample, GadgetExecuteResultWithMedia, GadgetExecuteReturn, GadgetExecutionResult, GadgetExecutor, GadgetMediaOutput, GadgetOutputStore, GadgetRegistry, GeminiGenerativeProvider, HintTemplate, type HintsConfig, HookPresets, HumanInputRequiredException, HybridStrategy, IConversationManager, type IterationHintOptions, LLMGenerationOptions, LLMMessage, LLMStream, LLMStreamChunk, LLMist, type LoggerOptions, type LoggingOptions, MODEL_ALIASES, MediaKind, MediaMetadata, MediaStore, MessageContent, ModelDescriptor, ModelRegistry, ModelSpec, OpenAIChatProvider, type ParallelGadgetHintOptions, ParsedGadgetCall, ProviderAdapter, ResolvedCompactionConfig, SlidingWindowStrategy, type StoredOutput, StreamEvent, type StreamProcessingResult, StreamProcessor, type StreamProcessorOptions, SubagentEvent, SummarizationStrategy, TaskCompletionSignal, TimeoutException, TokenUsage, type ValidationIssue, type ValidationResult, createAnthropicProviderFromEnv, createGadget, createGadgetOutputViewer, createGeminiProviderFromEnv, createHints, createLogger, createMediaOutput, createOpenAIProviderFromEnv, defaultLogger, discoverProviderAdapters, getModelId, getProvider, hasProviderPrefix, iterationProgressHint, parallelGadgetHint, resolveModel, resultWithAudio, resultWithFile, resultWithImage, resultWithImages, resultWithMedia, validateAndApplyDefaults, validateGadgetParams };
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resultWithImages,
|
|
12
12
|
resultWithMedia,
|
|
13
13
|
z
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Q6NQRMYD.js";
|
|
15
15
|
import {
|
|
16
16
|
AbortException,
|
|
17
17
|
AbstractGadget,
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
toBase64,
|
|
90
90
|
validateAndApplyDefaults,
|
|
91
91
|
validateGadgetParams
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-RHR2M6T6.js";
|
|
93
93
|
export {
|
|
94
94
|
AbortException,
|
|
95
95
|
AbstractGadget,
|
|
@@ -1022,9 +1022,14 @@ type StreamEvent = {
|
|
|
1022
1022
|
} | {
|
|
1023
1023
|
type: "compaction";
|
|
1024
1024
|
event: CompactionEvent;
|
|
1025
|
-
} | StreamCompletionEvent;
|
|
1025
|
+
} | SubagentStreamEvent | StreamCompletionEvent;
|
|
1026
|
+
/** Event for forwarding subagent activity through the stream */
|
|
1027
|
+
interface SubagentStreamEvent {
|
|
1028
|
+
type: "subagent_event";
|
|
1029
|
+
subagentEvent: SubagentEvent;
|
|
1030
|
+
}
|
|
1026
1031
|
/**
|
|
1027
|
-
* Information about an LLM call within a
|
|
1032
|
+
* Information about an LLM call within a subagent.
|
|
1028
1033
|
* Used by parent agents to display real-time progress of subagent LLM calls.
|
|
1029
1034
|
*/
|
|
1030
1035
|
interface LLMCallInfo {
|
|
@@ -1043,13 +1048,13 @@ interface LLMCallInfo {
|
|
|
1043
1048
|
}
|
|
1044
1049
|
/**
|
|
1045
1050
|
* Event emitted by subagent gadgets to report internal agent activity.
|
|
1046
|
-
* Enables real-time display of
|
|
1051
|
+
* Enables real-time display of subagent LLM calls and gadget executions.
|
|
1047
1052
|
*
|
|
1048
1053
|
* @example
|
|
1049
1054
|
* ```typescript
|
|
1050
1055
|
* // Forwarding events from subagent to parent
|
|
1051
1056
|
* for await (const event of subagent.run()) {
|
|
1052
|
-
* ctx.
|
|
1057
|
+
* ctx.onSubagentEvent?.({
|
|
1053
1058
|
* type: event.type === "gadget_call" ? "gadget_call" : "gadget_result",
|
|
1054
1059
|
* gadgetInvocationId: parentInvocationId,
|
|
1055
1060
|
* depth: 1,
|
|
@@ -1058,10 +1063,10 @@ interface LLMCallInfo {
|
|
|
1058
1063
|
* }
|
|
1059
1064
|
* ```
|
|
1060
1065
|
*/
|
|
1061
|
-
interface
|
|
1062
|
-
/** Type of
|
|
1066
|
+
interface SubagentEvent {
|
|
1067
|
+
/** Type of subagent event */
|
|
1063
1068
|
type: "llm_call_start" | "llm_call_end" | "gadget_call" | "gadget_result";
|
|
1064
|
-
/** Invocation ID of the parent gadget this
|
|
1069
|
+
/** Invocation ID of the parent gadget this subagent event belongs to */
|
|
1065
1070
|
gadgetInvocationId: string;
|
|
1066
1071
|
/** Nesting depth (1 = direct child, 2 = grandchild, etc.) */
|
|
1067
1072
|
depth: number;
|
|
@@ -1389,7 +1394,7 @@ interface ExecutionContext {
|
|
|
1389
1394
|
*
|
|
1390
1395
|
* When provided, subagent gadgets (like BrowseWeb) can use this callback
|
|
1391
1396
|
* to report their internal LLM calls and gadget executions in real-time.
|
|
1392
|
-
* This enables the parent agent to display
|
|
1397
|
+
* This enables the parent agent to display subagent progress indicators.
|
|
1393
1398
|
*
|
|
1394
1399
|
* **Recommended:** Use `builder.withParentContext(ctx)` instead of calling
|
|
1395
1400
|
* this directly - it handles all the forwarding automatically.
|
|
@@ -1410,7 +1415,7 @@ interface ExecutionContext {
|
|
|
1410
1415
|
* }
|
|
1411
1416
|
* ```
|
|
1412
1417
|
*/
|
|
1413
|
-
|
|
1418
|
+
onSubagentEvent?: (event: SubagentEvent) => void;
|
|
1414
1419
|
}
|
|
1415
1420
|
/**
|
|
1416
1421
|
* Parent agent configuration passed to gadgets.
|
|
@@ -3037,6 +3042,34 @@ declare function collectText(agentGenerator: AsyncGenerator<StreamEvent>): Promi
|
|
|
3037
3042
|
* @module agent/hooks
|
|
3038
3043
|
*/
|
|
3039
3044
|
|
|
3045
|
+
/**
|
|
3046
|
+
* Metadata present when an event originates from a subagent.
|
|
3047
|
+
* Undefined for top-level agent events.
|
|
3048
|
+
*
|
|
3049
|
+
* When using subagent gadgets (like BrowseWeb), hook observers receive events
|
|
3050
|
+
* from both the main agent AND subagents. Check this context to distinguish.
|
|
3051
|
+
*
|
|
3052
|
+
* @example
|
|
3053
|
+
* ```typescript
|
|
3054
|
+
* observers: {
|
|
3055
|
+
* onLLMCallStart: (ctx) => {
|
|
3056
|
+
* if (ctx.subagentContext) {
|
|
3057
|
+
* // Event from a subagent
|
|
3058
|
+
* console.log(`↳ Subagent LLM (depth=${ctx.subagentContext.depth})`);
|
|
3059
|
+
* } else {
|
|
3060
|
+
* // Event from the main agent
|
|
3061
|
+
* console.log('Main agent LLM call');
|
|
3062
|
+
* }
|
|
3063
|
+
* }
|
|
3064
|
+
* }
|
|
3065
|
+
* ```
|
|
3066
|
+
*/
|
|
3067
|
+
interface SubagentContext {
|
|
3068
|
+
/** Invocation ID of the parent gadget that spawned this subagent */
|
|
3069
|
+
parentGadgetInvocationId: string;
|
|
3070
|
+
/** Nesting depth: 1 = direct child, 2 = grandchild, etc. */
|
|
3071
|
+
depth: number;
|
|
3072
|
+
}
|
|
3040
3073
|
/**
|
|
3041
3074
|
* Context provided when an LLM call starts.
|
|
3042
3075
|
* Read-only observation point.
|
|
@@ -3045,6 +3078,8 @@ interface ObserveLLMCallContext {
|
|
|
3045
3078
|
iteration: number;
|
|
3046
3079
|
options: Readonly<LLMGenerationOptions>;
|
|
3047
3080
|
logger: Logger<ILogObj>;
|
|
3081
|
+
/** Present when event is from a subagent (undefined for top-level agent) */
|
|
3082
|
+
subagentContext?: SubagentContext;
|
|
3048
3083
|
}
|
|
3049
3084
|
/**
|
|
3050
3085
|
* Context provided when an LLM call is ready to execute.
|
|
@@ -3057,6 +3092,8 @@ interface ObserveLLMCallReadyContext {
|
|
|
3057
3092
|
/** Final options after any controller modifications (e.g., trailing messages) */
|
|
3058
3093
|
options: Readonly<LLMGenerationOptions>;
|
|
3059
3094
|
logger: Logger<ILogObj>;
|
|
3095
|
+
/** Present when event is from a subagent (undefined for top-level agent) */
|
|
3096
|
+
subagentContext?: SubagentContext;
|
|
3060
3097
|
}
|
|
3061
3098
|
/**
|
|
3062
3099
|
* Context provided when an LLM call completes successfully.
|
|
@@ -3073,6 +3110,8 @@ interface ObserveLLMCompleteContext {
|
|
|
3073
3110
|
/** The final message that will be added to history (after interceptors) */
|
|
3074
3111
|
finalMessage: string;
|
|
3075
3112
|
logger: Logger<ILogObj>;
|
|
3113
|
+
/** Present when event is from a subagent (undefined for top-level agent) */
|
|
3114
|
+
subagentContext?: SubagentContext;
|
|
3076
3115
|
}
|
|
3077
3116
|
/**
|
|
3078
3117
|
* Context provided when an LLM call fails.
|
|
@@ -3085,6 +3124,8 @@ interface ObserveLLMErrorContext {
|
|
|
3085
3124
|
/** Whether the error was recovered by a controller */
|
|
3086
3125
|
recovered: boolean;
|
|
3087
3126
|
logger: Logger<ILogObj>;
|
|
3127
|
+
/** Present when event is from a subagent (undefined for top-level agent) */
|
|
3128
|
+
subagentContext?: SubagentContext;
|
|
3088
3129
|
}
|
|
3089
3130
|
/**
|
|
3090
3131
|
* Context provided when a gadget execution starts.
|
|
@@ -3097,6 +3138,8 @@ interface ObserveGadgetStartContext {
|
|
|
3097
3138
|
/** Parameters after controller modifications */
|
|
3098
3139
|
parameters: Readonly<Record<string, unknown>>;
|
|
3099
3140
|
logger: Logger<ILogObj>;
|
|
3141
|
+
/** Present when event is from a subagent (undefined for top-level agent) */
|
|
3142
|
+
subagentContext?: SubagentContext;
|
|
3100
3143
|
}
|
|
3101
3144
|
/**
|
|
3102
3145
|
* Context provided when a gadget execution completes.
|
|
@@ -3117,6 +3160,8 @@ interface ObserveGadgetCompleteContext {
|
|
|
3117
3160
|
/** Cost of gadget execution in USD. 0 if gadget didn't report cost. */
|
|
3118
3161
|
cost?: number;
|
|
3119
3162
|
logger: Logger<ILogObj>;
|
|
3163
|
+
/** Present when event is from a subagent (undefined for top-level agent) */
|
|
3164
|
+
subagentContext?: SubagentContext;
|
|
3120
3165
|
}
|
|
3121
3166
|
/**
|
|
3122
3167
|
* Context provided when a gadget is skipped due to a failed dependency.
|
|
@@ -3132,6 +3177,8 @@ interface ObserveGadgetSkippedContext {
|
|
|
3132
3177
|
/** The error message from the failed dependency */
|
|
3133
3178
|
failedDependencyError: string;
|
|
3134
3179
|
logger: Logger<ILogObj>;
|
|
3180
|
+
/** Present when event is from a subagent (undefined for top-level agent) */
|
|
3181
|
+
subagentContext?: SubagentContext;
|
|
3135
3182
|
}
|
|
3136
3183
|
/**
|
|
3137
3184
|
* Context provided for each stream chunk.
|
|
@@ -3146,6 +3193,8 @@ interface ObserveChunkContext {
|
|
|
3146
3193
|
/** Token usage if available (providers send usage at stream start/end) */
|
|
3147
3194
|
usage?: TokenUsage;
|
|
3148
3195
|
logger: Logger<ILogObj>;
|
|
3196
|
+
/** Present when event is from a subagent (undefined for top-level agent) */
|
|
3197
|
+
subagentContext?: SubagentContext;
|
|
3149
3198
|
}
|
|
3150
3199
|
/**
|
|
3151
3200
|
* Observers: Read-only hooks for side effects.
|
|
@@ -3188,6 +3237,8 @@ interface ObserveCompactionContext {
|
|
|
3188
3237
|
stats: CompactionStats;
|
|
3189
3238
|
/** Logger instance */
|
|
3190
3239
|
logger: Logger<ILogObj>;
|
|
3240
|
+
/** Present when event is from a subagent (undefined for top-level agent) */
|
|
3241
|
+
subagentContext?: SubagentContext;
|
|
3191
3242
|
}
|
|
3192
3243
|
/**
|
|
3193
3244
|
* Context provided when the agent is aborted via AbortSignal.
|
|
@@ -3200,6 +3251,8 @@ interface ObserveAbortContext {
|
|
|
3200
3251
|
reason?: unknown;
|
|
3201
3252
|
/** Logger instance */
|
|
3202
3253
|
logger: Logger<ILogObj>;
|
|
3254
|
+
/** Present when event is from a subagent (undefined for top-level agent) */
|
|
3255
|
+
subagentContext?: SubagentContext;
|
|
3203
3256
|
}
|
|
3204
3257
|
/**
|
|
3205
3258
|
* Context for chunk interception.
|
|
@@ -3572,8 +3625,8 @@ interface AgentOptions {
|
|
|
3572
3625
|
signal?: AbortSignal;
|
|
3573
3626
|
/** Subagent-specific configuration overrides (from CLI config) */
|
|
3574
3627
|
subagentConfig?: SubagentConfigMap;
|
|
3575
|
-
/** Callback for subagent gadgets to report
|
|
3576
|
-
|
|
3628
|
+
/** Callback for subagent gadgets to report subagent events to parent */
|
|
3629
|
+
onSubagentEvent?: (event: SubagentEvent) => void;
|
|
3577
3630
|
}
|
|
3578
3631
|
/**
|
|
3579
3632
|
* Agent: Lean orchestrator that delegates to StreamProcessor.
|
|
@@ -3618,12 +3671,19 @@ declare class Agent {
|
|
|
3618
3671
|
private readonly signal?;
|
|
3619
3672
|
private readonly agentContextConfig;
|
|
3620
3673
|
private readonly subagentConfig?;
|
|
3621
|
-
private readonly
|
|
3674
|
+
private readonly userSubagentEventCallback?;
|
|
3675
|
+
private readonly pendingSubagentEvents;
|
|
3676
|
+
private readonly onSubagentEvent;
|
|
3622
3677
|
/**
|
|
3623
3678
|
* Creates a new Agent instance.
|
|
3624
3679
|
* @internal This constructor is private. Use LLMist.createAgent() or AgentBuilder instead.
|
|
3625
3680
|
*/
|
|
3626
3681
|
constructor(key: typeof AGENT_INTERNAL_KEY, options: AgentOptions);
|
|
3682
|
+
/**
|
|
3683
|
+
* Flush pending subagent events as StreamEvents.
|
|
3684
|
+
* Called from run() to yield queued subagent events from subagent gadgets.
|
|
3685
|
+
*/
|
|
3686
|
+
private flushPendingSubagentEvents;
|
|
3627
3687
|
/**
|
|
3628
3688
|
* Get the gadget registry for this agent.
|
|
3629
3689
|
*
|
|
@@ -3829,7 +3889,7 @@ declare class AgentBuilder {
|
|
|
3829
3889
|
private signal?;
|
|
3830
3890
|
private trailingMessage?;
|
|
3831
3891
|
private subagentConfig?;
|
|
3832
|
-
private
|
|
3892
|
+
private subagentEventCallback?;
|
|
3833
3893
|
private parentContext?;
|
|
3834
3894
|
constructor(client?: LLMist);
|
|
3835
3895
|
/**
|
|
@@ -4247,35 +4307,35 @@ declare class AgentBuilder {
|
|
|
4247
4307
|
*/
|
|
4248
4308
|
withSubagentConfig(config: SubagentConfigMap): this;
|
|
4249
4309
|
/**
|
|
4250
|
-
* Set the callback for
|
|
4310
|
+
* Set the callback for subagent events.
|
|
4251
4311
|
*
|
|
4252
|
-
* Subagent gadgets (like BrowseWeb) can use ExecutionContext.
|
|
4312
|
+
* Subagent gadgets (like BrowseWeb) can use ExecutionContext.onSubagentEvent
|
|
4253
4313
|
* to report their internal LLM calls and gadget executions in real-time.
|
|
4254
4314
|
* This callback receives those events, enabling hierarchical progress display.
|
|
4255
4315
|
*
|
|
4256
|
-
* @param callback - Function to handle
|
|
4316
|
+
* @param callback - Function to handle subagent events
|
|
4257
4317
|
* @returns This builder for chaining
|
|
4258
4318
|
*
|
|
4259
4319
|
* @example
|
|
4260
4320
|
* ```typescript
|
|
4261
|
-
* .
|
|
4321
|
+
* .withSubagentEventCallback((event) => {
|
|
4262
4322
|
* if (event.type === "llm_call_start") {
|
|
4263
|
-
* console.log(`
|
|
4323
|
+
* console.log(` Subagent LLM #${event.event.iteration} starting...`);
|
|
4264
4324
|
* } else if (event.type === "gadget_call") {
|
|
4265
4325
|
* console.log(` ⏵ ${event.event.call.gadgetName}...`);
|
|
4266
4326
|
* }
|
|
4267
4327
|
* })
|
|
4268
4328
|
* ```
|
|
4269
4329
|
*/
|
|
4270
|
-
|
|
4330
|
+
withSubagentEventCallback(callback: (event: SubagentEvent) => void): this;
|
|
4271
4331
|
/**
|
|
4272
|
-
* Enable automatic
|
|
4332
|
+
* Enable automatic subagent event forwarding to parent agent.
|
|
4273
4333
|
*
|
|
4274
4334
|
* When building a subagent inside a gadget, call this method to automatically
|
|
4275
4335
|
* forward all LLM calls and gadget events to the parent agent. This enables
|
|
4276
4336
|
* hierarchical progress display without any manual event handling.
|
|
4277
4337
|
*
|
|
4278
|
-
* The method extracts `invocationId` and `
|
|
4338
|
+
* The method extracts `invocationId` and `onSubagentEvent` from the execution
|
|
4279
4339
|
* context and sets up automatic forwarding via hooks and event wrapping.
|
|
4280
4340
|
*
|
|
4281
4341
|
* @param ctx - ExecutionContext passed to the gadget's execute() method
|
|
@@ -4353,7 +4413,7 @@ declare class AgentBuilder {
|
|
|
4353
4413
|
/**
|
|
4354
4414
|
* Compose the final hooks, including:
|
|
4355
4415
|
* - Trailing message injection (if configured)
|
|
4356
|
-
* -
|
|
4416
|
+
* - Subagent event forwarding for LLM calls (if parentContext is set)
|
|
4357
4417
|
*/
|
|
4358
4418
|
private composeHooks;
|
|
4359
4419
|
/**
|
|
@@ -5261,4 +5321,4 @@ declare function createTextMockStream(text: string, options?: {
|
|
|
5261
5321
|
usage?: MockResponse["usage"];
|
|
5262
5322
|
}): LLMStream;
|
|
5263
5323
|
|
|
5264
|
-
export { type LLMGenerationOptions as $, AbstractGadget as A, type MessageContent as B, type CompactionConfig as C, GadgetRegistry as D, MediaStore as E, type AgentContextConfig as F, type GadgetMediaOutput as G, type HintTemplate as H, type IConversationManager as I, type SubagentConfigMap as J, type
|
|
5324
|
+
export { type LLMGenerationOptions as $, AbstractGadget as A, type MessageContent as B, type CompactionConfig as C, GadgetRegistry as D, MediaStore as E, type AgentContextConfig as F, type GadgetMediaOutput as G, type HintTemplate as H, type IConversationManager as I, type SubagentConfigMap as J, type SubagentEvent as K, type LLMMessage as L, MockProviderAdapter as M, type ExecutionContext as N, type GadgetExecuteReturn as O, type GadgetExample as P, type ParsedGadgetCall as Q, type ResolvedCompactionConfig as R, type StreamEvent as S, type TokenUsage as T, type GadgetExecutionResult as U, type MediaKind as V, type MediaMetadata as W, type GadgetExecuteResultWithMedia as X, type ProviderAdapter as Y, type ModelDescriptor as Z, type ModelSpec as _, type LLMStream as a, isImagePart as a$, type ImageModelSpec as a0, type ImageGenerationOptions as a1, type ImageGenerationResult as a2, type SpeechModelSpec as a3, type SpeechGenerationOptions as a4, type SpeechGenerationResult as a5, type HistoryMessage as a6, type TrailingMessage as a7, type TrailingMessageContext as a8, AgentBuilder as a9, type ObserveLLMCallContext as aA, type ObserveLLMCompleteContext as aB, type ObserveLLMErrorContext as aC, type Observers as aD, type SubagentContext as aE, DEFAULT_COMPACTION_CONFIG as aF, DEFAULT_SUMMARIZATION_PROMPT as aG, type LLMistOptions as aH, type AudioContentPart as aI, type AudioMimeType as aJ, type AudioSource as aK, type ContentPart as aL, type ImageBase64Source as aM, type ImageContentPart as aN, type ImageMimeType as aO, type ImageSource as aP, type ImageUrlSource as aQ, type TextContentPart as aR, audioFromBase64 as aS, audioFromBuffer as aT, detectAudioMimeType as aU, detectImageMimeType as aV, imageFromBase64 as aW, imageFromBuffer as aX, imageFromUrl as aY, isAudioPart as aZ, isDataUrl as a_, type EventHandlers as aa, collectEvents as ab, collectText as ac, runWithHandlers as ad, type AfterGadgetExecutionAction as ae, type AfterGadgetExecutionControllerContext as af, type AfterLLMCallAction as ag, type AfterLLMCallControllerContext as ah, type AfterLLMErrorAction as ai, type AgentOptions as aj, type BeforeGadgetExecutionAction as ak, type BeforeLLMCallAction as al, type ChunkInterceptorContext as am, type Controllers as an, type GadgetExecutionControllerContext as ao, type GadgetParameterInterceptorContext as ap, type GadgetResultInterceptorContext as aq, type Interceptors as ar, type LLMCallControllerContext as as, type LLMErrorControllerContext as at, type MessageInterceptorContext as au, type MessageTurn as av, type ObserveChunkContext as aw, type ObserveCompactionContext as ax, type ObserveGadgetCompleteContext as ay, type ObserveGadgetStartContext as az, type LLMStreamChunk as b, isTextPart as b0, parseDataUrl as b1, text as b2, toBase64 as b3, type MessageRole as b4, extractMessageText as b5, LLMMessageBuilder as b6, normalizeMessageContent as b7, type CostEstimate as b8, type ModelFeatures as b9, type TextOnlyContext as bA, type TextOnlyCustomHandler as bB, type TextOnlyGadgetConfig as bC, type TextOnlyHandler as bD, type TextOnlyStrategy as bE, type ModelLimits as ba, type ModelPricing as bb, type VisionAnalyzeOptions as bc, type VisionAnalyzeResult as bd, type ProviderIdentifier as be, ModelIdentifierParser as bf, type HintContext as bg, type PromptContext as bh, type PromptTemplate as bi, type PromptTemplateConfig as bj, DEFAULT_HINTS as bk, DEFAULT_PROMPTS as bl, resolveHintTemplate as bm, resolvePromptTemplate as bn, resolveRulesTemplate as bo, type TextGenerationOptions as bp, complete as bq, stream as br, type GadgetClass as bs, type GadgetOrClass as bt, type CostReportingLLMist as bu, type GadgetExecuteResult as bv, type GadgetSkippedEvent as bw, type StoredMedia as bx, type SubagentStreamEvent as by, type TextOnlyAction as bz, createMockAdapter as c, MockBuilder as d, createMockClient as e, MockManager as f, getMockManager as g, createMockStream as h, createTextMockStream as i, type MockAudioData as j, type MockImageData as k, type MockMatcher as l, mockLLM as m, type MockMatcherContext as n, type MockOptions as o, type MockRegistration as p, type MockResponse as q, type MockStats as r, type AgentHooks as s, ModelRegistry as t, LLMist as u, type CompactionEvent as v, type CompactionStats as w, type CompactionStrategy as x, type CompactionContext as y, type CompactionResult as z };
|