@elizaos/core 1.0.1 → 1.0.3

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.
@@ -0,0 +1,1678 @@
1
+ import { Readable } from 'stream';
2
+ import { S as State$2, A as ActionExample$2, C as Content$1, P as Provider$2 } from './types-DzoA9aTJ.js';
3
+
4
+ /**
5
+ * Represents a UUID string in the format "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
6
+ */
7
+ type UUID$1 = `${string}-${string}-${string}-${string}-${string}`;
8
+ /**
9
+ * Represents the content of a message or communication
10
+ */
11
+ interface Content {
12
+ /** The main text content */
13
+ text: string;
14
+ /** Optional action associated with the message */
15
+ action?: string;
16
+ /** Optional source/origin of the content */
17
+ source?: string;
18
+ /** URL of the original message/post (e.g. tweet URL, Discord message link) */
19
+ url?: string;
20
+ /** UUID of parent message if this is a reply/thread */
21
+ inReplyTo?: UUID$1;
22
+ /** Array of media attachments */
23
+ attachments?: Media[];
24
+ /** Additional dynamic properties */
25
+ [key: string]: unknown;
26
+ }
27
+ /**
28
+ * Example content with associated user for demonstration purposes
29
+ */
30
+ interface ActionExample$1 {
31
+ /** User associated with the example */
32
+ user: string;
33
+ /** Content of the example */
34
+ content: Content;
35
+ }
36
+ /**
37
+ * Example conversation content with user ID
38
+ */
39
+ interface ConversationExample {
40
+ /** UUID of user in conversation */
41
+ userId: UUID$1;
42
+ /** Content of the conversation */
43
+ content: Content;
44
+ }
45
+ /**
46
+ * Represents an actor/participant in a conversation
47
+ */
48
+ interface Actor {
49
+ /** Display name */
50
+ name: string;
51
+ /** Username/handle */
52
+ username: string;
53
+ /** Additional profile details */
54
+ details: {
55
+ /** Short profile tagline */
56
+ tagline: string;
57
+ /** Longer profile summary */
58
+ summary: string;
59
+ /** Favorite quote */
60
+ quote: string;
61
+ };
62
+ /** Unique identifier */
63
+ id: UUID$1;
64
+ }
65
+ /**
66
+ * Represents a single objective within a goal
67
+ */
68
+ interface Objective {
69
+ /** Optional unique identifier */
70
+ id?: string;
71
+ /** Description of what needs to be achieved */
72
+ description: string;
73
+ /** Whether objective is completed */
74
+ completed: boolean;
75
+ }
76
+ /**
77
+ * Status enum for goals
78
+ */
79
+ declare enum GoalStatus {
80
+ DONE = "DONE",
81
+ FAILED = "FAILED",
82
+ IN_PROGRESS = "IN_PROGRESS"
83
+ }
84
+ /**
85
+ * Represents a high-level goal composed of objectives
86
+ */
87
+ interface Goal {
88
+ /** Optional unique identifier */
89
+ id?: UUID$1;
90
+ /** Room ID where goal exists */
91
+ roomId: UUID$1;
92
+ /** User ID of goal owner */
93
+ userId: UUID$1;
94
+ /** Name/title of the goal */
95
+ name: string;
96
+ /** Current status */
97
+ status: GoalStatus;
98
+ /** Component objectives */
99
+ objectives: Objective[];
100
+ }
101
+ /**
102
+ * Model size/type classification
103
+ */
104
+ declare enum ModelClass {
105
+ SMALL = "small",
106
+ MEDIUM = "medium",
107
+ LARGE = "large",
108
+ EMBEDDING = "embedding",
109
+ IMAGE = "image"
110
+ }
111
+ /**
112
+ * Model settings
113
+ */
114
+ type ModelSettings = {
115
+ /** Model name */
116
+ name: string;
117
+ /** Maximum input tokens */
118
+ maxInputTokens: number;
119
+ /** Maximum output tokens */
120
+ maxOutputTokens: number;
121
+ /** Optional frequency penalty */
122
+ frequency_penalty?: number;
123
+ /** Optional presence penalty */
124
+ presence_penalty?: number;
125
+ /** Optional repetition penalty */
126
+ repetition_penalty?: number;
127
+ /** Stop sequences */
128
+ stop: string[];
129
+ /** Temperature setting */
130
+ temperature: number;
131
+ /** Optional telemetry configuration (experimental) */
132
+ experimental_telemetry?: TelemetrySettings;
133
+ };
134
+ /** Image model settings */
135
+ type ImageModelSettings = {
136
+ name: string;
137
+ steps?: number;
138
+ };
139
+ /** Embedding model settings */
140
+ type EmbeddingModelSettings = {
141
+ name: string;
142
+ dimensions?: number;
143
+ };
144
+ /**
145
+ * Configuration for an AI model
146
+ */
147
+ type Model = {
148
+ /** Optional API endpoint */
149
+ endpoint?: string;
150
+ /** Model names by size class */
151
+ model: {
152
+ [ModelClass.SMALL]?: ModelSettings;
153
+ [ModelClass.MEDIUM]?: ModelSettings;
154
+ [ModelClass.LARGE]?: ModelSettings;
155
+ [ModelClass.EMBEDDING]?: EmbeddingModelSettings;
156
+ [ModelClass.IMAGE]?: ImageModelSettings;
157
+ };
158
+ };
159
+ /**
160
+ * Model configurations by provider
161
+ */
162
+ type Models = {
163
+ [ModelProviderName.OPENAI]: Model;
164
+ [ModelProviderName.ETERNALAI]: Model;
165
+ [ModelProviderName.ANTHROPIC]: Model;
166
+ [ModelProviderName.GROK]: Model;
167
+ [ModelProviderName.GROQ]: Model;
168
+ [ModelProviderName.LLAMACLOUD]: Model;
169
+ [ModelProviderName.TOGETHER]: Model;
170
+ [ModelProviderName.LLAMALOCAL]: Model;
171
+ [ModelProviderName.LMSTUDIO]: Model;
172
+ [ModelProviderName.GOOGLE]: Model;
173
+ [ModelProviderName.MISTRAL]: Model;
174
+ [ModelProviderName.CLAUDE_VERTEX]: Model;
175
+ [ModelProviderName.REDPILL]: Model;
176
+ [ModelProviderName.OPENROUTER]: Model;
177
+ [ModelProviderName.OLLAMA]: Model;
178
+ [ModelProviderName.HEURIST]: Model;
179
+ [ModelProviderName.GALADRIEL]: Model;
180
+ [ModelProviderName.FAL]: Model;
181
+ [ModelProviderName.GAIANET]: Model;
182
+ [ModelProviderName.ALI_BAILIAN]: Model;
183
+ [ModelProviderName.VOLENGINE]: Model;
184
+ [ModelProviderName.NANOGPT]: Model;
185
+ [ModelProviderName.HYPERBOLIC]: Model;
186
+ [ModelProviderName.VENICE]: Model;
187
+ [ModelProviderName.NVIDIA]: Model;
188
+ [ModelProviderName.NINETEEN_AI]: Model;
189
+ [ModelProviderName.AKASH_CHAT_API]: Model;
190
+ [ModelProviderName.LIVEPEER]: Model;
191
+ [ModelProviderName.DEEPSEEK]: Model;
192
+ [ModelProviderName.INFERA]: Model;
193
+ [ModelProviderName.BEDROCK]: Model;
194
+ [ModelProviderName.ATOMA]: Model;
195
+ [ModelProviderName.SECRETAI]: Model;
196
+ [ModelProviderName.NEARAI]: Model;
197
+ };
198
+ /**
199
+ * Available model providers
200
+ */
201
+ declare enum ModelProviderName {
202
+ OPENAI = "openai",
203
+ ETERNALAI = "eternalai",
204
+ ANTHROPIC = "anthropic",
205
+ GROK = "grok",
206
+ GROQ = "groq",
207
+ LLAMACLOUD = "llama_cloud",
208
+ TOGETHER = "together",
209
+ LLAMALOCAL = "llama_local",
210
+ LMSTUDIO = "lmstudio",
211
+ GOOGLE = "google",
212
+ MISTRAL = "mistral",
213
+ CLAUDE_VERTEX = "claude_vertex",
214
+ REDPILL = "redpill",
215
+ OPENROUTER = "openrouter",
216
+ OLLAMA = "ollama",
217
+ HEURIST = "heurist",
218
+ GALADRIEL = "galadriel",
219
+ FAL = "falai",
220
+ GAIANET = "gaianet",
221
+ ALI_BAILIAN = "ali_bailian",
222
+ VOLENGINE = "volengine",
223
+ NANOGPT = "nanogpt",
224
+ HYPERBOLIC = "hyperbolic",
225
+ VENICE = "venice",
226
+ NVIDIA = "nvidia",
227
+ NINETEEN_AI = "nineteen_ai",
228
+ AKASH_CHAT_API = "akash_chat_api",
229
+ LIVEPEER = "livepeer",
230
+ LETZAI = "letzai",
231
+ DEEPSEEK = "deepseek",
232
+ INFERA = "infera",
233
+ BEDROCK = "bedrock",
234
+ ATOMA = "atoma",
235
+ SECRETAI = "secret_ai",
236
+ NEARAI = "nearai"
237
+ }
238
+ /**
239
+ * Represents the current state/context of a conversation
240
+ */
241
+ interface State$1 {
242
+ /** ID of user who sent current message */
243
+ userId?: UUID$1;
244
+ /** ID of agent in conversation */
245
+ agentId?: UUID$1;
246
+ /** Agent's biography */
247
+ bio?: string;
248
+ /** Agent's background lore */
249
+ lore?: string;
250
+ /** Message handling directions */
251
+ messageDirections?: string;
252
+ /** Post handling directions */
253
+ postDirections?: string;
254
+ /** Current room/conversation ID */
255
+ roomId?: UUID$1;
256
+ /** Optional agent name */
257
+ agentName?: string;
258
+ /** Optional message sender name */
259
+ senderName?: string;
260
+ /** String representation of conversation actors */
261
+ actors?: string;
262
+ /** Optional array of actor objects */
263
+ actorsData?: Actor[];
264
+ /** Optional string representation of goals */
265
+ goals?: string;
266
+ /** Optional array of goal objects */
267
+ goalsData?: Goal[];
268
+ /** Recent message history as string */
269
+ recentMessages?: string;
270
+ /** Recent message objects */
271
+ recentMessagesData?: Memory[];
272
+ /** Optional valid action names */
273
+ actionNames?: string;
274
+ /** Optional action descriptions */
275
+ actions?: string;
276
+ /** Optional action objects */
277
+ actionsData?: Action[];
278
+ /** Optional action examples */
279
+ actionExamples?: string;
280
+ /** Optional provider descriptions */
281
+ providers?: string;
282
+ /** Optional response content */
283
+ responseData?: Content;
284
+ /** Optional recent interaction objects */
285
+ recentInteractionsData?: Memory[];
286
+ /** Optional recent interactions string */
287
+ recentInteractions?: string;
288
+ /** Optional formatted conversation */
289
+ formattedConversation?: string;
290
+ /** Optional formatted knowledge */
291
+ knowledge?: string;
292
+ /** Optional knowledge data */
293
+ knowledgeData?: KnowledgeItem[];
294
+ /** Optional knowledge data */
295
+ ragKnowledgeData?: RAGKnowledgeItem[];
296
+ /** Optional text content */
297
+ text?: string;
298
+ /** Additional dynamic properties */
299
+ [key: string]: unknown;
300
+ }
301
+ /**
302
+ * Represents a stored memory/message
303
+ */
304
+ interface Memory {
305
+ /** Optional unique identifier */
306
+ id?: UUID$1;
307
+ /** Associated user ID */
308
+ userId: UUID$1;
309
+ /** Associated agent ID */
310
+ agentId: UUID$1;
311
+ /** Optional creation timestamp */
312
+ createdAt?: number;
313
+ /** Memory content */
314
+ content: Content;
315
+ /** Optional embedding vector */
316
+ embedding?: number[];
317
+ /** Associated room ID */
318
+ roomId: UUID$1;
319
+ /** Whether memory is unique */
320
+ unique?: boolean;
321
+ /** Embedding similarity score */
322
+ similarity?: number;
323
+ }
324
+ /**
325
+ * Example message for demonstration
326
+ */
327
+ interface MessageExample {
328
+ /** Associated user */
329
+ user: string;
330
+ /** Message content */
331
+ content: Content;
332
+ }
333
+ /**
334
+ * Handler function type for processing messages
335
+ */
336
+ type Handler = (runtime: IAgentRuntime, message: Memory, state?: State$1, options?: {
337
+ [key: string]: unknown;
338
+ }, callback?: HandlerCallback) => Promise<unknown>;
339
+ /**
340
+ * Callback function type for handlers
341
+ */
342
+ type HandlerCallback = (response: Content, files?: any) => Promise<Memory[]>;
343
+ /**
344
+ * Validator function type for actions/evaluators
345
+ */
346
+ type Validator = (runtime: IAgentRuntime, message: Memory, state?: State$1) => Promise<boolean>;
347
+ /**
348
+ * Represents an action the agent can perform
349
+ */
350
+ interface Action {
351
+ /** Similar action descriptions */
352
+ similes: string[];
353
+ /** Detailed description */
354
+ description: string;
355
+ /** Example usages */
356
+ examples: ActionExample$1[][];
357
+ /** Handler function */
358
+ handler: Handler;
359
+ /** Action name */
360
+ name: string;
361
+ /** Validation function */
362
+ validate: Validator;
363
+ /** Whether to suppress the initial message when this action is used */
364
+ suppressInitialMessage?: boolean;
365
+ }
366
+ /**
367
+ * Example for evaluating agent behavior
368
+ */
369
+ interface EvaluationExample {
370
+ /** Evaluation context */
371
+ context: string;
372
+ /** Example messages */
373
+ messages: Array<ActionExample$1>;
374
+ /** Expected outcome */
375
+ outcome: string;
376
+ }
377
+ /**
378
+ * Evaluator for assessing agent responses
379
+ */
380
+ interface Evaluator {
381
+ /** Whether to always run */
382
+ alwaysRun?: boolean;
383
+ /** Detailed description */
384
+ description: string;
385
+ /** Similar evaluator descriptions */
386
+ similes: string[];
387
+ /** Example evaluations */
388
+ examples: EvaluationExample[];
389
+ /** Handler function */
390
+ handler: Handler;
391
+ /** Evaluator name */
392
+ name: string;
393
+ /** Validation function */
394
+ validate: Validator;
395
+ }
396
+ /**
397
+ * Provider for external data/services
398
+ */
399
+ interface Provider$1 {
400
+ /** Provider name */
401
+ name?: string;
402
+ /** Description of the provider */
403
+ description?: string;
404
+ /** Whether the provider is dynamic */
405
+ dynamic?: boolean;
406
+ /** Position of the provider in the provider list */
407
+ position?: number;
408
+ /** Whether the provider is private */
409
+ private?: boolean;
410
+ /** Data retrieval function */
411
+ get: (runtime: IAgentRuntime, message: Memory, state?: State$1) => Promise<any>;
412
+ }
413
+ /**
414
+ * Represents a relationship between users
415
+ */
416
+ interface Relationship {
417
+ /** Unique identifier */
418
+ id: UUID$1;
419
+ /** First user ID */
420
+ userA: UUID$1;
421
+ /** Second user ID */
422
+ userB: UUID$1;
423
+ /** Primary user ID */
424
+ userId: UUID$1;
425
+ /** Associated room ID */
426
+ roomId: UUID$1;
427
+ /** Relationship status */
428
+ status: string;
429
+ /** Optional creation timestamp */
430
+ createdAt?: string;
431
+ }
432
+ /**
433
+ * Represents a user account
434
+ */
435
+ interface Account {
436
+ /** Unique identifier */
437
+ id: UUID$1;
438
+ /** Display name */
439
+ name: string;
440
+ /** Username */
441
+ username: string;
442
+ /** Optional additional details */
443
+ details?: {
444
+ [key: string]: any;
445
+ };
446
+ /** Optional email */
447
+ email?: string;
448
+ /** Optional avatar URL */
449
+ avatarUrl?: string;
450
+ }
451
+ /**
452
+ * Room participant with account details
453
+ */
454
+ interface Participant {
455
+ /** Unique identifier */
456
+ id: UUID$1;
457
+ /** Associated account */
458
+ account: Account;
459
+ }
460
+ /**
461
+ * Represents a conversation room
462
+ */
463
+ interface Room {
464
+ /** Unique identifier */
465
+ id: UUID$1;
466
+ /** Room participants */
467
+ participants: Participant[];
468
+ }
469
+ /**
470
+ * Represents a media attachment
471
+ */
472
+ type Media = {
473
+ /** Unique identifier */
474
+ id: string;
475
+ /** Media URL */
476
+ url: string;
477
+ /** Media title */
478
+ title: string;
479
+ /** Media source */
480
+ source: string;
481
+ /** Media description */
482
+ description: string;
483
+ /** Text content */
484
+ text: string;
485
+ /** Content type */
486
+ contentType?: string;
487
+ };
488
+ /**
489
+ * Client instance
490
+ */
491
+ type ClientInstance = {
492
+ /** Client name */
493
+ /** Stop client connection */
494
+ stop: (runtime: IAgentRuntime) => Promise<unknown>;
495
+ };
496
+ /**
497
+ * Client interface for platform connections
498
+ */
499
+ type Client = {
500
+ /** Client name */
501
+ name: string;
502
+ /** Client configuration */
503
+ config?: {
504
+ [key: string]: any;
505
+ };
506
+ /** Start client connection */
507
+ start: (runtime: IAgentRuntime) => Promise<ClientInstance>;
508
+ };
509
+ /**
510
+ * Database adapter initialization
511
+ */
512
+ type Adapter = {
513
+ /** Initialize the adapter */
514
+ init: (runtime: IAgentRuntime) => IDatabaseAdapter & IDatabaseCacheAdapter;
515
+ };
516
+ /**
517
+ * Plugin for extending agent functionality
518
+ */
519
+ type Plugin = {
520
+ /** Plugin name */
521
+ name: string;
522
+ /** Plugin npm name */
523
+ npmName?: string;
524
+ /** Plugin configuration */
525
+ config?: {
526
+ [key: string]: any;
527
+ };
528
+ /** Plugin description */
529
+ description: string;
530
+ /** Optional actions */
531
+ actions?: Action[];
532
+ /** Optional providers */
533
+ providers?: Provider$1[];
534
+ /** Optional evaluators */
535
+ evaluators?: Evaluator[];
536
+ /** Optional services */
537
+ services?: Service[];
538
+ /** Optional clients */
539
+ clients?: Client[];
540
+ /** Optional adapters */
541
+ adapters?: Adapter[];
542
+ /** Optional post charactor processor handler */
543
+ handlePostCharacterLoaded?: (char: Character) => Promise<Character>;
544
+ };
545
+ interface IAgentConfig {
546
+ [key: string]: string;
547
+ }
548
+ type TelemetrySettings = {
549
+ /**
550
+ * Enable or disable telemetry. Disabled by default while experimental.
551
+ */
552
+ isEnabled?: boolean;
553
+ /**
554
+ * Enable or disable input recording. Enabled by default.
555
+ *
556
+ * You might want to disable input recording to avoid recording sensitive
557
+ * information, to reduce data transfers, or to increase performance.
558
+ */
559
+ recordInputs?: boolean;
560
+ /**
561
+ * Enable or disable output recording. Enabled by default.
562
+ *
563
+ * You might want to disable output recording to avoid recording sensitive
564
+ * information, to reduce data transfers, or to increase performance.
565
+ */
566
+ recordOutputs?: boolean;
567
+ /**
568
+ * Identifier for this function. Used to group telemetry data by function.
569
+ */
570
+ functionId?: string;
571
+ };
572
+ interface ModelConfiguration {
573
+ temperature?: number;
574
+ maxOutputTokens?: number;
575
+ frequency_penalty?: number;
576
+ presence_penalty?: number;
577
+ maxInputTokens?: number;
578
+ experimental_telemetry?: TelemetrySettings;
579
+ }
580
+ type TemplateType$1 = string | ((options: {
581
+ state: State$1;
582
+ }) => string);
583
+ /**
584
+ * Configuration for an agent character
585
+ */
586
+ type Character = {
587
+ /** Optional unique identifier */
588
+ id?: UUID$1;
589
+ /** Character name */
590
+ name: string;
591
+ /** Optional username */
592
+ username?: string;
593
+ /** Optional email */
594
+ email?: string;
595
+ /** Optional system prompt */
596
+ system?: string;
597
+ /** Model provider to use */
598
+ modelProvider: ModelProviderName;
599
+ /** Image model provider to use, if different from modelProvider */
600
+ imageModelProvider?: ModelProviderName;
601
+ /** Image Vision model provider to use, if different from modelProvider */
602
+ imageVisionModelProvider?: ModelProviderName;
603
+ /** Optional model endpoint override */
604
+ modelEndpointOverride?: string;
605
+ /** Optional prompt templates */
606
+ templates?: {
607
+ goalsTemplate?: TemplateType$1;
608
+ factsTemplate?: TemplateType$1;
609
+ messageHandlerTemplate?: TemplateType$1;
610
+ shouldRespondTemplate?: TemplateType$1;
611
+ continueMessageHandlerTemplate?: TemplateType$1;
612
+ evaluationTemplate?: TemplateType$1;
613
+ twitterSearchTemplate?: TemplateType$1;
614
+ twitterActionTemplate?: TemplateType$1;
615
+ twitterPostTemplate?: TemplateType$1;
616
+ twitterMessageHandlerTemplate?: TemplateType$1;
617
+ twitterShouldRespondTemplate?: TemplateType$1;
618
+ twitterVoiceHandlerTemplate?: TemplateType$1;
619
+ instagramPostTemplate?: TemplateType$1;
620
+ instagramMessageHandlerTemplate?: TemplateType$1;
621
+ instagramShouldRespondTemplate?: TemplateType$1;
622
+ farcasterPostTemplate?: TemplateType$1;
623
+ lensPostTemplate?: TemplateType$1;
624
+ farcasterMessageHandlerTemplate?: TemplateType$1;
625
+ lensMessageHandlerTemplate?: TemplateType$1;
626
+ farcasterShouldRespondTemplate?: TemplateType$1;
627
+ lensShouldRespondTemplate?: TemplateType$1;
628
+ telegramMessageHandlerTemplate?: TemplateType$1;
629
+ telegramShouldRespondTemplate?: TemplateType$1;
630
+ telegramAutoPostTemplate?: string;
631
+ telegramPinnedMessageTemplate?: string;
632
+ discordAutoPostTemplate?: string;
633
+ discordAnnouncementHypeTemplate?: string;
634
+ discordVoiceHandlerTemplate?: TemplateType$1;
635
+ discordShouldRespondTemplate?: TemplateType$1;
636
+ discordMessageHandlerTemplate?: TemplateType$1;
637
+ slackMessageHandlerTemplate?: TemplateType$1;
638
+ slackShouldRespondTemplate?: TemplateType$1;
639
+ jeeterPostTemplate?: string;
640
+ jeeterSearchTemplate?: string;
641
+ jeeterInteractionTemplate?: string;
642
+ jeeterMessageHandlerTemplate?: string;
643
+ jeeterShouldRespondTemplate?: string;
644
+ devaPostTemplate?: string;
645
+ };
646
+ /** Character biography */
647
+ bio: string | string[];
648
+ /** Character background lore */
649
+ lore: string[];
650
+ /** Example messages */
651
+ messageExamples: MessageExample[][];
652
+ /** Example posts */
653
+ postExamples: string[];
654
+ /** Known topics */
655
+ topics: string[];
656
+ /** Character traits */
657
+ adjectives: string[];
658
+ /** Optional knowledge base */
659
+ knowledge?: (string | {
660
+ path: string;
661
+ shared?: boolean;
662
+ } | {
663
+ directory: string;
664
+ shared?: boolean;
665
+ })[];
666
+ /** Available plugins */
667
+ plugins: Plugin[];
668
+ /** Character Processor Plugins */
669
+ postProcessors?: Pick<Plugin, 'name' | 'description' | 'handlePostCharacterLoaded'>[];
670
+ /** Optional configuration */
671
+ settings?: {
672
+ secrets?: {
673
+ [key: string]: string;
674
+ };
675
+ intiface?: boolean;
676
+ imageSettings?: {
677
+ steps?: number;
678
+ width?: number;
679
+ height?: number;
680
+ cfgScale?: number;
681
+ negativePrompt?: string;
682
+ numIterations?: number;
683
+ guidanceScale?: number;
684
+ seed?: number;
685
+ modelId?: string;
686
+ jobId?: string;
687
+ count?: number;
688
+ stylePreset?: string;
689
+ hideWatermark?: boolean;
690
+ safeMode?: boolean;
691
+ };
692
+ voice?: {
693
+ model?: string;
694
+ url?: string;
695
+ elevenlabs?: {
696
+ voiceId: string;
697
+ model?: string;
698
+ stability?: string;
699
+ similarityBoost?: string;
700
+ style?: string;
701
+ useSpeakerBoost?: string;
702
+ };
703
+ };
704
+ model?: string;
705
+ modelConfig?: ModelConfiguration;
706
+ embeddingModel?: string;
707
+ chains?: {
708
+ evm?: any[];
709
+ solana?: any[];
710
+ [key: string]: any[] | string | undefined;
711
+ };
712
+ transcription?: TranscriptionProvider;
713
+ ragKnowledge?: boolean;
714
+ };
715
+ /** Optional client-specific config */
716
+ clientConfig?: {
717
+ discord?: {
718
+ shouldIgnoreBotMessages?: boolean;
719
+ shouldIgnoreDirectMessages?: boolean;
720
+ shouldRespondOnlyToMentions?: boolean;
721
+ messageSimilarityThreshold?: number;
722
+ isPartOfTeam?: boolean;
723
+ teamAgentIds?: string[];
724
+ teamLeaderId?: string;
725
+ teamMemberInterestKeywords?: string[];
726
+ allowedChannelIds?: string[];
727
+ autoPost?: {
728
+ enabled?: boolean;
729
+ monitorTime?: number;
730
+ inactivityThreshold?: number;
731
+ mainChannelId?: string;
732
+ announcementChannelIds?: string[];
733
+ minTimeBetweenPosts?: number;
734
+ };
735
+ };
736
+ telegram?: {
737
+ shouldIgnoreBotMessages?: boolean;
738
+ shouldIgnoreDirectMessages?: boolean;
739
+ shouldRespondOnlyToMentions?: boolean;
740
+ shouldOnlyJoinInAllowedGroups?: boolean;
741
+ allowedGroupIds?: string[];
742
+ messageSimilarityThreshold?: number;
743
+ isPartOfTeam?: boolean;
744
+ teamAgentIds?: string[];
745
+ teamLeaderId?: string;
746
+ teamMemberInterestKeywords?: string[];
747
+ autoPost?: {
748
+ enabled?: boolean;
749
+ monitorTime?: number;
750
+ inactivityThreshold?: number;
751
+ mainChannelId?: string;
752
+ pinnedMessagesGroups?: string[];
753
+ minTimeBetweenPosts?: number;
754
+ };
755
+ };
756
+ slack?: {
757
+ shouldIgnoreBotMessages?: boolean;
758
+ shouldIgnoreDirectMessages?: boolean;
759
+ };
760
+ gitbook?: {
761
+ keywords?: {
762
+ projectTerms?: string[];
763
+ generalQueries?: string[];
764
+ };
765
+ documentTriggers?: string[];
766
+ };
767
+ };
768
+ /** Writing style guides */
769
+ style: {
770
+ all: string[];
771
+ chat: string[];
772
+ post: string[];
773
+ };
774
+ /** Optional Twitter profile */
775
+ twitterProfile?: {
776
+ id: string;
777
+ username: string;
778
+ screenName: string;
779
+ bio: string;
780
+ nicknames?: string[];
781
+ };
782
+ /** Optional Instagram profile */
783
+ instagramProfile?: {
784
+ id: string;
785
+ username: string;
786
+ bio: string;
787
+ nicknames?: string[];
788
+ };
789
+ /** Optional SimsAI profile */
790
+ simsaiProfile?: {
791
+ id: string;
792
+ username: string;
793
+ screenName: string;
794
+ bio: string;
795
+ };
796
+ /** Optional NFT prompt */
797
+ nft?: {
798
+ prompt: string;
799
+ };
800
+ /**Optinal Parent characters to inherit information from */
801
+ extends?: string[];
802
+ twitterSpaces?: TwitterSpaceDecisionOptions;
803
+ };
804
+ interface TwitterSpaceDecisionOptions {
805
+ maxSpeakers?: number;
806
+ topics?: string[];
807
+ typicalDurationMinutes?: number;
808
+ idleKickTimeoutMs?: number;
809
+ minIntervalBetweenSpacesMinutes?: number;
810
+ businessHoursOnly?: boolean;
811
+ randomChance?: number;
812
+ enableIdleMonitor?: boolean;
813
+ enableSttTts?: boolean;
814
+ enableRecording?: boolean;
815
+ voiceId?: string;
816
+ sttLanguage?: string;
817
+ speakerMaxDurationMs?: number;
818
+ }
819
+ /**
820
+ * Interface for database operations
821
+ */
822
+ interface IDatabaseAdapter {
823
+ /** Database instance */
824
+ db: any;
825
+ /** Optional initialization */
826
+ init(): Promise<void>;
827
+ /** Close database connection */
828
+ close(): Promise<void>;
829
+ /** Get account by ID */
830
+ getAccountById(userId: UUID$1): Promise<Account | null>;
831
+ /** Create new account */
832
+ createAccount(account: Account): Promise<boolean>;
833
+ /** Get memories matching criteria */
834
+ getMemories(params: {
835
+ roomId: UUID$1;
836
+ count?: number;
837
+ unique?: boolean;
838
+ tableName: string;
839
+ agentId: UUID$1;
840
+ start?: number;
841
+ end?: number;
842
+ }): Promise<Memory[]>;
843
+ getMemoryById(id: UUID$1): Promise<Memory | null>;
844
+ getMemoriesByIds(ids: UUID$1[], tableName?: string): Promise<Memory[]>;
845
+ getMemoriesByRoomIds(params: {
846
+ tableName: string;
847
+ agentId: UUID$1;
848
+ roomIds: UUID$1[];
849
+ limit?: number;
850
+ }): Promise<Memory[]>;
851
+ getCachedEmbeddings(params: {
852
+ query_table_name: string;
853
+ query_threshold: number;
854
+ query_input: string;
855
+ query_field_name: string;
856
+ query_field_sub_name: string;
857
+ query_match_count: number;
858
+ }): Promise<{
859
+ embedding: number[];
860
+ levenshtein_score: number;
861
+ }[]>;
862
+ log(params: {
863
+ body: {
864
+ [key: string]: unknown;
865
+ };
866
+ userId: UUID$1;
867
+ roomId: UUID$1;
868
+ type: string;
869
+ }): Promise<void>;
870
+ getActorDetails(params: {
871
+ roomId: UUID$1;
872
+ }): Promise<Actor[]>;
873
+ searchMemories(params: {
874
+ tableName: string;
875
+ agentId: UUID$1;
876
+ roomId: UUID$1;
877
+ embedding: number[];
878
+ match_threshold: number;
879
+ match_count: number;
880
+ unique: boolean;
881
+ }): Promise<Memory[]>;
882
+ updateGoalStatus(params: {
883
+ goalId: UUID$1;
884
+ status: GoalStatus;
885
+ }): Promise<void>;
886
+ searchMemoriesByEmbedding(embedding: number[], params: {
887
+ match_threshold?: number;
888
+ count?: number;
889
+ roomId?: UUID$1;
890
+ agentId?: UUID$1;
891
+ unique?: boolean;
892
+ tableName: string;
893
+ }): Promise<Memory[]>;
894
+ createMemory(memory: Memory, tableName: string, unique?: boolean): Promise<void>;
895
+ removeMemory(memoryId: UUID$1, tableName: string): Promise<void>;
896
+ removeAllMemories(roomId: UUID$1, tableName: string): Promise<void>;
897
+ countMemories(roomId: UUID$1, unique?: boolean, tableName?: string): Promise<number>;
898
+ getGoals(params: {
899
+ agentId: UUID$1;
900
+ roomId: UUID$1;
901
+ userId?: UUID$1 | null;
902
+ onlyInProgress?: boolean;
903
+ count?: number;
904
+ }): Promise<Goal[]>;
905
+ updateGoal(goal: Goal): Promise<void>;
906
+ createGoal(goal: Goal): Promise<void>;
907
+ removeGoal(goalId: UUID$1): Promise<void>;
908
+ removeAllGoals(roomId: UUID$1): Promise<void>;
909
+ getRoom(roomId: UUID$1): Promise<UUID$1 | null>;
910
+ createRoom(roomId?: UUID$1): Promise<UUID$1>;
911
+ removeRoom(roomId: UUID$1): Promise<void>;
912
+ getRoomsForParticipant(userId: UUID$1): Promise<UUID$1[]>;
913
+ getRoomsForParticipants(userIds: UUID$1[]): Promise<UUID$1[]>;
914
+ addParticipant(userId: UUID$1, roomId: UUID$1): Promise<boolean>;
915
+ removeParticipant(userId: UUID$1, roomId: UUID$1): Promise<boolean>;
916
+ getParticipantsForAccount(userId: UUID$1): Promise<Participant[]>;
917
+ getParticipantsForRoom(roomId: UUID$1): Promise<UUID$1[]>;
918
+ getParticipantUserState(roomId: UUID$1, userId: UUID$1): Promise<'FOLLOWED' | 'MUTED' | null>;
919
+ setParticipantUserState(roomId: UUID$1, userId: UUID$1, state: 'FOLLOWED' | 'MUTED' | null): Promise<void>;
920
+ createRelationship(params: {
921
+ userA: UUID$1;
922
+ userB: UUID$1;
923
+ }): Promise<boolean>;
924
+ getRelationship(params: {
925
+ userA: UUID$1;
926
+ userB: UUID$1;
927
+ }): Promise<Relationship | null>;
928
+ getRelationships(params: {
929
+ userId: UUID$1;
930
+ }): Promise<Relationship[]>;
931
+ getKnowledge(params: {
932
+ id?: UUID$1;
933
+ agentId: UUID$1;
934
+ limit?: number;
935
+ query?: string;
936
+ conversationContext?: string;
937
+ }): Promise<RAGKnowledgeItem[]>;
938
+ searchKnowledge(params: {
939
+ agentId: UUID$1;
940
+ embedding: Float32Array;
941
+ match_threshold: number;
942
+ match_count: number;
943
+ searchText?: string;
944
+ }): Promise<RAGKnowledgeItem[]>;
945
+ createKnowledge(knowledge: RAGKnowledgeItem): Promise<void>;
946
+ removeKnowledge(id: UUID$1): Promise<void>;
947
+ clearKnowledge(agentId: UUID$1, shared?: boolean): Promise<void>;
948
+ }
949
+ interface IDatabaseCacheAdapter {
950
+ getCache(params: {
951
+ agentId: UUID$1;
952
+ key: string;
953
+ }): Promise<string | undefined>;
954
+ setCache(params: {
955
+ agentId: UUID$1;
956
+ key: string;
957
+ value: string;
958
+ }): Promise<boolean>;
959
+ deleteCache(params: {
960
+ agentId: UUID$1;
961
+ key: string;
962
+ }): Promise<boolean>;
963
+ }
964
+ interface IMemoryManager {
965
+ runtime: IAgentRuntime;
966
+ tableName: string;
967
+ constructor: Function;
968
+ addEmbeddingToMemory(memory: Memory): Promise<Memory>;
969
+ getMemories(opts: {
970
+ roomId: UUID$1;
971
+ count?: number;
972
+ unique?: boolean;
973
+ start?: number;
974
+ end?: number;
975
+ }): Promise<Memory[]>;
976
+ getCachedEmbeddings(content: string): Promise<{
977
+ embedding: number[];
978
+ levenshtein_score: number;
979
+ }[]>;
980
+ getMemoryById(id: UUID$1): Promise<Memory | null>;
981
+ getMemoriesByRoomIds(params: {
982
+ roomIds: UUID$1[];
983
+ limit?: number;
984
+ }): Promise<Memory[]>;
985
+ searchMemoriesByEmbedding(embedding: number[], opts: {
986
+ match_threshold?: number;
987
+ count?: number;
988
+ roomId: UUID$1;
989
+ unique?: boolean;
990
+ }): Promise<Memory[]>;
991
+ createMemory(memory: Memory, unique?: boolean): Promise<void>;
992
+ removeMemory(memoryId: UUID$1): Promise<void>;
993
+ removeAllMemories(roomId: UUID$1): Promise<void>;
994
+ countMemories(roomId: UUID$1, unique?: boolean): Promise<number>;
995
+ }
996
+ interface IRAGKnowledgeManager {
997
+ runtime: IAgentRuntime;
998
+ tableName: string;
999
+ getKnowledge(params: {
1000
+ query?: string;
1001
+ id?: UUID$1;
1002
+ limit?: number;
1003
+ conversationContext?: string;
1004
+ agentId?: UUID$1;
1005
+ }): Promise<RAGKnowledgeItem[]>;
1006
+ createKnowledge(item: RAGKnowledgeItem): Promise<void>;
1007
+ removeKnowledge(id: UUID$1): Promise<void>;
1008
+ searchKnowledge(params: {
1009
+ agentId: UUID$1;
1010
+ embedding: Float32Array | number[];
1011
+ match_threshold?: number;
1012
+ match_count?: number;
1013
+ searchText?: string;
1014
+ }): Promise<RAGKnowledgeItem[]>;
1015
+ clearKnowledge(shared?: boolean): Promise<void>;
1016
+ processFile(file: {
1017
+ path: string;
1018
+ content: string;
1019
+ type: 'pdf' | 'md' | 'txt';
1020
+ isShared: boolean;
1021
+ }): Promise<void>;
1022
+ cleanupDeletedKnowledgeFiles(): Promise<void>;
1023
+ generateScopedId(path: string, isShared: boolean): UUID$1;
1024
+ }
1025
+ type CacheOptions = {
1026
+ expires?: number;
1027
+ };
1028
+ declare enum CacheStore {
1029
+ REDIS = "redis",
1030
+ DATABASE = "database",
1031
+ FILESYSTEM = "filesystem"
1032
+ }
1033
+ interface ICacheManager {
1034
+ get<T = unknown>(key: string): Promise<T | undefined>;
1035
+ set<T>(key: string, value: T, options?: CacheOptions): Promise<void>;
1036
+ delete(key: string): Promise<void>;
1037
+ }
1038
+ declare abstract class Service {
1039
+ private static instance;
1040
+ static get serviceType(): ServiceType;
1041
+ static getInstance<T extends Service>(): T;
1042
+ get serviceType(): ServiceType;
1043
+ abstract initialize(runtime: IAgentRuntime): Promise<void>;
1044
+ }
1045
+ interface IAgentRuntime {
1046
+ agentId: UUID$1;
1047
+ serverUrl: string;
1048
+ databaseAdapter: IDatabaseAdapter;
1049
+ token: string | null;
1050
+ modelProvider: ModelProviderName;
1051
+ imageModelProvider: ModelProviderName;
1052
+ imageVisionModelProvider: ModelProviderName;
1053
+ character: Character;
1054
+ providers: Provider$1[];
1055
+ actions: Action[];
1056
+ evaluators: Evaluator[];
1057
+ plugins: Plugin[];
1058
+ fetch?: typeof fetch | null;
1059
+ messageManager: IMemoryManager;
1060
+ descriptionManager: IMemoryManager;
1061
+ documentsManager: IMemoryManager;
1062
+ knowledgeManager: IMemoryManager;
1063
+ ragKnowledgeManager: IRAGKnowledgeManager;
1064
+ loreManager: IMemoryManager;
1065
+ cacheManager: ICacheManager;
1066
+ services: Map<ServiceType, Service>;
1067
+ clients: ClientInstance[];
1068
+ initialize(): Promise<void>;
1069
+ registerMemoryManager(manager: IMemoryManager): void;
1070
+ getMemoryManager(name: string): IMemoryManager | null;
1071
+ getService<T extends Service>(service: ServiceType): T | null;
1072
+ registerService(service: Service): void;
1073
+ getSetting(key: string): string | null;
1074
+ getConversationLength(): number;
1075
+ processActions(message: Memory, responses: Memory[], state?: State$1, callback?: HandlerCallback): Promise<void>;
1076
+ evaluate(message: Memory, state?: State$1, didRespond?: boolean, callback?: HandlerCallback): Promise<string[] | null>;
1077
+ ensureParticipantExists(userId: UUID$1, roomId: UUID$1): Promise<void>;
1078
+ ensureUserExists(userId: UUID$1, userName: string | null, name: string | null, source: string | null): Promise<void>;
1079
+ registerAction(action: Action): void;
1080
+ ensureConnection(userId: UUID$1, roomId: UUID$1, userName?: string, userScreenName?: string, source?: string): Promise<void>;
1081
+ ensureParticipantInRoom(userId: UUID$1, roomId: UUID$1): Promise<void>;
1082
+ ensureRoomExists(roomId: UUID$1): Promise<void>;
1083
+ composeState(message: Memory, additionalKeys?: {
1084
+ [key: string]: unknown;
1085
+ }): Promise<State$1>;
1086
+ updateRecentMessageState(state: State$1): Promise<State$1>;
1087
+ }
1088
+ interface IImageDescriptionService extends Service {
1089
+ describeImage(imageUrl: string): Promise<{
1090
+ title: string;
1091
+ description: string;
1092
+ }>;
1093
+ }
1094
+ interface ITranscriptionService extends Service {
1095
+ transcribeAttachment(audioBuffer: ArrayBuffer): Promise<string | null>;
1096
+ transcribeAttachmentLocally(audioBuffer: ArrayBuffer): Promise<string | null>;
1097
+ transcribe(audioBuffer: ArrayBuffer): Promise<string | null>;
1098
+ transcribeLocally(audioBuffer: ArrayBuffer): Promise<string | null>;
1099
+ }
1100
+ interface IVideoService extends Service {
1101
+ isVideoUrl(url: string): boolean;
1102
+ fetchVideoInfo(url: string): Promise<Media>;
1103
+ downloadVideo(videoInfo: Media): Promise<string>;
1104
+ processVideo(url: string, runtime: IAgentRuntime): Promise<Media>;
1105
+ }
1106
+ interface ITextGenerationService extends Service {
1107
+ initializeModel(): Promise<void>;
1108
+ queueMessageCompletion(context: string, temperature: number, stop: string[], frequency_penalty: number, presence_penalty: number, max_tokens: number): Promise<any>;
1109
+ queueTextCompletion(context: string, temperature: number, stop: string[], frequency_penalty: number, presence_penalty: number, max_tokens: number): Promise<string>;
1110
+ getEmbeddingResponse(input: string): Promise<number[] | undefined>;
1111
+ }
1112
+ interface IBrowserService extends Service {
1113
+ closeBrowser(): Promise<void>;
1114
+ getPageContent(url: string, runtime: IAgentRuntime): Promise<{
1115
+ title: string;
1116
+ description: string;
1117
+ bodyContent: string;
1118
+ }>;
1119
+ }
1120
+ interface ISpeechService extends Service {
1121
+ getInstance(): ISpeechService;
1122
+ generate(runtime: IAgentRuntime, text: string): Promise<Readable>;
1123
+ }
1124
+ interface IPdfService extends Service {
1125
+ getInstance(): IPdfService;
1126
+ convertPdfToText(pdfBuffer: Buffer): Promise<string>;
1127
+ }
1128
+ interface IAwsS3Service extends Service {
1129
+ uploadFile(imagePath: string, subDirectory: string, useSignedUrl: boolean, expiresIn: number): Promise<{
1130
+ success: boolean;
1131
+ url?: string;
1132
+ error?: string;
1133
+ }>;
1134
+ generateSignedUrl(fileName: string, expiresIn: number): Promise<string>;
1135
+ }
1136
+ interface UploadIrysResult {
1137
+ success: boolean;
1138
+ url?: string;
1139
+ error?: string;
1140
+ data?: any;
1141
+ }
1142
+ interface DataIrysFetchedFromGQL {
1143
+ success: boolean;
1144
+ data: any;
1145
+ error?: string;
1146
+ }
1147
+ interface GraphQLTag {
1148
+ name: string;
1149
+ values: any[];
1150
+ }
1151
+ declare enum IrysMessageType {
1152
+ REQUEST = "REQUEST",
1153
+ DATA_STORAGE = "DATA_STORAGE",
1154
+ REQUEST_RESPONSE = "REQUEST_RESPONSE"
1155
+ }
1156
+ declare enum IrysDataType {
1157
+ FILE = "FILE",
1158
+ IMAGE = "IMAGE",
1159
+ OTHER = "OTHER"
1160
+ }
1161
+ interface IrysTimestamp {
1162
+ from: number;
1163
+ to: number;
1164
+ }
1165
+ interface IIrysService extends Service {
1166
+ getDataFromAnAgent(agentsWalletPublicKeys: string[], tags: GraphQLTag[], timestamp: IrysTimestamp): Promise<DataIrysFetchedFromGQL>;
1167
+ workerUploadDataOnIrys(data: any, dataType: IrysDataType, messageType: IrysMessageType, serviceCategory: string[], protocol: string[], validationThreshold: number[], minimumProviders: number[], testProvider: boolean[], reputation: number[]): Promise<UploadIrysResult>;
1168
+ providerUploadDataOnIrys(data: any, dataType: IrysDataType, serviceCategory: string[], protocol: string[]): Promise<UploadIrysResult>;
1169
+ }
1170
+ interface ITeeLogService extends Service {
1171
+ getInstance(): ITeeLogService;
1172
+ log(agentId: string, roomId: string, userId: string, type: string, content: string): Promise<boolean>;
1173
+ }
1174
+ declare enum ServiceType {
1175
+ IMAGE_DESCRIPTION = "image_description",
1176
+ TRANSCRIPTION = "transcription",
1177
+ VIDEO = "video",
1178
+ TEXT_GENERATION = "text_generation",
1179
+ BROWSER = "browser",
1180
+ SPEECH_GENERATION = "speech_generation",
1181
+ PDF = "pdf",
1182
+ INTIFACE = "intiface",
1183
+ AWS_S3 = "aws_s3",
1184
+ BUTTPLUG = "buttplug",
1185
+ SLACK = "slack",
1186
+ VERIFIABLE_LOGGING = "verifiable_logging",
1187
+ IRYS = "irys",
1188
+ TEE_LOG = "tee_log",
1189
+ GOPLUS_SECURITY = "goplus_security",
1190
+ WEB_SEARCH = "web_search",
1191
+ EMAIL_AUTOMATION = "email_automation",
1192
+ NKN_CLIENT_SERVICE = "nkn_client_service"
1193
+ }
1194
+ declare enum LoggingLevel {
1195
+ DEBUG = "debug",
1196
+ VERBOSE = "verbose",
1197
+ NONE = "none"
1198
+ }
1199
+ type KnowledgeItem = {
1200
+ id: UUID$1;
1201
+ content: Content;
1202
+ };
1203
+ interface RAGKnowledgeItem {
1204
+ id: UUID$1;
1205
+ agentId: UUID$1;
1206
+ content: {
1207
+ text: string;
1208
+ metadata?: {
1209
+ isMain?: boolean;
1210
+ isChunk?: boolean;
1211
+ originalId?: UUID$1;
1212
+ chunkIndex?: number;
1213
+ source?: string;
1214
+ type?: string;
1215
+ isShared?: boolean;
1216
+ [key: string]: unknown;
1217
+ };
1218
+ };
1219
+ embedding?: Float32Array;
1220
+ createdAt?: number;
1221
+ similarity?: number;
1222
+ score?: number;
1223
+ }
1224
+ interface ActionResponse {
1225
+ like: boolean;
1226
+ retweet: boolean;
1227
+ quote?: boolean;
1228
+ reply?: boolean;
1229
+ }
1230
+ interface ISlackService extends Service {
1231
+ client: any;
1232
+ }
1233
+ declare enum TokenizerType {
1234
+ Auto = "auto",
1235
+ TikToken = "tiktoken"
1236
+ }
1237
+ declare enum TranscriptionProvider {
1238
+ OpenAI = "openai",
1239
+ Deepgram = "deepgram",
1240
+ Local = "local"
1241
+ }
1242
+ declare enum ActionTimelineType {
1243
+ ForYou = "foryou",
1244
+ Following = "following"
1245
+ }
1246
+ declare enum KnowledgeScope {
1247
+ SHARED = "shared",
1248
+ PRIVATE = "private"
1249
+ }
1250
+ declare enum CacheKeyPrefix {
1251
+ KNOWLEDGE = "knowledge"
1252
+ }
1253
+ interface DirectoryItem {
1254
+ directory: string;
1255
+ shared?: boolean;
1256
+ }
1257
+ interface ChunkRow {
1258
+ id: string;
1259
+ }
1260
+
1261
+ /**
1262
+ * Get details for a list of actors.
1263
+ */
1264
+ declare function getActorDetails({ runtime, roomId, }: {
1265
+ runtime: IAgentRuntime;
1266
+ roomId: UUID$1;
1267
+ }): Promise<void>;
1268
+ /**
1269
+ * Format actors into a string
1270
+ * @param actors - list of actors
1271
+ * @returns string
1272
+ */
1273
+ declare function formatActors({ actors }: {
1274
+ actors: Actor[];
1275
+ }): string;
1276
+ /**
1277
+ * Format messages into a string
1278
+ * @param messages - list of messages
1279
+ * @param actors - list of actors
1280
+ * @returns string
1281
+ */
1282
+ declare const formatMessages: ({ messages, actors }: {
1283
+ messages: Memory[];
1284
+ actors: Actor[];
1285
+ }) => string;
1286
+ declare const formatTimestamp: (messageDate: number) => string;
1287
+
1288
+ declare const formatPosts: ({ messages, actors, conversationHeader, }: {
1289
+ messages: Memory[];
1290
+ actors: Actor[];
1291
+ conversationHeader?: boolean;
1292
+ }) => string;
1293
+
1294
+ declare class AgentRuntime implements IAgentRuntime {
1295
+ private _runtime;
1296
+ get agentId(): UUID$1;
1297
+ get serverUrl(): string;
1298
+ get databaseAdapter(): IDatabaseAdapter;
1299
+ get token(): string;
1300
+ get character(): Character;
1301
+ get actions(): Action[];
1302
+ get evaluators(): Evaluator[];
1303
+ get providers(): Provider$1[];
1304
+ get plugins(): Plugin[];
1305
+ get modelProvider(): any;
1306
+ get imageModelProvider(): any;
1307
+ get imageVisionModelProvider(): any;
1308
+ get messageManager(): any;
1309
+ get routes(): any;
1310
+ get services(): any;
1311
+ get events(): any;
1312
+ get descriptionManager(): any;
1313
+ get documentsManager(): any;
1314
+ get knowledgeManager(): any;
1315
+ get ragKnowledgeManager(): any;
1316
+ get loreManager(): any;
1317
+ get cacheManager(): any;
1318
+ get clients(): any;
1319
+ registerMemoryManager(manager: IMemoryManager): void;
1320
+ getMemoryManager(tableName: string): any;
1321
+ getService<T extends Service>(service: ServiceType): T | null;
1322
+ registerService(service: Service): Promise<void>;
1323
+ /**
1324
+ * Creates an instance of AgentRuntime.
1325
+ * @param opts - The options for configuring the AgentRuntime.
1326
+ * @param opts.conversationLength - The number of messages to hold in the recent message cache.
1327
+ * @param opts.token - The JWT token, can be a JWT token if outside worker, or an OpenAI token if inside worker.
1328
+ * @param opts.serverUrl - The URL of the worker.
1329
+ * @param opts.actions - Optional custom actions.
1330
+ * @param opts.evaluators - Optional custom evaluators.
1331
+ * @param opts.services - Optional custom services.
1332
+ * @param opts.memoryManagers - Optional custom memory managers.
1333
+ * @param opts.providers - Optional context providers.
1334
+ * @param opts.model - The model to use for generateText.
1335
+ * @param opts.embeddingModel - The model to use for embedding.
1336
+ * @param opts.agentId - Optional ID of the agent.
1337
+ * @param opts.databaseAdapter - The database adapter used for interacting with the database.
1338
+ * @param opts.fetch - Custom fetch function to use for making requests.
1339
+ */
1340
+ constructor(opts: {
1341
+ conversationLength?: number;
1342
+ agentId?: UUID$1;
1343
+ character?: Character;
1344
+ token: string;
1345
+ serverUrl?: string;
1346
+ actions?: Action[];
1347
+ evaluators?: Evaluator[];
1348
+ plugins?: Plugin[];
1349
+ providers?: Provider$1[];
1350
+ modelProvider: ModelProviderName;
1351
+ services?: Service[];
1352
+ managers?: IMemoryManager[];
1353
+ databaseAdapter?: IDatabaseAdapter;
1354
+ fetch?: typeof fetch | unknown;
1355
+ speechModelPath?: string;
1356
+ cacheManager?: ICacheManager;
1357
+ logging?: boolean;
1358
+ });
1359
+ initialize(): Promise<any>;
1360
+ stop(): Promise<any>;
1361
+ getSetting(key: string): any;
1362
+ /**
1363
+ * Get the number of messages that are kept in the conversation buffer.
1364
+ * @returns The number of recent messages to be kept in memory.
1365
+ */
1366
+ getConversationLength(): any;
1367
+ /**
1368
+ * Register an action for the agent to perform.
1369
+ * @param action The action to register.
1370
+ */
1371
+ registerAction(action: Action): any;
1372
+ /**
1373
+ * Register an evaluator to assess and guide the agent's responses.
1374
+ * @param evaluator The evaluator to register.
1375
+ */
1376
+ registerEvaluator(evaluator: Evaluator): any;
1377
+ /**
1378
+ * Register a context provider to provide context for message generation.
1379
+ * @param provider The context provider to register.
1380
+ */
1381
+ registerContextProvider(provider: Provider$1): any;
1382
+ /**
1383
+ * Register an adapter for the agent to use.
1384
+ * @param adapter The adapter to register.
1385
+ */
1386
+ registerAdapter(adapter: Adapter): void;
1387
+ /**
1388
+ * Process the actions of a message.
1389
+ * @param message The message to process.
1390
+ * @param content The content of the message to process actions from.
1391
+ */
1392
+ processActions(message: Memory, responses: Memory[], state?: State$1, callback?: HandlerCallback): Promise<void>;
1393
+ /**
1394
+ * Evaluate the message and state using the registered evaluators.
1395
+ * @param message The message to evaluate.
1396
+ * @param state The state of the agent.
1397
+ * @param didRespond Whether the agent responded to the message.~
1398
+ * @param callback The handler callback
1399
+ * @returns The results of the evaluation.
1400
+ */
1401
+ evaluate(message: Memory, state: State$1, didRespond?: boolean, callback?: HandlerCallback): Promise<any>;
1402
+ /**
1403
+ * Ensure the existence of a participant in the room. If the participant does not exist, they are added to the room.
1404
+ * @param userId - The user ID to ensure the existence of.
1405
+ * @throws An error if the participant cannot be added.
1406
+ */
1407
+ ensureParticipantExists(userId: UUID$1, roomId: UUID$1): Promise<void>;
1408
+ /**
1409
+ * Ensure the existence of a user in the database. If the user does not exist, they are added to the database.
1410
+ * @param userId - The user ID to ensure the existence of.
1411
+ * @param userName - The user name to ensure the existence of.
1412
+ * @returns
1413
+ */
1414
+ ensureUserExists(userId: UUID$1, userName: string | null, name: string | null, email?: string | null, source?: string | null): Promise<void>;
1415
+ ensureParticipantInRoom(userId: UUID$1, roomId: UUID$1): Promise<any>;
1416
+ ensureConnection(userId: UUID$1, roomId: UUID$1, userName?: string, userScreenName?: string, source?: string): Promise<any>;
1417
+ /**
1418
+ * Ensure the existence of a room between the agent and a user. If no room exists, a new room is created and the user
1419
+ * and agent are added as participants. The room ID is returned.
1420
+ * @param roomId - The room ID to create a room with.
1421
+ * @returns The room ID of the room between the agent and the user.
1422
+ * @throws An error if the room cannot be created.
1423
+ */
1424
+ ensureRoomExists(roomId: UUID$1): Promise<any>;
1425
+ /**
1426
+ * Compose the state of the agent into an object that can be passed or used for response generation.
1427
+ * @param message The message to compose the state from.
1428
+ * @returns The state of the agent.
1429
+ */
1430
+ composeState(message: Memory, additionalKeys?: {
1431
+ [key: string]: unknown;
1432
+ }): Promise<any>;
1433
+ updateRecentMessageState(state: State$1): Promise<State$1>;
1434
+ }
1435
+
1436
+ /**
1437
+ * Represents the state of a conversation or context
1438
+ * This is a v1 compatibility wrapper for v2 State
1439
+ */
1440
+ type State = State$1;
1441
+ /**
1442
+ * Converts v2 State to v1 compatible State
1443
+ * Uses the V2 State interface from core-plugin-v2
1444
+ */
1445
+ declare function fromV2State(stateV2: State$2): State;
1446
+ /**
1447
+ * Converts v1 State to v2 State
1448
+ * Creates a state object conforming to V2 State interface
1449
+ */
1450
+ declare function toV2State(state: State): State$2;
1451
+
1452
+ /**
1453
+ * Represents a UUID string in the format "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
1454
+ * This is a v1 compatibility wrapper for v2 UUID
1455
+ */
1456
+ type UUID = UUID$1;
1457
+ /**
1458
+ * Helper function to safely cast a string to strongly typed UUID
1459
+ * Wraps V2's validateUuid function
1460
+ *
1461
+ * @param id The string UUID to validate and cast
1462
+ * @returns The same UUID with branded type information
1463
+ * @throws Error if the UUID format is invalid
1464
+ */
1465
+ declare function asUUID(id: string): UUID;
1466
+ /**
1467
+ * Generates a UUID from a string input
1468
+ * Wraps V2's stringToUuid function
1469
+ *
1470
+ * @param input The string to convert to a UUID
1471
+ * @returns A UUID generated from the input string
1472
+ */
1473
+ declare function generateUuidFromString(input: string): UUID;
1474
+
1475
+ /**
1476
+ * Example content with associated user for demonstration purposes
1477
+ * This is exported from types.ts in v1, but we're recreating it here for the adapter
1478
+ */
1479
+ type ActionExample = ActionExample$1;
1480
+ /**
1481
+ * Safely converts a V2 content object to a V1 Content type
1482
+ * Maps known properties and preserves additional ones
1483
+ *
1484
+ * @param content V2 content object
1485
+ * @returns Content compatible with V1
1486
+ */
1487
+ declare function convertContentToV1(content: Content$1): Content;
1488
+ /**
1489
+ * Safely converts a V1 Content object to a V2 compatible content type
1490
+ * Maps known properties and preserves additional ones
1491
+ *
1492
+ * @param content V1 Content object
1493
+ * @returns Content compatible with V2
1494
+ */
1495
+ declare function convertContentToV2(content: Content): Content$1;
1496
+ /**
1497
+ * Converts v2 ActionExample to v1 compatible ActionExample
1498
+ *
1499
+ * @param exampleV2 The V2 action example to convert
1500
+ * @returns V1 compatible ActionExample
1501
+ */
1502
+ declare function fromV2ActionExample(exampleV2: ActionExample$2): ActionExample;
1503
+ /**
1504
+ * Converts v1 ActionExample to v2 ActionExample
1505
+ *
1506
+ * @param example The V1 action example to convert
1507
+ * @returns V2 compatible ActionExample
1508
+ */
1509
+ declare function toV2ActionExample(example: ActionExample): ActionExample$2;
1510
+
1511
+ /**
1512
+ * Provider for external data/services
1513
+ * This is a v1 compatibility wrapper for v2 Provider
1514
+ */
1515
+ type Provider = Provider$1;
1516
+ /**
1517
+ * Converts v2 Provider to v1 compatible Provider
1518
+ * Uses the V2 Provider interface to ensure proper optional field handling
1519
+ */
1520
+ declare function fromV2Provider(providerV2: Provider$2): Provider;
1521
+ /**
1522
+ * Converts v1 Provider to v2 Provider
1523
+ * Creates a Provider object conforming to V2 Provider interface
1524
+ */
1525
+ declare function toV2Provider(provider: Provider): Provider$2;
1526
+
1527
+ /**
1528
+ * Template type definition for v1 compatibility
1529
+ * A template can be either a string or a function that takes state and returns a string
1530
+ * This aligns with V2's TemplateType
1531
+ */
1532
+ type TemplateType = string | ((options: {
1533
+ state: State;
1534
+ }) => string);
1535
+ /**
1536
+ * Generic template values interface for typed access to state.values
1537
+ * Users can extend this interface for type safety in their templates
1538
+ */
1539
+ interface TemplateValues {
1540
+ [key: string]: unknown;
1541
+ }
1542
+ /**
1543
+ * Create a template function from a v1 template
1544
+ * @param template The v1 template (string or function)
1545
+ * @returns A function that processes the template with the given state
1546
+ */
1547
+ declare function createTemplateFunction(template: TemplateType): (state: State) => string;
1548
+ /**
1549
+ * Process a template with the given state
1550
+ * @param template The template to process (string or function)
1551
+ * @param state The state to use for processing
1552
+ * @returns The processed template string
1553
+ */
1554
+ declare function processTemplate(template: TemplateType, state: State): string;
1555
+ /**
1556
+ * Type-safe accessor for template values
1557
+ * @param state The state containing the values
1558
+ * @param defaultValues Optional default values to use if values are missing
1559
+ * @returns The values object with type information
1560
+ */
1561
+ declare function getTemplateValues<T extends TemplateValues>(state: State, defaultValues?: Partial<T>): T;
1562
+
1563
+ type index_Account = Account;
1564
+ type index_Action = Action;
1565
+ type index_ActionExample = ActionExample;
1566
+ type index_ActionResponse = ActionResponse;
1567
+ type index_ActionTimelineType = ActionTimelineType;
1568
+ declare const index_ActionTimelineType: typeof ActionTimelineType;
1569
+ type index_Actor = Actor;
1570
+ type index_Adapter = Adapter;
1571
+ type index_AgentRuntime = AgentRuntime;
1572
+ declare const index_AgentRuntime: typeof AgentRuntime;
1573
+ type index_CacheKeyPrefix = CacheKeyPrefix;
1574
+ declare const index_CacheKeyPrefix: typeof CacheKeyPrefix;
1575
+ type index_CacheOptions = CacheOptions;
1576
+ type index_CacheStore = CacheStore;
1577
+ declare const index_CacheStore: typeof CacheStore;
1578
+ type index_Character = Character;
1579
+ type index_ChunkRow = ChunkRow;
1580
+ type index_Client = Client;
1581
+ type index_ClientInstance = ClientInstance;
1582
+ type index_Content = Content;
1583
+ type index_ConversationExample = ConversationExample;
1584
+ type index_DataIrysFetchedFromGQL = DataIrysFetchedFromGQL;
1585
+ type index_DirectoryItem = DirectoryItem;
1586
+ type index_EmbeddingModelSettings = EmbeddingModelSettings;
1587
+ type index_EvaluationExample = EvaluationExample;
1588
+ type index_Evaluator = Evaluator;
1589
+ type index_Goal = Goal;
1590
+ type index_GoalStatus = GoalStatus;
1591
+ declare const index_GoalStatus: typeof GoalStatus;
1592
+ type index_GraphQLTag = GraphQLTag;
1593
+ type index_Handler = Handler;
1594
+ type index_HandlerCallback = HandlerCallback;
1595
+ type index_IAgentConfig = IAgentConfig;
1596
+ type index_IAgentRuntime = IAgentRuntime;
1597
+ type index_IAwsS3Service = IAwsS3Service;
1598
+ type index_IBrowserService = IBrowserService;
1599
+ type index_ICacheManager = ICacheManager;
1600
+ type index_IDatabaseAdapter = IDatabaseAdapter;
1601
+ type index_IDatabaseCacheAdapter = IDatabaseCacheAdapter;
1602
+ type index_IImageDescriptionService = IImageDescriptionService;
1603
+ type index_IIrysService = IIrysService;
1604
+ type index_IMemoryManager = IMemoryManager;
1605
+ type index_IPdfService = IPdfService;
1606
+ type index_IRAGKnowledgeManager = IRAGKnowledgeManager;
1607
+ type index_ISlackService = ISlackService;
1608
+ type index_ISpeechService = ISpeechService;
1609
+ type index_ITeeLogService = ITeeLogService;
1610
+ type index_ITextGenerationService = ITextGenerationService;
1611
+ type index_ITranscriptionService = ITranscriptionService;
1612
+ type index_IVideoService = IVideoService;
1613
+ type index_ImageModelSettings = ImageModelSettings;
1614
+ type index_IrysDataType = IrysDataType;
1615
+ declare const index_IrysDataType: typeof IrysDataType;
1616
+ type index_IrysMessageType = IrysMessageType;
1617
+ declare const index_IrysMessageType: typeof IrysMessageType;
1618
+ type index_IrysTimestamp = IrysTimestamp;
1619
+ type index_KnowledgeItem = KnowledgeItem;
1620
+ type index_KnowledgeScope = KnowledgeScope;
1621
+ declare const index_KnowledgeScope: typeof KnowledgeScope;
1622
+ type index_LoggingLevel = LoggingLevel;
1623
+ declare const index_LoggingLevel: typeof LoggingLevel;
1624
+ type index_Media = Media;
1625
+ type index_Memory = Memory;
1626
+ type index_MessageExample = MessageExample;
1627
+ type index_Model = Model;
1628
+ type index_ModelClass = ModelClass;
1629
+ declare const index_ModelClass: typeof ModelClass;
1630
+ type index_ModelConfiguration = ModelConfiguration;
1631
+ type index_ModelProviderName = ModelProviderName;
1632
+ declare const index_ModelProviderName: typeof ModelProviderName;
1633
+ type index_ModelSettings = ModelSettings;
1634
+ type index_Models = Models;
1635
+ type index_Objective = Objective;
1636
+ type index_Participant = Participant;
1637
+ type index_Plugin = Plugin;
1638
+ type index_Provider = Provider;
1639
+ type index_RAGKnowledgeItem = RAGKnowledgeItem;
1640
+ type index_Relationship = Relationship;
1641
+ type index_Room = Room;
1642
+ type index_Service = Service;
1643
+ declare const index_Service: typeof Service;
1644
+ type index_ServiceType = ServiceType;
1645
+ declare const index_ServiceType: typeof ServiceType;
1646
+ type index_State = State;
1647
+ type index_TelemetrySettings = TelemetrySettings;
1648
+ type index_TemplateType = TemplateType;
1649
+ type index_TokenizerType = TokenizerType;
1650
+ declare const index_TokenizerType: typeof TokenizerType;
1651
+ type index_TranscriptionProvider = TranscriptionProvider;
1652
+ declare const index_TranscriptionProvider: typeof TranscriptionProvider;
1653
+ type index_TwitterSpaceDecisionOptions = TwitterSpaceDecisionOptions;
1654
+ type index_UploadIrysResult = UploadIrysResult;
1655
+ type index_Validator = Validator;
1656
+ declare const index_asUUID: typeof asUUID;
1657
+ declare const index_convertContentToV1: typeof convertContentToV1;
1658
+ declare const index_convertContentToV2: typeof convertContentToV2;
1659
+ declare const index_createTemplateFunction: typeof createTemplateFunction;
1660
+ declare const index_formatActors: typeof formatActors;
1661
+ declare const index_formatMessages: typeof formatMessages;
1662
+ declare const index_formatPosts: typeof formatPosts;
1663
+ declare const index_formatTimestamp: typeof formatTimestamp;
1664
+ declare const index_fromV2ActionExample: typeof fromV2ActionExample;
1665
+ declare const index_fromV2Provider: typeof fromV2Provider;
1666
+ declare const index_fromV2State: typeof fromV2State;
1667
+ declare const index_generateUuidFromString: typeof generateUuidFromString;
1668
+ declare const index_getActorDetails: typeof getActorDetails;
1669
+ declare const index_getTemplateValues: typeof getTemplateValues;
1670
+ declare const index_processTemplate: typeof processTemplate;
1671
+ declare const index_toV2ActionExample: typeof toV2ActionExample;
1672
+ declare const index_toV2Provider: typeof toV2Provider;
1673
+ declare const index_toV2State: typeof toV2State;
1674
+ declare namespace index {
1675
+ export { type index_Account as Account, type index_Action as Action, type index_ActionExample as ActionExample, type index_ActionResponse as ActionResponse, index_ActionTimelineType as ActionTimelineType, type index_Actor as Actor, type index_Adapter as Adapter, index_AgentRuntime as AgentRuntime, index_CacheKeyPrefix as CacheKeyPrefix, type index_CacheOptions as CacheOptions, index_CacheStore as CacheStore, type index_Character as Character, type index_ChunkRow as ChunkRow, type index_Client as Client, type index_ClientInstance as ClientInstance, type index_Content as Content, type index_ConversationExample as ConversationExample, type index_DataIrysFetchedFromGQL as DataIrysFetchedFromGQL, type index_DirectoryItem as DirectoryItem, type index_EmbeddingModelSettings as EmbeddingModelSettings, type index_EvaluationExample as EvaluationExample, type index_Evaluator as Evaluator, type index_Goal as Goal, index_GoalStatus as GoalStatus, type index_GraphQLTag as GraphQLTag, type index_Handler as Handler, type index_HandlerCallback as HandlerCallback, type index_IAgentConfig as IAgentConfig, type index_IAgentRuntime as IAgentRuntime, type index_IAwsS3Service as IAwsS3Service, type index_IBrowserService as IBrowserService, type index_ICacheManager as ICacheManager, type index_IDatabaseAdapter as IDatabaseAdapter, type index_IDatabaseCacheAdapter as IDatabaseCacheAdapter, type index_IImageDescriptionService as IImageDescriptionService, type index_IIrysService as IIrysService, type index_IMemoryManager as IMemoryManager, type index_IPdfService as IPdfService, type index_IRAGKnowledgeManager as IRAGKnowledgeManager, type index_ISlackService as ISlackService, type index_ISpeechService as ISpeechService, type index_ITeeLogService as ITeeLogService, type index_ITextGenerationService as ITextGenerationService, type index_ITranscriptionService as ITranscriptionService, type index_IVideoService as IVideoService, type index_ImageModelSettings as ImageModelSettings, index_IrysDataType as IrysDataType, index_IrysMessageType as IrysMessageType, type index_IrysTimestamp as IrysTimestamp, type index_KnowledgeItem as KnowledgeItem, index_KnowledgeScope as KnowledgeScope, index_LoggingLevel as LoggingLevel, type index_Media as Media, type index_Memory as Memory, type index_MessageExample as MessageExample, type index_Model as Model, index_ModelClass as ModelClass, type index_ModelConfiguration as ModelConfiguration, index_ModelProviderName as ModelProviderName, type index_ModelSettings as ModelSettings, type index_Models as Models, type index_Objective as Objective, type index_Participant as Participant, type index_Plugin as Plugin, type index_Provider as Provider, type index_RAGKnowledgeItem as RAGKnowledgeItem, type index_Relationship as Relationship, type index_Room as Room, index_Service as Service, index_ServiceType as ServiceType, type index_State as State, type index_TelemetrySettings as TelemetrySettings, type index_TemplateType as TemplateType, index_TokenizerType as TokenizerType, index_TranscriptionProvider as TranscriptionProvider, type index_TwitterSpaceDecisionOptions as TwitterSpaceDecisionOptions, type UUID$1 as UUID, type index_UploadIrysResult as UploadIrysResult, type index_Validator as Validator, index_asUUID as asUUID, index_convertContentToV1 as convertContentToV1, index_convertContentToV2 as convertContentToV2, index_createTemplateFunction as createTemplateFunction, index_formatActors as formatActors, index_formatMessages as formatMessages, index_formatPosts as formatPosts, index_formatTimestamp as formatTimestamp, index_fromV2ActionExample as fromV2ActionExample, index_fromV2Provider as fromV2Provider, index_fromV2State as fromV2State, index_generateUuidFromString as generateUuidFromString, index_getActorDetails as getActorDetails, index_getTemplateValues as getTemplateValues, index_processTemplate as processTemplate, index_toV2ActionExample as toV2ActionExample, index_toV2Provider as toV2Provider, index_toV2State as toV2State };
1676
+ }
1677
+
1678
+ export { type Adapter as $, type ActionExample as A, ModelProviderName as B, type Content as C, type Memory as D, type EmbeddingModelSettings as E, type MessageExample as F, GoalStatus as G, type Handler as H, type ImageModelSettings as I, type HandlerCallback as J, type Action as K, type EvaluationExample as L, ModelClass as M, type Evaluator as N, type Objective as O, type Provider as P, type Account as Q, type Relationship as R, type State as S, type TemplateType as T, type UUID$1 as U, type Validator as V, type Participant as W, type Room as X, type Media as Y, type ClientInstance as Z, type Client as _, asUUID as a, type Plugin as a0, type IAgentConfig as a1, type TelemetrySettings as a2, type ModelConfiguration as a3, type Character as a4, type TwitterSpaceDecisionOptions as a5, type IDatabaseAdapter as a6, type IDatabaseCacheAdapter as a7, type IMemoryManager as a8, type IRAGKnowledgeManager as a9, type ISlackService as aA, TokenizerType as aB, TranscriptionProvider as aC, ActionTimelineType as aD, KnowledgeScope as aE, CacheKeyPrefix as aF, type DirectoryItem as aG, type ChunkRow as aH, type CacheOptions as aa, CacheStore as ab, type ICacheManager as ac, Service as ad, type IAgentRuntime as ae, type IImageDescriptionService as af, type ITranscriptionService as ag, type IVideoService as ah, type ITextGenerationService as ai, type IBrowserService as aj, type ISpeechService as ak, type IPdfService as al, type IAwsS3Service as am, type UploadIrysResult as an, type DataIrysFetchedFromGQL as ao, type GraphQLTag as ap, IrysMessageType as aq, IrysDataType as ar, type IrysTimestamp as as, type IIrysService as at, type ITeeLogService as au, ServiceType as av, LoggingLevel as aw, type KnowledgeItem as ax, type RAGKnowledgeItem as ay, type ActionResponse as az, fromV2ActionExample as b, toV2ActionExample as c, convertContentToV1 as d, convertContentToV2 as e, fromV2State as f, generateUuidFromString as g, fromV2Provider as h, index as i, toV2Provider as j, createTemplateFunction as k, getTemplateValues as l, getActorDetails as m, formatActors as n, formatMessages as o, processTemplate as p, formatTimestamp as q, formatPosts as r, AgentRuntime as s, toV2State as t, type ConversationExample as u, type Actor as v, type Goal as w, type ModelSettings as x, type Model as y, type Models as z };