llmist 0.7.0 → 1.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-CTC2WJZA.js → chunk-53MM55JS.js} +40 -5
- package/dist/chunk-53MM55JS.js.map +1 -0
- package/dist/{chunk-ZFHFBEQ5.js → chunk-T24KLXY4.js} +673 -590
- package/dist/chunk-T24KLXY4.js.map +1 -0
- package/dist/cli.cjs +1287 -789
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +532 -116
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +709 -593
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +69 -14
- package/dist/index.d.ts +69 -14
- package/dist/index.js +2 -2
- package/dist/{mock-stream-B2qwECvd.d.cts → mock-stream-DKF5yatf.d.cts} +61 -121
- package/dist/{mock-stream-B2qwECvd.d.ts → mock-stream-DKF5yatf.d.ts} +61 -121
- package/dist/testing/index.cjs +709 -593
- 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 +2 -2
- package/package.json +2 -1
- package/dist/chunk-CTC2WJZA.js.map +0 -1
- package/dist/chunk-ZFHFBEQ5.js.map +0 -1
|
@@ -40,7 +40,7 @@ interface GadgetExecutionResult {
|
|
|
40
40
|
interface ParsedGadgetCall {
|
|
41
41
|
gadgetName: string;
|
|
42
42
|
invocationId: string;
|
|
43
|
-
|
|
43
|
+
parametersRaw: string;
|
|
44
44
|
parameters?: Record<string, unknown>;
|
|
45
45
|
parseError?: string;
|
|
46
46
|
}
|
|
@@ -116,46 +116,6 @@ type TextOnlyAction = {
|
|
|
116
116
|
parameters: Record<string, unknown>;
|
|
117
117
|
};
|
|
118
118
|
|
|
119
|
-
type ParameterFormat = "json" | "yaml" | "toml" | "auto";
|
|
120
|
-
interface StreamParserOptions {
|
|
121
|
-
startPrefix?: string;
|
|
122
|
-
endPrefix?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Format for parsing gadget parameters.
|
|
125
|
-
* - 'json': Parse as JSON (more robust, recommended for complex nested data)
|
|
126
|
-
* - 'yaml': Parse as YAML (backward compatible)
|
|
127
|
-
* - 'auto': Try JSON first, fall back to YAML
|
|
128
|
-
* @default 'json'
|
|
129
|
-
*/
|
|
130
|
-
parameterFormat?: ParameterFormat;
|
|
131
|
-
}
|
|
132
|
-
declare class StreamParser {
|
|
133
|
-
private buffer;
|
|
134
|
-
private lastReportedTextLength;
|
|
135
|
-
private readonly startPrefix;
|
|
136
|
-
private readonly endPrefix;
|
|
137
|
-
private readonly parameterFormat;
|
|
138
|
-
constructor(options?: StreamParserOptions);
|
|
139
|
-
private takeTextUntil;
|
|
140
|
-
/**
|
|
141
|
-
* Parse gadget name, handling both old format (name:invocationId) and new format (just name).
|
|
142
|
-
* For new format, generates a unique invocation ID.
|
|
143
|
-
*/
|
|
144
|
-
private parseGadgetName;
|
|
145
|
-
/**
|
|
146
|
-
* Truncate verbose parse errors to avoid context overflow.
|
|
147
|
-
* Keeps first meaningful line and limits total length.
|
|
148
|
-
*/
|
|
149
|
-
private truncateParseError;
|
|
150
|
-
/**
|
|
151
|
-
* Parse parameter string according to configured format
|
|
152
|
-
*/
|
|
153
|
-
private parseParameters;
|
|
154
|
-
feed(chunk: string): Generator<StreamEvent>;
|
|
155
|
-
finalize(): Generator<StreamEvent>;
|
|
156
|
-
reset(): void;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
119
|
/**
|
|
160
120
|
* Internal base class for gadgets. Most users should use the `Gadget` class
|
|
161
121
|
* (formerly TypedGadget) or `createGadget()` function instead, as they provide
|
|
@@ -205,29 +165,29 @@ declare abstract class BaseGadget {
|
|
|
205
165
|
/**
|
|
206
166
|
* Auto-generated instruction text for the LLM.
|
|
207
167
|
* Combines name, description, and parameter schema into a formatted instruction.
|
|
208
|
-
* @deprecated Use getInstruction(
|
|
168
|
+
* @deprecated Use getInstruction() instead
|
|
209
169
|
*/
|
|
210
170
|
get instruction(): string;
|
|
211
171
|
/**
|
|
212
|
-
* Generate instruction text for the LLM
|
|
172
|
+
* Generate instruction text for the LLM.
|
|
213
173
|
* Combines name, description, and parameter schema into a formatted instruction.
|
|
214
174
|
*
|
|
215
|
-
* @param
|
|
175
|
+
* @param argPrefix - Optional custom argument prefix for block format examples
|
|
216
176
|
* @returns Formatted instruction string
|
|
217
177
|
*/
|
|
218
|
-
getInstruction(
|
|
178
|
+
getInstruction(argPrefix?: string): string;
|
|
219
179
|
}
|
|
220
180
|
|
|
221
181
|
/**
|
|
222
182
|
* Context provided to prompt template functions for rendering dynamic content.
|
|
223
183
|
*/
|
|
224
184
|
interface PromptContext {
|
|
225
|
-
/** The parameter format being used (json or yaml) */
|
|
226
|
-
parameterFormat: ParameterFormat;
|
|
227
185
|
/** Custom gadget start prefix */
|
|
228
186
|
startPrefix: string;
|
|
229
187
|
/** Custom gadget end prefix */
|
|
230
188
|
endPrefix: string;
|
|
189
|
+
/** Custom argument prefix for block format */
|
|
190
|
+
argPrefix: string;
|
|
231
191
|
/** Number of gadgets being registered */
|
|
232
192
|
gadgetCount: number;
|
|
233
193
|
/** Names of all gadgets */
|
|
@@ -268,41 +228,16 @@ interface PromptConfig {
|
|
|
268
228
|
*/
|
|
269
229
|
criticalUsage?: PromptTemplate;
|
|
270
230
|
/**
|
|
271
|
-
* Format description for
|
|
272
|
-
* Default
|
|
273
|
-
*/
|
|
274
|
-
formatDescriptionYaml?: PromptTemplate;
|
|
275
|
-
/**
|
|
276
|
-
* Format description for JSON parameter format.
|
|
277
|
-
* Default: "Parameters in JSON format (valid JSON object)"
|
|
231
|
+
* Format description for the block parameter format.
|
|
232
|
+
* Default uses the configured argPrefix dynamically.
|
|
278
233
|
*/
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Format description for TOML parameter format.
|
|
282
|
-
* Default: "Parameters in TOML format (key = value pairs, use heredoc for multiline: key = <<<EOF ... EOF)"
|
|
283
|
-
*/
|
|
284
|
-
formatDescriptionToml?: PromptTemplate;
|
|
234
|
+
formatDescription?: PromptTemplate;
|
|
285
235
|
/**
|
|
286
236
|
* Rules that appear in the rules section.
|
|
287
237
|
* Can be an array of strings or a function that returns an array.
|
|
288
|
-
* Default includes
|
|
238
|
+
* Default includes rules about not using function calling.
|
|
289
239
|
*/
|
|
290
240
|
rules?: PromptTemplate | string[] | ((context: PromptContext) => string[]);
|
|
291
|
-
/**
|
|
292
|
-
* Schema label for JSON format.
|
|
293
|
-
* Default: "\n\nInput Schema (JSON):"
|
|
294
|
-
*/
|
|
295
|
-
schemaLabelJson?: PromptTemplate;
|
|
296
|
-
/**
|
|
297
|
-
* Schema label for YAML format.
|
|
298
|
-
* Default: "\n\nInput Schema (YAML):"
|
|
299
|
-
*/
|
|
300
|
-
schemaLabelYaml?: PromptTemplate;
|
|
301
|
-
/**
|
|
302
|
-
* Schema label for TOML format.
|
|
303
|
-
* Default: "\n\nInput Schema (TOML):"
|
|
304
|
-
*/
|
|
305
|
-
schemaLabelToml?: PromptTemplate;
|
|
306
241
|
/**
|
|
307
242
|
* Custom examples to show in the examples section.
|
|
308
243
|
* If provided, replaces the default examples entirely.
|
|
@@ -312,7 +247,6 @@ interface PromptConfig {
|
|
|
312
247
|
}
|
|
313
248
|
/**
|
|
314
249
|
* Default prompt templates used by llmist.
|
|
315
|
-
* These match the original hardcoded strings.
|
|
316
250
|
*/
|
|
317
251
|
declare const DEFAULT_PROMPTS: Required<Omit<PromptConfig, "rules" | "customExamples"> & {
|
|
318
252
|
rules: (context: PromptContext) => string[];
|
|
@@ -338,17 +272,19 @@ declare class LLMMessageBuilder {
|
|
|
338
272
|
private readonly messages;
|
|
339
273
|
private startPrefix;
|
|
340
274
|
private endPrefix;
|
|
275
|
+
private argPrefix;
|
|
341
276
|
private promptConfig;
|
|
342
277
|
constructor(promptConfig?: PromptConfig);
|
|
343
278
|
/**
|
|
344
279
|
* Set custom prefixes for gadget markers.
|
|
345
280
|
* Used to configure history builder to match system prompt markers.
|
|
346
281
|
*/
|
|
347
|
-
withPrefixes(startPrefix: string, endPrefix: string): this;
|
|
282
|
+
withPrefixes(startPrefix: string, endPrefix: string, argPrefix?: string): this;
|
|
348
283
|
addSystem(content: string, metadata?: Record<string, unknown>): this;
|
|
349
|
-
addGadgets(gadgets: BaseGadget[],
|
|
284
|
+
addGadgets(gadgets: BaseGadget[], options?: {
|
|
350
285
|
startPrefix?: string;
|
|
351
286
|
endPrefix?: string;
|
|
287
|
+
argPrefix?: string;
|
|
352
288
|
}): this;
|
|
353
289
|
private buildGadgetsSection;
|
|
354
290
|
private buildUsageSection;
|
|
@@ -356,8 +292,12 @@ declare class LLMMessageBuilder {
|
|
|
356
292
|
private buildRulesSection;
|
|
357
293
|
addUser(content: string, metadata?: Record<string, unknown>): this;
|
|
358
294
|
addAssistant(content: string, metadata?: Record<string, unknown>): this;
|
|
359
|
-
addGadgetCall(gadget: string, parameters: Record<string, unknown>, result: string
|
|
360
|
-
|
|
295
|
+
addGadgetCall(gadget: string, parameters: Record<string, unknown>, result: string): this;
|
|
296
|
+
/**
|
|
297
|
+
* Format parameters as Block format with JSON Pointer paths.
|
|
298
|
+
* Uses the configured argPrefix for consistency with system prompt.
|
|
299
|
+
*/
|
|
300
|
+
private formatBlockParameters;
|
|
361
301
|
build(): LLMMessage[];
|
|
362
302
|
}
|
|
363
303
|
|
|
@@ -374,6 +314,8 @@ interface ModelPricing {
|
|
|
374
314
|
output: number;
|
|
375
315
|
/** Price per 1 million cached input tokens in USD (if supported) */
|
|
376
316
|
cachedInput?: number;
|
|
317
|
+
/** Price per 1 million cache write tokens in USD (Anthropic: 1.25x input price) */
|
|
318
|
+
cacheWriteInput?: number;
|
|
377
319
|
}
|
|
378
320
|
interface ModelFeatures {
|
|
379
321
|
/** Supports streaming responses */
|
|
@@ -426,6 +368,10 @@ interface ModelLimits {
|
|
|
426
368
|
}
|
|
427
369
|
interface CostEstimate {
|
|
428
370
|
inputCost: number;
|
|
371
|
+
/** Cost for cached input tokens (already included in inputCost calculation) */
|
|
372
|
+
cachedInputCost: number;
|
|
373
|
+
/** Cost for cache creation tokens (already included in inputCost calculation, Anthropic only) */
|
|
374
|
+
cacheCreationCost: number;
|
|
429
375
|
outputCost: number;
|
|
430
376
|
totalCost: number;
|
|
431
377
|
currency: "USD";
|
|
@@ -446,6 +392,10 @@ interface TokenUsage {
|
|
|
446
392
|
inputTokens: number;
|
|
447
393
|
outputTokens: number;
|
|
448
394
|
totalTokens: number;
|
|
395
|
+
/** Number of input tokens served from cache (subset of inputTokens) */
|
|
396
|
+
cachedInputTokens?: number;
|
|
397
|
+
/** Number of input tokens written to cache (subset of inputTokens, Anthropic only) */
|
|
398
|
+
cacheCreationInputTokens?: number;
|
|
449
399
|
}
|
|
450
400
|
interface LLMStreamChunk {
|
|
451
401
|
text: string;
|
|
@@ -587,12 +537,13 @@ declare class ModelRegistry {
|
|
|
587
537
|
/**
|
|
588
538
|
* Estimate API cost for a given model and token usage
|
|
589
539
|
* @param modelId - Full model identifier
|
|
590
|
-
* @param inputTokens - Number of input tokens
|
|
540
|
+
* @param inputTokens - Number of input tokens (total, including cached and cache creation)
|
|
591
541
|
* @param outputTokens - Number of output tokens
|
|
592
|
-
* @param
|
|
542
|
+
* @param cachedInputTokens - Number of cached input tokens (subset of inputTokens)
|
|
543
|
+
* @param cacheCreationInputTokens - Number of cache creation tokens (subset of inputTokens, Anthropic only)
|
|
593
544
|
* @returns CostEstimate if model found, undefined otherwise
|
|
594
545
|
*/
|
|
595
|
-
estimateCost(modelId: string, inputTokens: number, outputTokens: number,
|
|
546
|
+
estimateCost(modelId: string, inputTokens: number, outputTokens: number, cachedInputTokens?: number, cacheCreationInputTokens?: number): CostEstimate | undefined;
|
|
596
547
|
/**
|
|
597
548
|
* Validate that requested token count fits within model limits
|
|
598
549
|
* @param modelId - Full model identifier
|
|
@@ -961,7 +912,7 @@ interface EventHandlers {
|
|
|
961
912
|
onGadgetCall?: (call: {
|
|
962
913
|
gadgetName: string;
|
|
963
914
|
parameters?: Record<string, unknown>;
|
|
964
|
-
|
|
915
|
+
parametersRaw: string;
|
|
965
916
|
}) => void | Promise<void>;
|
|
966
917
|
/** Called when a gadget execution completes */
|
|
967
918
|
onGadgetResult?: (result: {
|
|
@@ -1179,11 +1130,8 @@ interface ObserveLLMCompleteContext {
|
|
|
1179
1130
|
iteration: number;
|
|
1180
1131
|
options: Readonly<LLMGenerationOptions>;
|
|
1181
1132
|
finishReason: string | null;
|
|
1182
|
-
usage
|
|
1183
|
-
|
|
1184
|
-
outputTokens: number;
|
|
1185
|
-
totalTokens: number;
|
|
1186
|
-
};
|
|
1133
|
+
/** Token usage including cached token counts when available */
|
|
1134
|
+
usage?: TokenUsage;
|
|
1187
1135
|
/** The complete raw response text */
|
|
1188
1136
|
rawResponse: string;
|
|
1189
1137
|
/** The final message that will be added to history (after interceptors) */
|
|
@@ -1242,12 +1190,8 @@ interface ObserveChunkContext {
|
|
|
1242
1190
|
rawChunk: string;
|
|
1243
1191
|
/** Accumulated text so far */
|
|
1244
1192
|
accumulatedText: string;
|
|
1245
|
-
/** Token usage if available (
|
|
1246
|
-
usage?:
|
|
1247
|
-
inputTokens: number;
|
|
1248
|
-
outputTokens: number;
|
|
1249
|
-
totalTokens: number;
|
|
1250
|
-
};
|
|
1193
|
+
/** Token usage if available (providers send usage at stream start/end) */
|
|
1194
|
+
usage?: TokenUsage;
|
|
1251
1195
|
logger: Logger<ILogObj>;
|
|
1252
1196
|
}
|
|
1253
1197
|
/**
|
|
@@ -1387,11 +1331,8 @@ interface AfterLLMCallControllerContext {
|
|
|
1387
1331
|
iteration: number;
|
|
1388
1332
|
options: Readonly<LLMGenerationOptions>;
|
|
1389
1333
|
finishReason: string | null;
|
|
1390
|
-
usage
|
|
1391
|
-
|
|
1392
|
-
outputTokens: number;
|
|
1393
|
-
totalTokens: number;
|
|
1394
|
-
};
|
|
1334
|
+
/** Token usage including cached token counts when available */
|
|
1335
|
+
usage?: TokenUsage;
|
|
1395
1336
|
/** The final message (after interceptors) that will be added to history */
|
|
1396
1337
|
finalMessage: string;
|
|
1397
1338
|
logger: Logger<ILogObj>;
|
|
@@ -1552,12 +1493,12 @@ interface AgentOptions {
|
|
|
1552
1493
|
hooks?: AgentHooks;
|
|
1553
1494
|
/** Callback for human input */
|
|
1554
1495
|
onHumanInputRequired?: (question: string) => Promise<string>;
|
|
1555
|
-
/** Parameter format */
|
|
1556
|
-
parameterFormat?: ParameterFormat;
|
|
1557
1496
|
/** Custom gadget start prefix */
|
|
1558
1497
|
gadgetStartPrefix?: string;
|
|
1559
1498
|
/** Custom gadget end prefix */
|
|
1560
1499
|
gadgetEndPrefix?: string;
|
|
1500
|
+
/** Custom gadget argument prefix for block format parameters */
|
|
1501
|
+
gadgetArgPrefix?: string;
|
|
1561
1502
|
/** Initial messages */
|
|
1562
1503
|
initialMessages?: Array<{
|
|
1563
1504
|
role: "system" | "user" | "assistant";
|
|
@@ -1619,9 +1560,9 @@ declare class Agent {
|
|
|
1619
1560
|
private readonly hooks;
|
|
1620
1561
|
private readonly conversation;
|
|
1621
1562
|
private readonly registry;
|
|
1622
|
-
private readonly parameterFormat;
|
|
1623
1563
|
private readonly gadgetStartPrefix?;
|
|
1624
1564
|
private readonly gadgetEndPrefix?;
|
|
1565
|
+
private readonly gadgetArgPrefix?;
|
|
1625
1566
|
private readonly onHumanInputRequired?;
|
|
1626
1567
|
private readonly textOnlyHandler;
|
|
1627
1568
|
private readonly textWithGadgetsHandler?;
|
|
@@ -1750,9 +1691,9 @@ declare class AgentBuilder {
|
|
|
1750
1691
|
private gadgets;
|
|
1751
1692
|
private initialMessages;
|
|
1752
1693
|
private onHumanInputRequired?;
|
|
1753
|
-
private parameterFormat?;
|
|
1754
1694
|
private gadgetStartPrefix?;
|
|
1755
1695
|
private gadgetEndPrefix?;
|
|
1696
|
+
private gadgetArgPrefix?;
|
|
1756
1697
|
private textOnlyHandler?;
|
|
1757
1698
|
private textWithGadgetsHandler?;
|
|
1758
1699
|
private stopOnGadgetError?;
|
|
@@ -1897,18 +1838,6 @@ declare class AgentBuilder {
|
|
|
1897
1838
|
* ```
|
|
1898
1839
|
*/
|
|
1899
1840
|
onHumanInput(handler: (question: string) => Promise<string>): this;
|
|
1900
|
-
/**
|
|
1901
|
-
* Set the parameter format for gadget calls.
|
|
1902
|
-
*
|
|
1903
|
-
* @param format - Parameter format ("json" or "xml")
|
|
1904
|
-
* @returns This builder for chaining
|
|
1905
|
-
*
|
|
1906
|
-
* @example
|
|
1907
|
-
* ```typescript
|
|
1908
|
-
* .withParameterFormat("xml")
|
|
1909
|
-
* ```
|
|
1910
|
-
*/
|
|
1911
|
-
withParameterFormat(format: ParameterFormat): this;
|
|
1912
1841
|
/**
|
|
1913
1842
|
* Set custom gadget marker prefix.
|
|
1914
1843
|
*
|
|
@@ -1933,6 +1862,18 @@ declare class AgentBuilder {
|
|
|
1933
1862
|
* ```
|
|
1934
1863
|
*/
|
|
1935
1864
|
withGadgetEndPrefix(suffix: string): this;
|
|
1865
|
+
/**
|
|
1866
|
+
* Set custom argument prefix for block format parameters.
|
|
1867
|
+
*
|
|
1868
|
+
* @param prefix - Custom prefix for argument markers (default: "!!!ARG:")
|
|
1869
|
+
* @returns This builder for chaining
|
|
1870
|
+
*
|
|
1871
|
+
* @example
|
|
1872
|
+
* ```typescript
|
|
1873
|
+
* .withGadgetArgPrefix("<<ARG>>")
|
|
1874
|
+
* ```
|
|
1875
|
+
*/
|
|
1876
|
+
withGadgetArgPrefix(prefix: string): this;
|
|
1936
1877
|
/**
|
|
1937
1878
|
* Set the text-only handler strategy.
|
|
1938
1879
|
*
|
|
@@ -2113,10 +2054,9 @@ declare class AgentBuilder {
|
|
|
2113
2054
|
*/
|
|
2114
2055
|
withSyntheticGadgetCall(gadgetName: string, parameters: Record<string, unknown>, result: string): this;
|
|
2115
2056
|
/**
|
|
2116
|
-
* Format parameters
|
|
2117
|
-
* Uses heredoc for multiline string values.
|
|
2057
|
+
* Format parameters as block format with JSON Pointer paths.
|
|
2118
2058
|
*/
|
|
2119
|
-
private
|
|
2059
|
+
private formatBlockParameters;
|
|
2120
2060
|
/**
|
|
2121
2061
|
* Build and create the agent with the given user prompt.
|
|
2122
2062
|
* Returns the Agent instance ready to run.
|
|
@@ -2772,4 +2712,4 @@ declare function createTextMockStream(text: string, options?: {
|
|
|
2772
2712
|
usage?: MockResponse["usage"];
|
|
2773
2713
|
}): LLMStream;
|
|
2774
2714
|
|
|
2775
|
-
export { type MessageInterceptorContext as $, type AgentHooks as A, BaseGadget as B,
|
|
2715
|
+
export { type MessageInterceptorContext as $, type AgentHooks as A, BaseGadget as B, runWithHandlers as C, type AfterGadgetExecutionAction as D, type EventHandlers as E, type AfterGadgetExecutionControllerContext as F, GadgetRegistry as G, type HistoryMessage as H, type AfterLLMCallAction as I, type AfterLLMCallControllerContext as J, type AfterLLMErrorAction as K, type LLMMessage as L, MockProviderAdapter as M, type AgentOptions as N, type BeforeGadgetExecutionAction as O, type ParsedGadgetCall as P, type BeforeLLMCallAction as Q, type ChunkInterceptorContext as R, type StreamEvent as S, type TokenUsage as T, type Controllers as U, type GadgetExecutionControllerContext as V, type GadgetParameterInterceptorContext as W, type GadgetResultInterceptorContext as X, type Interceptors as Y, type LLMCallControllerContext as Z, type LLMErrorControllerContext as _, MockBuilder as a, type ObserveChunkContext as a0, type ObserveGadgetCompleteContext as a1, type ObserveGadgetStartContext as a2, type ObserveLLMCallContext as a3, type ObserveLLMCompleteContext as a4, type ObserveLLMErrorContext as a5, type Observers as a6, type LLMistOptions as a7, LLMist as a8, type LLMRole as a9, LLMMessageBuilder as aa, type CostEstimate as ab, type ModelFeatures as ac, type ModelLimits as ad, type ModelPricing as ae, type ProviderIdentifier as af, ModelIdentifierParser as ag, type PromptConfig as ah, type PromptContext as ai, type PromptTemplate as aj, DEFAULT_PROMPTS as ak, resolvePromptTemplate as al, resolveRulesTemplate as am, type QuickOptions as an, complete as ao, stream as ap, type GadgetClass as aq, type GadgetOrClass as ar, type TextOnlyAction as as, type TextOnlyContext as at, type TextOnlyCustomHandler as au, type TextOnlyGadgetConfig as av, type TextOnlyHandler as aw, type TextOnlyStrategy as ax, createMockClient as b, createMockAdapter as c, MockManager as d, createMockStream as e, createTextMockStream as f, getMockManager as g, type MockMatcher as h, type MockMatcherContext as i, type MockOptions as j, type MockRegistration as k, type MockResponse as l, mockLLM as m, type MockStats as n, ModelRegistry as o, type LLMStreamChunk as p, type GadgetExample as q, type GadgetExecutionResult as r, type ProviderAdapter as s, type ModelDescriptor as t, type ModelSpec as u, type LLMGenerationOptions as v, type LLMStream as w, AgentBuilder as x, collectEvents as y, collectText as z };
|