llmist 2.5.0 → 2.6.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-YHS2DYXP.js → chunk-364PEMVT.js} +947 -649
- package/dist/chunk-364PEMVT.js.map +1 -0
- package/dist/{chunk-IHSZUAYN.js → chunk-4IHLIYW5.js} +134 -18
- package/dist/chunk-4IHLIYW5.js.map +1 -0
- package/dist/cli.cjs +3345 -2981
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2758 -2708
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +584 -163
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +659 -454
- package/dist/index.d.ts +659 -454
- package/dist/index.js +16 -2
- package/dist/{mock-stream-ga4KIiwX.d.cts → mock-stream-Jgg5u6Uf.d.cts} +262 -7
- package/dist/{mock-stream-ga4KIiwX.d.ts → mock-stream-Jgg5u6Uf.d.ts} +262 -7
- package/dist/testing/index.cjs +932 -624
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +343 -343
- package/dist/testing/index.d.ts +343 -343
- package/dist/testing/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-IHSZUAYN.js.map +0 -1
- package/dist/chunk-YHS2DYXP.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -2,10 +2,16 @@ import {
|
|
|
2
2
|
Gadget,
|
|
3
3
|
HookPresets,
|
|
4
4
|
createHints,
|
|
5
|
+
createMedia,
|
|
5
6
|
iterationProgressHint,
|
|
6
7
|
parallelGadgetHint,
|
|
8
|
+
resultWithAudio,
|
|
9
|
+
resultWithFile,
|
|
10
|
+
resultWithImage,
|
|
11
|
+
resultWithImages,
|
|
12
|
+
resultWithMedia,
|
|
7
13
|
z
|
|
8
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4IHLIYW5.js";
|
|
9
15
|
import {
|
|
10
16
|
AbortError,
|
|
11
17
|
AgentBuilder,
|
|
@@ -27,6 +33,7 @@ import {
|
|
|
27
33
|
LLMMessageBuilder,
|
|
28
34
|
LLMist,
|
|
29
35
|
MODEL_ALIASES,
|
|
36
|
+
MediaStore,
|
|
30
37
|
MockBuilder,
|
|
31
38
|
MockManager,
|
|
32
39
|
MockProviderAdapter,
|
|
@@ -81,7 +88,7 @@ import {
|
|
|
81
88
|
toBase64,
|
|
82
89
|
validateAndApplyDefaults,
|
|
83
90
|
validateGadgetParams
|
|
84
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-364PEMVT.js";
|
|
85
92
|
export {
|
|
86
93
|
AbortError,
|
|
87
94
|
AgentBuilder,
|
|
@@ -105,6 +112,7 @@ export {
|
|
|
105
112
|
LLMMessageBuilder,
|
|
106
113
|
LLMist,
|
|
107
114
|
MODEL_ALIASES,
|
|
115
|
+
MediaStore,
|
|
108
116
|
MockBuilder,
|
|
109
117
|
MockManager,
|
|
110
118
|
MockProviderAdapter,
|
|
@@ -126,6 +134,7 @@ export {
|
|
|
126
134
|
createGeminiProviderFromEnv,
|
|
127
135
|
createHints,
|
|
128
136
|
createLogger,
|
|
137
|
+
createMedia,
|
|
129
138
|
createMockAdapter,
|
|
130
139
|
createMockClient,
|
|
131
140
|
createMockStream,
|
|
@@ -156,6 +165,11 @@ export {
|
|
|
156
165
|
resolveModel,
|
|
157
166
|
resolvePromptTemplate,
|
|
158
167
|
resolveRulesTemplate,
|
|
168
|
+
resultWithAudio,
|
|
169
|
+
resultWithFile,
|
|
170
|
+
resultWithImage,
|
|
171
|
+
resultWithImages,
|
|
172
|
+
resultWithMedia,
|
|
159
173
|
runWithHandlers,
|
|
160
174
|
stream,
|
|
161
175
|
text,
|
|
@@ -819,6 +819,81 @@ interface GadgetExample<TParams = Record<string, unknown>> {
|
|
|
819
819
|
/** Optional description explaining what this example demonstrates */
|
|
820
820
|
comment?: string;
|
|
821
821
|
}
|
|
822
|
+
/**
|
|
823
|
+
* Supported media types for gadget output.
|
|
824
|
+
* Extensible via union - add new types as needed.
|
|
825
|
+
*/
|
|
826
|
+
type MediaKind = "image" | "audio" | "video" | "file";
|
|
827
|
+
/**
|
|
828
|
+
* Type-specific metadata for media outputs.
|
|
829
|
+
* Extensible via index signature for future media types.
|
|
830
|
+
*/
|
|
831
|
+
interface MediaMetadata {
|
|
832
|
+
/** Width in pixels (images, video) */
|
|
833
|
+
width?: number;
|
|
834
|
+
/** Height in pixels (images, video) */
|
|
835
|
+
height?: number;
|
|
836
|
+
/** Duration in milliseconds (audio, video) */
|
|
837
|
+
durationMs?: number;
|
|
838
|
+
/** Allow additional metadata for future extensions */
|
|
839
|
+
[key: string]: unknown;
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Media output from a gadget execution.
|
|
843
|
+
* Supports images, audio, video, and arbitrary files.
|
|
844
|
+
*
|
|
845
|
+
* @example
|
|
846
|
+
* ```typescript
|
|
847
|
+
* // Image output
|
|
848
|
+
* const imageOutput: GadgetMediaOutput = {
|
|
849
|
+
* kind: "image",
|
|
850
|
+
* data: base64EncodedPng,
|
|
851
|
+
* mimeType: "image/png",
|
|
852
|
+
* description: "Screenshot of webpage",
|
|
853
|
+
* metadata: { width: 1920, height: 1080 }
|
|
854
|
+
* };
|
|
855
|
+
* ```
|
|
856
|
+
*/
|
|
857
|
+
interface GadgetMediaOutput {
|
|
858
|
+
/** Type of media (discriminator for type-specific handling) */
|
|
859
|
+
kind: MediaKind;
|
|
860
|
+
/** Base64-encoded media data */
|
|
861
|
+
data: string;
|
|
862
|
+
/** Full MIME type (e.g., "image/png", "audio/mp3", "video/mp4") */
|
|
863
|
+
mimeType: string;
|
|
864
|
+
/** Human-readable description of the media */
|
|
865
|
+
description?: string;
|
|
866
|
+
/** Type-specific metadata */
|
|
867
|
+
metadata?: MediaMetadata;
|
|
868
|
+
/** Optional filename to use when saving (if not provided, auto-generated) */
|
|
869
|
+
fileName?: string;
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* Stored media item with metadata and file path.
|
|
873
|
+
*
|
|
874
|
+
* Created by MediaStore when a gadget returns media outputs.
|
|
875
|
+
* Contains the abstract ID, file path, and metadata for display.
|
|
876
|
+
*/
|
|
877
|
+
interface StoredMedia {
|
|
878
|
+
/** Unique ID for this media item (e.g., "media_a1b2c3") */
|
|
879
|
+
id: string;
|
|
880
|
+
/** Type of media */
|
|
881
|
+
kind: MediaKind;
|
|
882
|
+
/** Actual file path on disk (internal use) */
|
|
883
|
+
path: string;
|
|
884
|
+
/** MIME type */
|
|
885
|
+
mimeType: string;
|
|
886
|
+
/** File size in bytes */
|
|
887
|
+
sizeBytes: number;
|
|
888
|
+
/** Human-readable description */
|
|
889
|
+
description?: string;
|
|
890
|
+
/** Type-specific metadata */
|
|
891
|
+
metadata?: MediaMetadata;
|
|
892
|
+
/** Name of the gadget that created this media */
|
|
893
|
+
gadgetName: string;
|
|
894
|
+
/** When the media was stored */
|
|
895
|
+
createdAt: Date;
|
|
896
|
+
}
|
|
822
897
|
interface GadgetExecutionResult {
|
|
823
898
|
gadgetName: string;
|
|
824
899
|
invocationId: string;
|
|
@@ -829,6 +904,12 @@ interface GadgetExecutionResult {
|
|
|
829
904
|
breaksLoop?: boolean;
|
|
830
905
|
/** Cost of gadget execution in USD. Defaults to 0 if not provided by gadget. */
|
|
831
906
|
cost?: number;
|
|
907
|
+
/** Media outputs from the gadget (images, audio, video, files) */
|
|
908
|
+
media?: GadgetMediaOutput[];
|
|
909
|
+
/** Abstract IDs for media outputs (e.g., ["media_a1b2c3"]) */
|
|
910
|
+
mediaIds?: string[];
|
|
911
|
+
/** Stored media with paths (for CLI display) */
|
|
912
|
+
storedMedia?: StoredMedia[];
|
|
832
913
|
}
|
|
833
914
|
/**
|
|
834
915
|
* Result returned by gadget execute() method.
|
|
@@ -849,12 +930,41 @@ interface GadgetExecuteResult {
|
|
|
849
930
|
/** Optional cost in USD (e.g., 0.001 for $0.001) */
|
|
850
931
|
cost?: number;
|
|
851
932
|
}
|
|
933
|
+
/**
|
|
934
|
+
* Extended result type with media support.
|
|
935
|
+
* Use this when gadget returns images, audio, video, or files.
|
|
936
|
+
*
|
|
937
|
+
* @example
|
|
938
|
+
* ```typescript
|
|
939
|
+
* // Return with image
|
|
940
|
+
* execute: () => ({
|
|
941
|
+
* result: "Screenshot captured",
|
|
942
|
+
* media: [{
|
|
943
|
+
* kind: "image",
|
|
944
|
+
* data: base64EncodedPng,
|
|
945
|
+
* mimeType: "image/png",
|
|
946
|
+
* description: "Screenshot"
|
|
947
|
+
* }],
|
|
948
|
+
* cost: 0.001
|
|
949
|
+
* })
|
|
950
|
+
* ```
|
|
951
|
+
*/
|
|
952
|
+
interface GadgetExecuteResultWithMedia {
|
|
953
|
+
/** The execution result as a string */
|
|
954
|
+
result: string;
|
|
955
|
+
/** Media outputs (images, audio, video, files) */
|
|
956
|
+
media?: GadgetMediaOutput[];
|
|
957
|
+
/** Optional cost in USD (e.g., 0.001 for $0.001) */
|
|
958
|
+
cost?: number;
|
|
959
|
+
}
|
|
852
960
|
/**
|
|
853
961
|
* Union type for backwards-compatible execute() return type.
|
|
854
|
-
* Gadgets can return
|
|
855
|
-
*
|
|
962
|
+
* Gadgets can return:
|
|
963
|
+
* - string (legacy, cost = 0)
|
|
964
|
+
* - GadgetExecuteResult (result + optional cost)
|
|
965
|
+
* - GadgetExecuteResultWithMedia (result + optional media + optional cost)
|
|
856
966
|
*/
|
|
857
|
-
type GadgetExecuteReturn = string | GadgetExecuteResult;
|
|
967
|
+
type GadgetExecuteReturn = string | GadgetExecuteResult | GadgetExecuteResultWithMedia;
|
|
858
968
|
interface ParsedGadgetCall {
|
|
859
969
|
gadgetName: string;
|
|
860
970
|
invocationId: string;
|
|
@@ -1350,7 +1460,7 @@ type ImageMimeType = "image/jpeg" | "image/png" | "image/gif" | "image/webp";
|
|
|
1350
1460
|
* Supported audio MIME types for input.
|
|
1351
1461
|
* Currently only Gemini supports audio input.
|
|
1352
1462
|
*/
|
|
1353
|
-
type AudioMimeType = "audio/mp3" | "audio/mpeg" | "audio/wav" | "audio/webm" | "audio/ogg";
|
|
1463
|
+
type AudioMimeType = "audio/mp3" | "audio/mpeg" | "audio/wav" | "audio/webm" | "audio/ogg" | "audio/flac";
|
|
1354
1464
|
/**
|
|
1355
1465
|
* Base interface for all content parts.
|
|
1356
1466
|
*/
|
|
@@ -1811,7 +1921,7 @@ declare class LLMMessageBuilder {
|
|
|
1811
1921
|
* ```
|
|
1812
1922
|
*/
|
|
1813
1923
|
addUserMultimodal(parts: ContentPart[]): this;
|
|
1814
|
-
addGadgetCall(gadget: string, parameters: Record<string, unknown>, result: string): this;
|
|
1924
|
+
addGadgetCall(gadget: string, parameters: Record<string, unknown>, result: string, media?: GadgetMediaOutput[], mediaIds?: string[]): this;
|
|
1815
1925
|
/**
|
|
1816
1926
|
* Format parameters as Block format with JSON Pointer paths.
|
|
1817
1927
|
* Uses the configured argPrefix for consistency with system prompt.
|
|
@@ -2372,6 +2482,121 @@ declare class GadgetRegistry {
|
|
|
2372
2482
|
clear(): void;
|
|
2373
2483
|
}
|
|
2374
2484
|
|
|
2485
|
+
/**
|
|
2486
|
+
* MediaStore: Session-scoped storage for gadget media outputs.
|
|
2487
|
+
*
|
|
2488
|
+
* This module provides an abstraction layer between gadgets and the filesystem.
|
|
2489
|
+
* Instead of exposing raw file paths, it assigns unique IDs to stored media
|
|
2490
|
+
* that can be shared with the LLM and user.
|
|
2491
|
+
*
|
|
2492
|
+
* @example
|
|
2493
|
+
* ```typescript
|
|
2494
|
+
* const store = new MediaStore();
|
|
2495
|
+
*
|
|
2496
|
+
* // Store an image, get back ID
|
|
2497
|
+
* const stored = await store.store({
|
|
2498
|
+
* kind: "image",
|
|
2499
|
+
* data: base64EncodedPng,
|
|
2500
|
+
* mimeType: "image/png",
|
|
2501
|
+
* description: "Screenshot"
|
|
2502
|
+
* }, "Screenshot");
|
|
2503
|
+
*
|
|
2504
|
+
* console.log(stored.id); // "media_a1b2c3"
|
|
2505
|
+
* console.log(stored.path); // "/tmp/llmist-media-xxx/Screenshot_001.png"
|
|
2506
|
+
*
|
|
2507
|
+
* // Later: retrieve by ID
|
|
2508
|
+
* const retrieved = store.get("media_a1b2c3");
|
|
2509
|
+
* ```
|
|
2510
|
+
*/
|
|
2511
|
+
|
|
2512
|
+
/**
|
|
2513
|
+
* Session-scoped media storage with ID abstraction.
|
|
2514
|
+
*
|
|
2515
|
+
* Each MediaStore instance manages media for a single agent session.
|
|
2516
|
+
* Media files are stored in a temporary directory and referenced by
|
|
2517
|
+
* short, unique IDs rather than file paths.
|
|
2518
|
+
*/
|
|
2519
|
+
declare class MediaStore {
|
|
2520
|
+
private readonly items;
|
|
2521
|
+
private readonly outputDir;
|
|
2522
|
+
private counter;
|
|
2523
|
+
private initialized;
|
|
2524
|
+
/**
|
|
2525
|
+
* Create a new MediaStore.
|
|
2526
|
+
*
|
|
2527
|
+
* @param sessionId - Optional session ID for the output directory.
|
|
2528
|
+
* If not provided, a random ID is generated.
|
|
2529
|
+
*/
|
|
2530
|
+
constructor(sessionId?: string);
|
|
2531
|
+
/**
|
|
2532
|
+
* Get the output directory path.
|
|
2533
|
+
*/
|
|
2534
|
+
getOutputDir(): string;
|
|
2535
|
+
/**
|
|
2536
|
+
* Ensure the output directory exists.
|
|
2537
|
+
* @throws Error if directory creation fails
|
|
2538
|
+
*/
|
|
2539
|
+
private ensureDir;
|
|
2540
|
+
/**
|
|
2541
|
+
* Generate a unique media ID.
|
|
2542
|
+
* Format: "media_" + 6 random alphanumeric characters
|
|
2543
|
+
*/
|
|
2544
|
+
private generateId;
|
|
2545
|
+
/**
|
|
2546
|
+
* Get file extension from MIME type.
|
|
2547
|
+
*/
|
|
2548
|
+
private getExtension;
|
|
2549
|
+
/**
|
|
2550
|
+
* Store media and return stored metadata with ID.
|
|
2551
|
+
*
|
|
2552
|
+
* @param media - The media output from a gadget
|
|
2553
|
+
* @param gadgetName - Name of the gadget that created this media
|
|
2554
|
+
* @returns Stored media information including generated ID
|
|
2555
|
+
* @throws Error if file write fails
|
|
2556
|
+
*/
|
|
2557
|
+
store(media: GadgetMediaOutput, gadgetName: string): Promise<StoredMedia>;
|
|
2558
|
+
/**
|
|
2559
|
+
* Get stored media by ID.
|
|
2560
|
+
*
|
|
2561
|
+
* @param id - The media ID (e.g., "media_a1b2c3")
|
|
2562
|
+
* @returns The stored media or undefined if not found
|
|
2563
|
+
*/
|
|
2564
|
+
get(id: string): StoredMedia | undefined;
|
|
2565
|
+
/**
|
|
2566
|
+
* Get the actual file path for a media ID.
|
|
2567
|
+
* Convenience method for gadgets that need the raw path.
|
|
2568
|
+
*
|
|
2569
|
+
* @param id - The media ID
|
|
2570
|
+
* @returns The file path or undefined if not found
|
|
2571
|
+
*/
|
|
2572
|
+
getPath(id: string): string | undefined;
|
|
2573
|
+
/**
|
|
2574
|
+
* List all stored media, optionally filtered by kind.
|
|
2575
|
+
*
|
|
2576
|
+
* @param kind - Optional media kind to filter by
|
|
2577
|
+
* @returns Array of stored media items
|
|
2578
|
+
*/
|
|
2579
|
+
list(kind?: MediaKind): StoredMedia[];
|
|
2580
|
+
/**
|
|
2581
|
+
* Get the count of stored media items.
|
|
2582
|
+
*/
|
|
2583
|
+
get size(): number;
|
|
2584
|
+
/**
|
|
2585
|
+
* Check if a media ID exists.
|
|
2586
|
+
*/
|
|
2587
|
+
has(id: string): boolean;
|
|
2588
|
+
/**
|
|
2589
|
+
* Clear in-memory store without deleting files.
|
|
2590
|
+
* Resets the counter but leaves files on disk.
|
|
2591
|
+
*/
|
|
2592
|
+
clear(): void;
|
|
2593
|
+
/**
|
|
2594
|
+
* Delete all stored files and clear memory.
|
|
2595
|
+
* Removes the entire session directory.
|
|
2596
|
+
*/
|
|
2597
|
+
cleanup(): Promise<void>;
|
|
2598
|
+
}
|
|
2599
|
+
|
|
2375
2600
|
/**
|
|
2376
2601
|
* Internal key for Agent instantiation.
|
|
2377
2602
|
* This Symbol is used to ensure only AgentBuilder can create Agent instances.
|
|
@@ -3183,6 +3408,7 @@ declare class Agent {
|
|
|
3183
3408
|
private readonly outputLimitEnabled;
|
|
3184
3409
|
private readonly outputLimitCharLimit;
|
|
3185
3410
|
private readonly compactionManager?;
|
|
3411
|
+
private readonly mediaStore;
|
|
3186
3412
|
private readonly signal?;
|
|
3187
3413
|
/**
|
|
3188
3414
|
* Creates a new Agent instance.
|
|
@@ -3208,6 +3434,34 @@ declare class Agent {
|
|
|
3208
3434
|
* ```
|
|
3209
3435
|
*/
|
|
3210
3436
|
getRegistry(): GadgetRegistry;
|
|
3437
|
+
/**
|
|
3438
|
+
* Get the media store for this agent session.
|
|
3439
|
+
*
|
|
3440
|
+
* The media store holds all media outputs (images, audio, etc.) produced by gadgets
|
|
3441
|
+
* during this agent's execution. Use this to:
|
|
3442
|
+
* - Access stored media files by ID
|
|
3443
|
+
* - List all stored media
|
|
3444
|
+
* - Clean up temporary files after execution
|
|
3445
|
+
*
|
|
3446
|
+
* @returns The MediaStore instance for this agent
|
|
3447
|
+
*
|
|
3448
|
+
* @example
|
|
3449
|
+
* ```typescript
|
|
3450
|
+
* const agent = new AgentBuilder()
|
|
3451
|
+
* .withModel("sonnet")
|
|
3452
|
+
* .build();
|
|
3453
|
+
*
|
|
3454
|
+
* // After execution, access stored media
|
|
3455
|
+
* const store = agent.getMediaStore();
|
|
3456
|
+
* for (const media of store.list()) {
|
|
3457
|
+
* console.log(`${media.id}: ${media.path}`);
|
|
3458
|
+
* }
|
|
3459
|
+
*
|
|
3460
|
+
* // Clean up when done
|
|
3461
|
+
* await store.cleanup();
|
|
3462
|
+
* ```
|
|
3463
|
+
*/
|
|
3464
|
+
getMediaStore(): MediaStore;
|
|
3211
3465
|
/**
|
|
3212
3466
|
* Manually trigger context compaction.
|
|
3213
3467
|
*
|
|
@@ -3981,8 +4235,9 @@ interface IConversationManager {
|
|
|
3981
4235
|
addAssistantMessage(content: string): void;
|
|
3982
4236
|
/**
|
|
3983
4237
|
* Adds a gadget call and its result to the conversation.
|
|
4238
|
+
* Optionally includes media outputs (images, audio, etc.) for multimodal results.
|
|
3984
4239
|
*/
|
|
3985
|
-
addGadgetCall(gadgetName: string, parameters: Record<string, unknown>, result: string): void;
|
|
4240
|
+
addGadgetCall(gadgetName: string, parameters: Record<string, unknown>, result: string, media?: GadgetMediaOutput[], mediaIds?: string[]): void;
|
|
3986
4241
|
/**
|
|
3987
4242
|
* Gets the complete conversation history including base messages (system prompts, gadget instructions).
|
|
3988
4243
|
*/
|
|
@@ -4718,4 +4973,4 @@ declare function createTextMockStream(text: string, options?: {
|
|
|
4718
4973
|
usage?: MockResponse["usage"];
|
|
4719
4974
|
}): LLMStream;
|
|
4720
4975
|
|
|
4721
|
-
export { type
|
|
4976
|
+
export { type ImageGenerationResult as $, type AgentHooks as A, BaseGadget as B, type CompactionConfig as C, GadgetRegistry as D, MediaStore as E, type ExecutionContext as F, type GadgetMediaOutput as G, type HintTemplate as H, type IConversationManager as I, type GadgetExecuteReturn as J, type GadgetExample as K, type LLMMessage as L, MockProviderAdapter as M, type GadgetExecutionResult as N, type MediaKind as O, type ParsedGadgetCall as P, type MediaMetadata as Q, type ResolvedCompactionConfig as R, type StreamEvent as S, type TokenUsage as T, type GadgetExecuteResultWithMedia as U, type ProviderAdapter as V, type ModelDescriptor as W, type ModelSpec as X, type LLMGenerationOptions as Y, type ImageModelSpec as Z, type ImageGenerationOptions as _, type LLMStream as a, toBase64 as a$, type SpeechModelSpec as a0, type SpeechGenerationOptions as a1, type SpeechGenerationResult as a2, type HistoryMessage as a3, type TrailingMessage as a4, type TrailingMessageContext as a5, AgentBuilder as a6, type EventHandlers as a7, collectEvents as a8, collectText as a9, type Observers as aA, DEFAULT_COMPACTION_CONFIG as aB, DEFAULT_SUMMARIZATION_PROMPT as aC, type LLMistOptions as aD, type AudioContentPart as aE, type AudioMimeType as aF, type AudioSource as aG, type ContentPart as aH, type ImageBase64Source as aI, type ImageContentPart as aJ, type ImageMimeType as aK, type ImageSource as aL, type ImageUrlSource as aM, type TextContentPart as aN, audioFromBase64 as aO, audioFromBuffer as aP, detectAudioMimeType as aQ, detectImageMimeType as aR, imageFromBase64 as aS, imageFromBuffer as aT, imageFromUrl as aU, isAudioPart as aV, isDataUrl as aW, isImagePart as aX, isTextPart as aY, parseDataUrl as aZ, text as a_, runWithHandlers as aa, type AfterGadgetExecutionAction as ab, type AfterGadgetExecutionControllerContext as ac, type AfterLLMCallAction as ad, type AfterLLMCallControllerContext as ae, type AfterLLMErrorAction as af, type AgentOptions as ag, type BeforeGadgetExecutionAction as ah, type BeforeLLMCallAction as ai, type ChunkInterceptorContext as aj, type Controllers as ak, type GadgetExecutionControllerContext as al, type GadgetParameterInterceptorContext as am, type GadgetResultInterceptorContext as an, type Interceptors as ao, type LLMCallControllerContext as ap, type LLMErrorControllerContext as aq, type MessageInterceptorContext as ar, type MessageTurn as as, type ObserveChunkContext as at, type ObserveCompactionContext as au, type ObserveGadgetCompleteContext as av, type ObserveGadgetStartContext as aw, type ObserveLLMCallContext as ax, type ObserveLLMCompleteContext as ay, type ObserveLLMErrorContext as az, type LLMStreamChunk as b, type LLMRole as b0, extractText as b1, LLMMessageBuilder as b2, normalizeContent as b3, type CostEstimate as b4, type ModelFeatures as b5, type ModelLimits as b6, type ModelPricing as b7, type VisionAnalyzeOptions as b8, type VisionAnalyzeResult as b9, type ProviderIdentifier as ba, ModelIdentifierParser as bb, type HintContext as bc, type PromptConfig as bd, type PromptContext as be, type PromptTemplate as bf, DEFAULT_HINTS as bg, DEFAULT_PROMPTS as bh, resolveHintTemplate as bi, resolvePromptTemplate as bj, resolveRulesTemplate as bk, type QuickOptions as bl, complete as bm, stream as bn, type GadgetClass as bo, type GadgetOrClass as bp, type CostReportingLLMist as bq, type GadgetExecuteResult as br, type GadgetSkippedEvent as bs, type StoredMedia as bt, type TextOnlyAction as bu, type TextOnlyContext as bv, type TextOnlyCustomHandler as bw, type TextOnlyGadgetConfig as bx, type TextOnlyHandler as by, type TextOnlyStrategy 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, ModelRegistry as s, LLMist as t, type CompactionEvent as u, type CompactionStats as v, type CompactionStrategy as w, type CompactionContext as x, type CompactionResult as y, type MessageContent as z };
|