@elizaos/core 1.0.7 → 1.0.9
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-4RZR75QG.js +5864 -0
- package/dist/{chunk-SIAA4J6H.js → chunk-R5U7XKVJ.js} +0 -5
- package/dist/{chunk-FEPOSPNK.js → chunk-WO7Z3GE6.js} +1 -0
- package/dist/{index-CGCNwsoH.d.ts → index-BQQJMuGB.d.ts} +119 -121
- package/dist/index.d.ts +137 -147
- package/dist/index.js +5 -7
- package/dist/specs/v1/actionExample.d.ts +1 -1
- package/dist/specs/v1/actionExample.js +1 -1
- package/dist/specs/v1/index.d.ts +1 -1
- package/dist/specs/v1/index.js +3 -3
- package/dist/specs/v1/messages.js +3 -3
- package/dist/specs/v1/posts.js +3 -3
- package/dist/specs/v1/provider.d.ts +1 -1
- package/dist/specs/v1/provider.js +1 -1
- package/dist/specs/v1/runtime.js +3 -3
- package/dist/specs/v1/state.d.ts +1 -1
- package/dist/specs/v1/state.js +1 -1
- package/dist/specs/v1/templates.d.ts +1 -1
- package/dist/specs/v1/templates.js +1 -1
- package/dist/specs/v1/types.d.ts +2 -1
- package/dist/specs/v1/types.js +2 -2
- package/dist/specs/v1/uuid.js +3 -3
- package/dist/specs/v2/index.d.ts +2 -2
- package/dist/specs/v2/index.js +3 -3
- package/dist/{types-sJIakXg4.d.ts → types-CTfMiLYi.d.ts} +19 -4
- package/package.json +3 -12
- package/dist/chunk-Y4TJIR4A.js +0 -11607
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
2
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
3
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
4
|
}) : x)(function(x) {
|
|
6
5
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
6
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
7
|
});
|
|
9
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
10
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
-
};
|
|
12
8
|
var __export = (target, all) => {
|
|
13
9
|
for (var name in all)
|
|
14
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -16,6 +12,5 @@ var __export = (target, all) => {
|
|
|
16
12
|
|
|
17
13
|
export {
|
|
18
14
|
__require,
|
|
19
|
-
__commonJS,
|
|
20
15
|
__export
|
|
21
16
|
};
|
|
@@ -105,6 +105,7 @@ var ServiceType = /* @__PURE__ */ ((ServiceType2) => {
|
|
|
105
105
|
ServiceType2["WEB_SEARCH"] = "web_search";
|
|
106
106
|
ServiceType2["EMAIL_AUTOMATION"] = "email_automation";
|
|
107
107
|
ServiceType2["NKN_CLIENT_SERVICE"] = "nkn_client_service";
|
|
108
|
+
ServiceType2["DATABASE_MIGRATION"] = "database_migration";
|
|
108
109
|
return ServiceType2;
|
|
109
110
|
})(ServiceType || {});
|
|
110
111
|
var LoggingLevel = /* @__PURE__ */ ((LoggingLevel2) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Action$1, I as IDatabaseAdapter$1, U as UUID$1, E as Entity$1, b as Component$1, M as Memory$1, L as Log$1, c as MemoryMetadata$1, W as World$1, R as Room$1, d as Participant$1, e as Relationship$1, f as Agent$1, T as Task$1, g as IAgentRuntime$1, h as Role$1, i as ServiceTypeName$1, j as Service$1, k as Route$1, l as Character$1, P as Provider$1, m as Evaluator$1, n as Plugin$1, o as RuntimeSettings$1, S as State$1, H as HandlerCallback$1, p as ModelTypeName$1, q as ModelResultMap$1, r as ModelParamsMap$1, s as TaskWorker$1, t as TargetInfo$1, C as Content$1,
|
|
1
|
+
import { a as Action$1, I as IDatabaseAdapter$1, U as UUID$1, E as Entity$1, b as Component$1, M as Memory$1, L as Log$1, c as MemoryMetadata$1, W as World$1, R as Room$1, d as Participant$1, e as Relationship$1, f as Agent$1, T as Task$1, g as IAgentRuntime$1, h as Role$1, i as ServiceTypeName$1, j as Service$1, k as Route$1, l as Character$1, P as Provider$1, m as Evaluator$1, n as Plugin$1, o as RuntimeSettings$1, S as State$1, H as HandlerCallback$1, p as ModelTypeName$1, q as ModelResultMap$1, r as ModelParamsMap$1, s as TaskWorker$1, t as SendHandlerFunction$1, u as TargetInfo$1, C as Content$1, v as TemplateType$1, w as ActionEventPayload$1, A as ActionExample$1, x as AgentStatus$1, y as AudioProcessingParams$1, B as BaseMetadata$1, z as BaseModelParams$1, D as CacheKeyPrefix$1, F as ChannelClearedPayload$1, G as ChannelType$1, J as ChunkRow$1, K as ComponentData, N as ContentType$1, O as ControlMessage$1, Q as CustomMetadata$1, V as DbConnection$1, X as DeriveKeyAttestationData, Y as DescriptionMetadata$1, Z as DetokenizeTextParams$1, _ as DirectoryItem$1, $ as DocumentMetadata$1, a0 as EmbeddingSearchResult$1, a1 as EnhancedState$1, a2 as EntityPayload$1, a3 as EvaluationExample$1, a4 as EvaluatorEventPayload$1, a5 as EventDataObject, a6 as EventHandler$1, a7 as EventPayload$1, a8 as EventPayloadMap$1, a9 as EventType$1, aa as FragmentMetadata$1, ab as GenerateTextParams$1, ac as Handler$1, ad as ImageDescriptionParams$1, ae as ImageGenerationParams$1, af as InvokePayload$1, ag as IsValidServiceType$1, ah as JSONSchema$1, ai as KnowledgeItem$1, aj as KnowledgeScope$1, ak as Media$1, al as MemoryRetrievalOptions$1, am as MemoryScope$1, an as MemorySearchOptions$1, ao as MemoryType$1, ap as MemoryTypeAlias$1, aq as MessageExample$1, ar as MessageMemory$1, as as MessageMetadata$1, at as MessagePayload$1, au as MessageReceivedHandlerParams$1, av as MetadataObject, aw as ModelEventPayload$1, ax as ModelHandler$1, ay as ModelType$1, az as MultiRoomMemoryOptions$1, aA as ObjectGenerationParams$1, aB as OnboardingConfig$1, aC as PlatformPrefix$1, aD as PluginEvents$1, aE as Project$1, aF as ProjectAgent$1, aG as ProviderResult$1, aH as RemoteAttestationMessage, aI as RemoteAttestationQuote, aJ as RoomMetadata$1, aK as RunEventPayload$1, aL as SOCKET_MESSAGE_TYPE$1, aM as ServiceClassMap$1, aN as ServiceConfig, aO as ServiceError$1, aP as ServiceInstance$1, aQ as ServiceRegistry$1, aR as ServiceType$1, aS as ServiceTypeRegistry$1, aT as ServiceTypeValue$1, aU as Setting$1, aV as StateArray$1, aW as StateObject$1, aX as StateValue$1, aY as TEEMode, aZ as TaskMetadata$1, a_ as TeeAgent, a$ as TeePluginConfig, b0 as TeeType, b1 as TeeVendorConfig, b2 as TestCase$1, b3 as TestSuite$1, b4 as TextEmbeddingParams$1, b5 as TextGenerationParams$1, b6 as TextToSpeechParams$1, b7 as TokenizeTextParams$1, b8 as TranscriptionParams$1, b9 as TypedEventHandler$1, ba as TypedService$1, bb as TypedServiceClass$1, bc as UnifiedMemoryOptions$1, bd as UnifiedSearchOptions$1, be as VECTOR_DIMS$1, bf as Validator$1, bg as VideoProcessingParams$1, bh as WorldPayload$1, bi as WorldSettings$1, bj as asUUID$1, bk as createMessageMemory$1, bl as createServiceError$1, bm as getMemoryText$1, bn as getTypedService$1, bo as isCustomMetadata$1, bp as isDescriptionMetadata$1, bq as isDocumentMemory$1, br as isDocumentMetadata$1, bs as isFragmentMemory$1, bt as isFragmentMetadata$1, bu as isMessageMetadata$1 } from './types-CTfMiLYi.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Defines a custom type UUID representing a universally unique identifier
|
|
@@ -24,6 +24,8 @@ interface Content {
|
|
|
24
24
|
providers?: string[];
|
|
25
25
|
/** Optional source/origin of the content */
|
|
26
26
|
source?: string;
|
|
27
|
+
/** Optional target/destination for responses */
|
|
28
|
+
target?: string;
|
|
27
29
|
/** URL of the original message/post (e.g. tweet URL, Discord message link) */
|
|
28
30
|
url?: string;
|
|
29
31
|
/** UUID of parent message if this is a reply/thread */
|
|
@@ -64,6 +66,11 @@ declare enum ContentType {
|
|
|
64
66
|
DOCUMENT = "document",
|
|
65
67
|
LINK = "link"
|
|
66
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* A generic type for metadata objects, allowing for arbitrary key-value pairs.
|
|
71
|
+
* This encourages consumers to perform type checking or casting.
|
|
72
|
+
*/
|
|
73
|
+
type Metadata = Record<string, unknown>;
|
|
67
74
|
|
|
68
75
|
/**
|
|
69
76
|
* Represents the current state or context of a conversation or agent interaction.
|
|
@@ -355,9 +362,7 @@ interface Component {
|
|
|
355
362
|
sourceEntityId: UUID;
|
|
356
363
|
type: string;
|
|
357
364
|
createdAt: number;
|
|
358
|
-
data:
|
|
359
|
-
[key: string]: any;
|
|
360
|
-
};
|
|
365
|
+
data: Metadata;
|
|
361
366
|
}
|
|
362
367
|
/**
|
|
363
368
|
* Represents a user account
|
|
@@ -368,9 +373,7 @@ interface Entity {
|
|
|
368
373
|
/** Names of the entity */
|
|
369
374
|
names: string[];
|
|
370
375
|
/** Optional additional metadata */
|
|
371
|
-
metadata?:
|
|
372
|
-
[key: string]: any;
|
|
373
|
-
};
|
|
376
|
+
metadata?: Metadata;
|
|
374
377
|
/** Agent ID this account is related to, for agents should be themselves */
|
|
375
378
|
agentId: UUID;
|
|
376
379
|
/** Optional array of components */
|
|
@@ -403,7 +406,6 @@ type World = {
|
|
|
403
406
|
[key: string]: unknown;
|
|
404
407
|
};
|
|
405
408
|
};
|
|
406
|
-
type RoomMetadata = Record<string, unknown>;
|
|
407
409
|
declare enum ChannelType {
|
|
408
410
|
SELF = "SELF",// Messages to self
|
|
409
411
|
DM = "DM",// Direct messages between two participants
|
|
@@ -425,7 +427,10 @@ type Room = {
|
|
|
425
427
|
channelId?: string;
|
|
426
428
|
serverId?: string;
|
|
427
429
|
worldId?: UUID;
|
|
428
|
-
metadata?:
|
|
430
|
+
metadata?: Metadata;
|
|
431
|
+
};
|
|
432
|
+
type RoomMetadata = {
|
|
433
|
+
[key: string]: unknown;
|
|
429
434
|
};
|
|
430
435
|
/**
|
|
431
436
|
* Room participant with account details
|
|
@@ -451,19 +456,10 @@ interface Relationship {
|
|
|
451
456
|
/** Tags for filtering/categorizing relationships */
|
|
452
457
|
tags: string[];
|
|
453
458
|
/** Additional metadata about the relationship */
|
|
454
|
-
metadata:
|
|
455
|
-
[key: string]: any;
|
|
456
|
-
};
|
|
459
|
+
metadata: Metadata;
|
|
457
460
|
/** Optional creation timestamp */
|
|
458
461
|
createdAt?: string;
|
|
459
462
|
}
|
|
460
|
-
/**
|
|
461
|
-
* A generic type for the `data` field within a `Component`.
|
|
462
|
-
* While `Record<string, unknown>` allows for flexibility, developers are encouraged
|
|
463
|
-
* to define more specific types for component data where possible to improve type safety
|
|
464
|
-
* and code maintainability. This type serves as a base for various component implementations.
|
|
465
|
-
*/
|
|
466
|
-
type ComponentData = Record<string, unknown>;
|
|
467
463
|
|
|
468
464
|
/**
|
|
469
465
|
* Example message for demonstration
|
|
@@ -650,7 +646,13 @@ interface IDatabaseAdapter {
|
|
|
650
646
|
/** Database instance */
|
|
651
647
|
db: any;
|
|
652
648
|
/** Initialize database connection */
|
|
649
|
+
initialize(config?: any): Promise<void>;
|
|
650
|
+
/** Initialize database connection */
|
|
653
651
|
init(): Promise<void>;
|
|
652
|
+
/** Run database migrations */
|
|
653
|
+
runMigrations(schema?: any, pluginName?: string): Promise<void>;
|
|
654
|
+
/** Check if the database connection is ready */
|
|
655
|
+
isReady(): Promise<boolean>;
|
|
654
656
|
/** Close database connection */
|
|
655
657
|
close(): Promise<void>;
|
|
656
658
|
getConnection(): Promise<any>;
|
|
@@ -742,6 +744,7 @@ interface IDatabaseAdapter {
|
|
|
742
744
|
metadata?: MemoryMetadata;
|
|
743
745
|
}): Promise<boolean>;
|
|
744
746
|
deleteMemory(memoryId: UUID): Promise<void>;
|
|
747
|
+
deleteManyMemories(memoryIds: UUID[]): Promise<void>;
|
|
745
748
|
deleteAllMemories(roomId: UUID, tableName: string): Promise<void>;
|
|
746
749
|
countMemories(roomId: UUID, unique?: boolean, tableName?: string): Promise<number>;
|
|
747
750
|
createWorld(world: World): Promise<UUID>;
|
|
@@ -772,9 +775,7 @@ interface IDatabaseAdapter {
|
|
|
772
775
|
sourceEntityId: UUID;
|
|
773
776
|
targetEntityId: UUID;
|
|
774
777
|
tags?: string[];
|
|
775
|
-
metadata?:
|
|
776
|
-
[key: string]: any;
|
|
777
|
-
};
|
|
778
|
+
metadata?: Metadata;
|
|
778
779
|
}): Promise<boolean>;
|
|
779
780
|
/**
|
|
780
781
|
* Updates an existing relationship between two entities.
|
|
@@ -883,13 +884,6 @@ interface UnifiedSearchOptions extends UnifiedMemoryOptions {
|
|
|
883
884
|
* This `unknown` type serves as a placeholder in the abstract `IDatabaseAdapter`.
|
|
884
885
|
*/
|
|
885
886
|
type DbConnection = unknown;
|
|
886
|
-
/**
|
|
887
|
-
* A generic type for metadata objects, often used in various parts of the system like
|
|
888
|
-
* `Relationship` metadata or other extensible data structures.
|
|
889
|
-
* It allows for arbitrary key-value pairs where values are of `unknown` type,
|
|
890
|
-
* encouraging consumers to perform type checking or casting.
|
|
891
|
-
*/
|
|
892
|
-
type MetadataObject = Record<string, unknown>;
|
|
893
887
|
declare const VECTOR_DIMS: {
|
|
894
888
|
readonly SMALL: 384;
|
|
895
889
|
readonly MEDIUM: 512;
|
|
@@ -899,6 +893,49 @@ declare const VECTOR_DIMS: {
|
|
|
899
893
|
readonly XXXL: 3072;
|
|
900
894
|
};
|
|
901
895
|
|
|
896
|
+
/**
|
|
897
|
+
* Information describing the target of a message.
|
|
898
|
+
*/
|
|
899
|
+
interface TargetInfo {
|
|
900
|
+
source: string;
|
|
901
|
+
roomId?: UUID;
|
|
902
|
+
channelId?: string;
|
|
903
|
+
serverId?: string;
|
|
904
|
+
entityId?: UUID;
|
|
905
|
+
threadId?: string;
|
|
906
|
+
}
|
|
907
|
+
/**
|
|
908
|
+
* Function signature for handlers responsible for sending messages to specific platforms.
|
|
909
|
+
*/
|
|
910
|
+
type SendHandlerFunction = (runtime: IAgentRuntime, target: TargetInfo, content: Content) => Promise<void>;
|
|
911
|
+
declare enum SOCKET_MESSAGE_TYPE {
|
|
912
|
+
ROOM_JOINING = 1,
|
|
913
|
+
SEND_MESSAGE = 2,
|
|
914
|
+
MESSAGE = 3,
|
|
915
|
+
ACK = 4,
|
|
916
|
+
THINKING = 5,
|
|
917
|
+
CONTROL = 6
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* Interface for control messages sent from the backend to the frontend
|
|
921
|
+
* to manage UI state and interaction capabilities
|
|
922
|
+
*/
|
|
923
|
+
interface ControlMessage {
|
|
924
|
+
/** Message type identifier */
|
|
925
|
+
type: 'control';
|
|
926
|
+
/** Control message payload */
|
|
927
|
+
payload: {
|
|
928
|
+
/** Action to perform */
|
|
929
|
+
action: 'disable_input' | 'enable_input';
|
|
930
|
+
/** Optional target element identifier */
|
|
931
|
+
target?: string;
|
|
932
|
+
/** Additional optional parameters */
|
|
933
|
+
[key: string]: unknown;
|
|
934
|
+
};
|
|
935
|
+
/** Room ID to ensure signal is directed to the correct chat window */
|
|
936
|
+
roomId: UUID;
|
|
937
|
+
}
|
|
938
|
+
|
|
902
939
|
type ModelTypeName = (typeof ModelType)[keyof typeof ModelType] | string;
|
|
903
940
|
/**
|
|
904
941
|
* Defines the recognized types of models that the agent runtime can use.
|
|
@@ -1164,49 +1201,6 @@ interface ModelHandler {
|
|
|
1164
1201
|
registrationOrder?: number;
|
|
1165
1202
|
}
|
|
1166
1203
|
|
|
1167
|
-
/**
|
|
1168
|
-
* Information describing the target of a message.
|
|
1169
|
-
*/
|
|
1170
|
-
interface TargetInfo {
|
|
1171
|
-
source: string;
|
|
1172
|
-
roomId?: UUID;
|
|
1173
|
-
channelId?: string;
|
|
1174
|
-
serverId?: string;
|
|
1175
|
-
entityId?: UUID;
|
|
1176
|
-
threadId?: string;
|
|
1177
|
-
}
|
|
1178
|
-
/**
|
|
1179
|
-
* Function signature for handlers responsible for sending messages to specific platforms.
|
|
1180
|
-
*/
|
|
1181
|
-
type SendHandlerFunction = (runtime: IAgentRuntime, target: TargetInfo, content: Content) => Promise<void>;
|
|
1182
|
-
declare enum SOCKET_MESSAGE_TYPE {
|
|
1183
|
-
ROOM_JOINING = 1,
|
|
1184
|
-
SEND_MESSAGE = 2,
|
|
1185
|
-
MESSAGE = 3,
|
|
1186
|
-
ACK = 4,
|
|
1187
|
-
THINKING = 5,
|
|
1188
|
-
CONTROL = 6
|
|
1189
|
-
}
|
|
1190
|
-
/**
|
|
1191
|
-
* Interface for control messages sent from the backend to the frontend
|
|
1192
|
-
* to manage UI state and interaction capabilities
|
|
1193
|
-
*/
|
|
1194
|
-
interface ControlMessage {
|
|
1195
|
-
/** Message type identifier */
|
|
1196
|
-
type: 'control';
|
|
1197
|
-
/** Control message payload */
|
|
1198
|
-
payload: {
|
|
1199
|
-
/** Action to perform */
|
|
1200
|
-
action: 'disable_input' | 'enable_input';
|
|
1201
|
-
/** Optional target element identifier */
|
|
1202
|
-
target?: string;
|
|
1203
|
-
/** Additional optional parameters */
|
|
1204
|
-
[key: string]: unknown;
|
|
1205
|
-
};
|
|
1206
|
-
/** Room ID to ensure signal is directed to the correct chat window */
|
|
1207
|
-
roomId: UUID;
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
1204
|
/**
|
|
1211
1205
|
* Standard event types across all platforms
|
|
1212
1206
|
*/
|
|
@@ -1221,6 +1215,8 @@ declare enum EventType {
|
|
|
1221
1215
|
ROOM_LEFT = "ROOM_LEFT",
|
|
1222
1216
|
MESSAGE_RECEIVED = "MESSAGE_RECEIVED",
|
|
1223
1217
|
MESSAGE_SENT = "MESSAGE_SENT",
|
|
1218
|
+
MESSAGE_DELETED = "MESSAGE_DELETED",
|
|
1219
|
+
CHANNEL_CLEARED = "CHANNEL_CLEARED",
|
|
1224
1220
|
VOICE_MESSAGE_RECEIVED = "VOICE_MESSAGE_RECEIVED",
|
|
1225
1221
|
VOICE_MESSAGE_SENT = "VOICE_MESSAGE_SENT",
|
|
1226
1222
|
REACTION_RECEIVED = "REACTION_RECEIVED",
|
|
@@ -1281,6 +1277,14 @@ interface MessagePayload extends EventPayload {
|
|
|
1281
1277
|
callback?: HandlerCallback;
|
|
1282
1278
|
onComplete?: () => void;
|
|
1283
1279
|
}
|
|
1280
|
+
/**
|
|
1281
|
+
* Payload for channel cleared events
|
|
1282
|
+
*/
|
|
1283
|
+
interface ChannelClearedPayload extends EventPayload {
|
|
1284
|
+
roomId: UUID;
|
|
1285
|
+
channelId: string;
|
|
1286
|
+
memoryCount: number;
|
|
1287
|
+
}
|
|
1284
1288
|
/**
|
|
1285
1289
|
* Payload for events that are invoked without a message
|
|
1286
1290
|
*/
|
|
@@ -1356,6 +1360,8 @@ interface EventPayloadMap {
|
|
|
1356
1360
|
[EventType.ENTITY_UPDATED]: EntityPayload;
|
|
1357
1361
|
[EventType.MESSAGE_RECEIVED]: MessagePayload;
|
|
1358
1362
|
[EventType.MESSAGE_SENT]: MessagePayload;
|
|
1363
|
+
[EventType.MESSAGE_DELETED]: MessagePayload;
|
|
1364
|
+
[EventType.CHANNEL_CLEARED]: ChannelClearedPayload;
|
|
1359
1365
|
[EventType.REACTION_RECEIVED]: MessagePayload;
|
|
1360
1366
|
[EventType.POST_GENERATED]: InvokePayload;
|
|
1361
1367
|
[EventType.INTERACTION_RECEIVED]: MessagePayload;
|
|
@@ -1373,19 +1379,12 @@ interface EventPayloadMap {
|
|
|
1373
1379
|
*/
|
|
1374
1380
|
type EventHandler<T extends keyof EventPayloadMap> = (payload: EventPayloadMap[T]) => Promise<void>;
|
|
1375
1381
|
/**
|
|
1376
|
-
*
|
|
1377
|
-
* This type is often used in `TypedEventHandler` to provide a flexible yet somewhat
|
|
1378
|
-
* structured way to handle event data. Specific event handlers might cast this to a
|
|
1379
|
-
* more concrete type based on the event being processed.
|
|
1380
|
-
*/
|
|
1381
|
-
type EventDataObject = Record<string, unknown>;
|
|
1382
|
-
/**
|
|
1383
|
-
* Defines a more specific type for event handlers, expecting an `EventDataObject`.
|
|
1382
|
+
* Defines a more specific type for event handlers, expecting an `Metadata`.
|
|
1384
1383
|
* This aims to improve upon generic 'any' type handlers, providing a clearer contract
|
|
1385
1384
|
* for functions that respond to events emitted within the agent runtime (see `emitEvent` in `AgentRuntime`).
|
|
1386
1385
|
* Handlers can be synchronous or asynchronous.
|
|
1387
1386
|
*/
|
|
1388
|
-
type TypedEventHandler = (data:
|
|
1387
|
+
type TypedEventHandler = (data: Metadata) => Promise<void> | void;
|
|
1389
1388
|
|
|
1390
1389
|
/**
|
|
1391
1390
|
* Core service type registry that can be extended by plugins via module augmentation.
|
|
@@ -1410,10 +1409,10 @@ interface ServiceTypeRegistry {
|
|
|
1410
1409
|
EMAIL: 'email';
|
|
1411
1410
|
TEE: 'tee';
|
|
1412
1411
|
TASK: 'task';
|
|
1413
|
-
INSTRUMENTATION: 'instrumentation';
|
|
1414
1412
|
WALLET: 'wallet';
|
|
1415
1413
|
LP_POOL: 'lp_pool';
|
|
1416
1414
|
TOKEN_DATA: 'token_data';
|
|
1415
|
+
DATABASE_MIGRATION: 'database_migration';
|
|
1417
1416
|
}
|
|
1418
1417
|
/**
|
|
1419
1418
|
* Type for service names that includes both core services and any plugin-registered services
|
|
@@ -1452,7 +1451,7 @@ type ServiceRegistry<T extends ServiceTypeName = ServiceTypeName> = Map<T, Servi
|
|
|
1452
1451
|
* Enumerates the recognized types of services that can be registered and used by the agent runtime.
|
|
1453
1452
|
* Services provide specialized functionalities like audio transcription, video processing,
|
|
1454
1453
|
* web browsing, PDF handling, file storage (e.g., AWS S3), web search, email integration,
|
|
1455
|
-
* secure execution via TEE (Trusted Execution Environment), task management
|
|
1454
|
+
* secure execution via TEE (Trusted Execution Environment), and task management.
|
|
1456
1455
|
* This constant is used in `AgentRuntime` for service registration and retrieval (e.g., `getService`).
|
|
1457
1456
|
* Each service typically implements the `Service` abstract class or a more specific interface like `IVideoService`.
|
|
1458
1457
|
*/
|
|
@@ -1466,10 +1465,10 @@ declare const ServiceType: {
|
|
|
1466
1465
|
readonly EMAIL: "email";
|
|
1467
1466
|
readonly TEE: "tee";
|
|
1468
1467
|
readonly TASK: "task";
|
|
1469
|
-
readonly INSTRUMENTATION: "instrumentation";
|
|
1470
1468
|
readonly WALLET: "wallet";
|
|
1471
1469
|
readonly LP_POOL: "lp_pool";
|
|
1472
1470
|
readonly TOKEN_DATA: "token_data";
|
|
1471
|
+
readonly DATABASE_MIGRATION: "database_migration";
|
|
1473
1472
|
};
|
|
1474
1473
|
/**
|
|
1475
1474
|
* Client instance
|
|
@@ -1484,9 +1483,7 @@ declare abstract class Service {
|
|
|
1484
1483
|
/** Service name */
|
|
1485
1484
|
abstract capabilityDescription: string;
|
|
1486
1485
|
/** Service configuration */
|
|
1487
|
-
config?:
|
|
1488
|
-
[key: string]: any;
|
|
1489
|
-
};
|
|
1486
|
+
config?: Metadata;
|
|
1490
1487
|
/** Start service connection */
|
|
1491
1488
|
static start(_runtime: IAgentRuntime): Promise<Service>;
|
|
1492
1489
|
/** Stop service connection */
|
|
@@ -1497,11 +1494,7 @@ declare abstract class Service {
|
|
|
1497
1494
|
* @template ConfigType The configuration type for this service
|
|
1498
1495
|
* @template ResultType The result type returned by the service operations
|
|
1499
1496
|
*/
|
|
1500
|
-
interface TypedService<ConfigType extends {
|
|
1501
|
-
[key: string]: any;
|
|
1502
|
-
} = {
|
|
1503
|
-
[key: string]: any;
|
|
1504
|
-
}, ResultType = unknown> extends Service {
|
|
1497
|
+
interface TypedService<ConfigType extends Metadata = Metadata, ResultType = unknown> extends Service {
|
|
1505
1498
|
/**
|
|
1506
1499
|
* The configuration for this service instance
|
|
1507
1500
|
*/
|
|
@@ -1533,13 +1526,6 @@ interface ServiceError {
|
|
|
1533
1526
|
* Safely create a ServiceError from any caught error
|
|
1534
1527
|
*/
|
|
1535
1528
|
declare function createServiceError(error: unknown, code?: string): ServiceError;
|
|
1536
|
-
/**
|
|
1537
|
-
* A generic type for service configurations.
|
|
1538
|
-
* Services (like `IVideoService`, `IBrowserService`) can have their own specific configuration
|
|
1539
|
-
* structures. This type allows for a flexible way to pass configuration objects,
|
|
1540
|
-
* typically used during service initialization within a plugin or the `AgentRuntime`.
|
|
1541
|
-
*/
|
|
1542
|
-
type ServiceConfig = Record<string, unknown>;
|
|
1543
1529
|
|
|
1544
1530
|
/**
|
|
1545
1531
|
* Represents a test case for evaluating agent or plugin functionality.
|
|
@@ -1612,7 +1598,9 @@ interface Plugin {
|
|
|
1612
1598
|
routes?: Route[];
|
|
1613
1599
|
tests?: TestSuite[];
|
|
1614
1600
|
dependencies?: string[];
|
|
1601
|
+
testDependencies?: string[];
|
|
1615
1602
|
priority?: number;
|
|
1603
|
+
schema?: any;
|
|
1616
1604
|
}
|
|
1617
1605
|
interface ProjectAgent {
|
|
1618
1606
|
character: Character;
|
|
@@ -1674,14 +1662,6 @@ interface IAgentRuntime extends IDatabaseAdapter {
|
|
|
1674
1662
|
ensureWorldExists(world: World): Promise<void>;
|
|
1675
1663
|
ensureRoomExists(room: Room): Promise<void>;
|
|
1676
1664
|
composeState(message: Memory, includeList?: string[], onlyInclude?: boolean, skipCache?: boolean): Promise<State>;
|
|
1677
|
-
/**
|
|
1678
|
-
* Use a model with strongly typed parameters and return values based on model type
|
|
1679
|
-
* @template T - The model type to use
|
|
1680
|
-
* @template R - The expected return type, defaults to the type defined in ModelResultMap[T]
|
|
1681
|
-
* @param {T} modelType - The type of model to use
|
|
1682
|
-
* @param {ModelParamsMap[T] | any} params - The parameters for the model, typed based on model type
|
|
1683
|
-
* @returns {Promise<R>} - The model result, typed based on the provided generic type parameter
|
|
1684
|
-
*/
|
|
1685
1665
|
useModel<T extends ModelTypeName, R = ModelResultMap[T]>(modelType: T, params: Omit<ModelParamsMap[T], 'runtime'> | any): Promise<R>;
|
|
1686
1666
|
registerModel(modelType: ModelTypeName | string, handler: (params: any) => Promise<any>, provider: string, priority?: number): void;
|
|
1687
1667
|
getModel(modelType: ModelTypeName | string): ((runtime: IAgentRuntime, params: any) => Promise<any>) | undefined;
|
|
@@ -1692,24 +1672,17 @@ interface IAgentRuntime extends IDatabaseAdapter {
|
|
|
1692
1672
|
getTaskWorker(name: string): TaskWorker | undefined;
|
|
1693
1673
|
stop(): Promise<void>;
|
|
1694
1674
|
addEmbeddingToMemory(memory: Memory): Promise<Memory>;
|
|
1675
|
+
createRunId(): UUID;
|
|
1676
|
+
startRun(): UUID;
|
|
1677
|
+
endRun(): void;
|
|
1678
|
+
getCurrentRunId(): UUID;
|
|
1695
1679
|
getEntityById(entityId: UUID): Promise<Entity | null>;
|
|
1696
1680
|
getRoom(roomId: UUID): Promise<Room | null>;
|
|
1697
1681
|
createEntity(entity: Entity): Promise<boolean>;
|
|
1698
1682
|
createRoom({ id, name, source, type, channelId, serverId, worldId }: Room): Promise<UUID>;
|
|
1699
1683
|
addParticipant(entityId: UUID, roomId: UUID): Promise<boolean>;
|
|
1700
1684
|
getRooms(worldId: UUID): Promise<Room[]>;
|
|
1701
|
-
/**
|
|
1702
|
-
* Registers a handler function responsible for sending messages to a specific source/platform.
|
|
1703
|
-
* @param source - The unique identifier string for the source (e.g., 'discord', 'telegram').
|
|
1704
|
-
* @param handler - The SendHandlerFunction to be called for this source.
|
|
1705
|
-
*/
|
|
1706
1685
|
registerSendHandler(source: string, handler: SendHandlerFunction): void;
|
|
1707
|
-
/**
|
|
1708
|
-
* Sends a message to a specified target using the appropriate registered handler.
|
|
1709
|
-
* @param target - Information describing the target recipient and platform.
|
|
1710
|
-
* @param content - The message content to send.
|
|
1711
|
-
* @returns Promise resolving when the message sending process is initiated or completed.
|
|
1712
|
-
*/
|
|
1713
1686
|
sendMessageToTarget(target: TargetInfo, content: Content): Promise<void>;
|
|
1714
1687
|
}
|
|
1715
1688
|
|
|
@@ -2109,6 +2082,12 @@ declare abstract class DatabaseAdapter<DB = unknown> implements IDatabaseAdapter
|
|
|
2109
2082
|
* @returns A Promise that resolves when the memory has been removed.
|
|
2110
2083
|
*/
|
|
2111
2084
|
abstract deleteMemory(memoryId: UUID$1): Promise<void>;
|
|
2085
|
+
/**
|
|
2086
|
+
* Removes multiple memories from the database in a single batch operation.
|
|
2087
|
+
* @param memoryIds An array of UUIDs of the memories to remove.
|
|
2088
|
+
* @returns A Promise that resolves when all memories have been removed.
|
|
2089
|
+
*/
|
|
2090
|
+
abstract deleteManyMemories(memoryIds: UUID$1[]): Promise<void>;
|
|
2112
2091
|
/**
|
|
2113
2092
|
* Removes all memories associated with a specific room.
|
|
2114
2093
|
* @param roomId The UUID of the room whose memories should be removed.
|
|
@@ -2670,6 +2649,7 @@ declare class AgentRuntime implements IAgentRuntime$1 {
|
|
|
2670
2649
|
metadata?: MemoryMetadata$1;
|
|
2671
2650
|
}): Promise<boolean>;
|
|
2672
2651
|
deleteMemory(memoryId: UUID$1): Promise<void>;
|
|
2652
|
+
deleteManyMemories(memoryIds: UUID$1[]): Promise<void>;
|
|
2673
2653
|
deleteAllMemories(roomId: UUID$1, tableName: string): Promise<void>;
|
|
2674
2654
|
countMemories(roomId: UUID$1, unique?: boolean, tableName?: string): Promise<number>;
|
|
2675
2655
|
getLogs(params: {
|
|
@@ -2735,13 +2715,27 @@ declare class AgentRuntime implements IAgentRuntime$1 {
|
|
|
2735
2715
|
action: 'enable_input' | 'disable_input';
|
|
2736
2716
|
target?: string;
|
|
2737
2717
|
}): Promise<void>;
|
|
2738
|
-
|
|
2718
|
+
/**
|
|
2719
|
+
* Register a message send handler for a specific source
|
|
2720
|
+
* @param source - The source identifier (e.g., 'discord', 'telegram')
|
|
2721
|
+
* @param handler - The handler function to send messages
|
|
2722
|
+
*/
|
|
2723
|
+
registerSendHandler(source: string, handler: SendHandlerFunction$1): void;
|
|
2724
|
+
/**
|
|
2725
|
+
* Send a message to a specific target
|
|
2726
|
+
* @param target - The target information including source and channel/user ID
|
|
2727
|
+
* @param content - The message content to send
|
|
2728
|
+
*/
|
|
2739
2729
|
sendMessageToTarget(target: TargetInfo$1, content: Content$1): Promise<void>;
|
|
2740
2730
|
getMemoriesByWorldId(params: {
|
|
2741
2731
|
worldId: UUID$1;
|
|
2742
2732
|
count?: number;
|
|
2743
2733
|
tableName?: string;
|
|
2744
2734
|
}): Promise<Memory$1[]>;
|
|
2735
|
+
createRunId(): UUID$1;
|
|
2736
|
+
startRun(): UUID$1;
|
|
2737
|
+
endRun(): void;
|
|
2738
|
+
getCurrentRunId(): UUID$1;
|
|
2745
2739
|
}
|
|
2746
2740
|
|
|
2747
2741
|
/**
|
|
@@ -2958,9 +2952,12 @@ declare function defineService<T extends Service = Service>(definition: ServiceD
|
|
|
2958
2952
|
|
|
2959
2953
|
type v2_AgentRuntime = AgentRuntime;
|
|
2960
2954
|
declare const v2_AgentRuntime: typeof AgentRuntime;
|
|
2955
|
+
declare const v2_ComponentData: typeof ComponentData;
|
|
2961
2956
|
type v2_DatabaseAdapter<DB = unknown> = DatabaseAdapter<DB>;
|
|
2962
2957
|
declare const v2_DatabaseAdapter: typeof DatabaseAdapter;
|
|
2963
2958
|
declare const v2_DeriveKeyAttestationData: typeof DeriveKeyAttestationData;
|
|
2959
|
+
declare const v2_EventDataObject: typeof EventDataObject;
|
|
2960
|
+
declare const v2_MetadataObject: typeof MetadataObject;
|
|
2964
2961
|
declare const v2_RemoteAttestationMessage: typeof RemoteAttestationMessage;
|
|
2965
2962
|
declare const v2_RemoteAttestationQuote: typeof RemoteAttestationQuote;
|
|
2966
2963
|
type v2_Semaphore = Semaphore;
|
|
@@ -2968,6 +2965,7 @@ declare const v2_Semaphore: typeof Semaphore;
|
|
|
2968
2965
|
type v2_ServerOwnershipState = ServerOwnershipState;
|
|
2969
2966
|
type v2_ServiceBuilder<TService extends Service$1 = Service$1> = ServiceBuilder<TService>;
|
|
2970
2967
|
declare const v2_ServiceBuilder: typeof ServiceBuilder;
|
|
2968
|
+
declare const v2_ServiceConfig: typeof ServiceConfig;
|
|
2971
2969
|
type v2_ServiceDefinition<T extends Service$1 = Service$1> = ServiceDefinition<T>;
|
|
2972
2970
|
declare const v2_TEEMode: typeof TEEMode;
|
|
2973
2971
|
declare const v2_TeeAgent: typeof TeeAgent;
|
|
@@ -3022,7 +3020,7 @@ declare const v2_unsaltWorldSettings: typeof unsaltWorldSettings;
|
|
|
3022
3020
|
declare const v2_updateWorldSettings: typeof updateWorldSettings;
|
|
3023
3021
|
declare const v2_validateUuid: typeof validateUuid;
|
|
3024
3022
|
declare namespace v2 {
|
|
3025
|
-
export { Action$1 as Action, ActionEventPayload$1 as ActionEventPayload, ActionExample$1 as ActionExample, Agent$1 as Agent, v2_AgentRuntime as AgentRuntime, AgentStatus$1 as AgentStatus, AudioProcessingParams$1 as AudioProcessingParams, BaseMetadata$1 as BaseMetadata, BaseModelParams$1 as BaseModelParams, CacheKeyPrefix$1 as CacheKeyPrefix, ChannelType$1 as ChannelType, Character$1 as Character, ChunkRow$1 as ChunkRow, Component$1 as Component,
|
|
3023
|
+
export { Action$1 as Action, ActionEventPayload$1 as ActionEventPayload, ActionExample$1 as ActionExample, Agent$1 as Agent, v2_AgentRuntime as AgentRuntime, AgentStatus$1 as AgentStatus, AudioProcessingParams$1 as AudioProcessingParams, BaseMetadata$1 as BaseMetadata, BaseModelParams$1 as BaseModelParams, CacheKeyPrefix$1 as CacheKeyPrefix, ChannelClearedPayload$1 as ChannelClearedPayload, ChannelType$1 as ChannelType, Character$1 as Character, ChunkRow$1 as ChunkRow, Component$1 as Component, v2_ComponentData as ComponentData, Content$1 as Content, ContentType$1 as ContentType, ControlMessage$1 as ControlMessage, CustomMetadata$1 as CustomMetadata, v2_DatabaseAdapter as DatabaseAdapter, DbConnection$1 as DbConnection, v2_DeriveKeyAttestationData as DeriveKeyAttestationData, DescriptionMetadata$1 as DescriptionMetadata, DetokenizeTextParams$1 as DetokenizeTextParams, DirectoryItem$1 as DirectoryItem, DocumentMetadata$1 as DocumentMetadata, EmbeddingSearchResult$1 as EmbeddingSearchResult, EnhancedState$1 as EnhancedState, Entity$1 as Entity, EntityPayload$1 as EntityPayload, EvaluationExample$1 as EvaluationExample, Evaluator$1 as Evaluator, EvaluatorEventPayload$1 as EvaluatorEventPayload, v2_EventDataObject as EventDataObject, EventHandler$1 as EventHandler, EventPayload$1 as EventPayload, EventPayloadMap$1 as EventPayloadMap, EventType$1 as EventType, FragmentMetadata$1 as FragmentMetadata, GenerateTextParams$1 as GenerateTextParams, Handler$1 as Handler, HandlerCallback$1 as HandlerCallback, IAgentRuntime$1 as IAgentRuntime, IDatabaseAdapter$1 as IDatabaseAdapter, ImageDescriptionParams$1 as ImageDescriptionParams, ImageGenerationParams$1 as ImageGenerationParams, InvokePayload$1 as InvokePayload, IsValidServiceType$1 as IsValidServiceType, JSONSchema$1 as JSONSchema, KnowledgeItem$1 as KnowledgeItem, KnowledgeScope$1 as KnowledgeScope, Log$1 as Log, Media$1 as Media, Memory$1 as Memory, MemoryMetadata$1 as MemoryMetadata, MemoryRetrievalOptions$1 as MemoryRetrievalOptions, MemoryScope$1 as MemoryScope, MemorySearchOptions$1 as MemorySearchOptions, MemoryType$1 as MemoryType, MemoryTypeAlias$1 as MemoryTypeAlias, MessageExample$1 as MessageExample, MessageMemory$1 as MessageMemory, MessageMetadata$1 as MessageMetadata, MessagePayload$1 as MessagePayload, MessageReceivedHandlerParams$1 as MessageReceivedHandlerParams, v2_MetadataObject as MetadataObject, ModelEventPayload$1 as ModelEventPayload, ModelHandler$1 as ModelHandler, ModelParamsMap$1 as ModelParamsMap, ModelResultMap$1 as ModelResultMap, ModelType$1 as ModelType, ModelTypeName$1 as ModelTypeName, MultiRoomMemoryOptions$1 as MultiRoomMemoryOptions, ObjectGenerationParams$1 as ObjectGenerationParams, OnboardingConfig$1 as OnboardingConfig, Participant$1 as Participant, PlatformPrefix$1 as PlatformPrefix, Plugin$1 as Plugin, PluginEvents$1 as PluginEvents, Project$1 as Project, ProjectAgent$1 as ProjectAgent, Provider$1 as Provider, ProviderResult$1 as ProviderResult, Relationship$1 as Relationship, v2_RemoteAttestationMessage as RemoteAttestationMessage, v2_RemoteAttestationQuote as RemoteAttestationQuote, Role$1 as Role, Room$1 as Room, RoomMetadata$1 as RoomMetadata, Route$1 as Route, RunEventPayload$1 as RunEventPayload, RuntimeSettings$1 as RuntimeSettings, SOCKET_MESSAGE_TYPE$1 as SOCKET_MESSAGE_TYPE, v2_Semaphore as Semaphore, SendHandlerFunction$1 as SendHandlerFunction, type v2_ServerOwnershipState as ServerOwnershipState, Service$1 as Service, v2_ServiceBuilder as ServiceBuilder, ServiceClassMap$1 as ServiceClassMap, v2_ServiceConfig as ServiceConfig, type v2_ServiceDefinition as ServiceDefinition, ServiceError$1 as ServiceError, ServiceInstance$1 as ServiceInstance, ServiceRegistry$1 as ServiceRegistry, ServiceType$1 as ServiceType, ServiceTypeName$1 as ServiceTypeName, ServiceTypeRegistry$1 as ServiceTypeRegistry, ServiceTypeValue$1 as ServiceTypeValue, Setting$1 as Setting, State$1 as State, StateArray$1 as StateArray, StateObject$1 as StateObject, StateValue$1 as StateValue, v2_TEEMode as TEEMode, TargetInfo$1 as TargetInfo, Task$1 as Task, TaskMetadata$1 as TaskMetadata, TaskWorker$1 as TaskWorker, v2_TeeAgent as TeeAgent, v2_TeePluginConfig as TeePluginConfig, v2_TeeType as TeeType, v2_TeeVendorConfig as TeeVendorConfig, TemplateType$1 as TemplateType, TestCase$1 as TestCase, TestSuite$1 as TestSuite, TextEmbeddingParams$1 as TextEmbeddingParams, TextGenerationParams$1 as TextGenerationParams, TextToSpeechParams$1 as TextToSpeechParams, TokenizeTextParams$1 as TokenizeTextParams, TranscriptionParams$1 as TranscriptionParams, TypedEventHandler$1 as TypedEventHandler, TypedService$1 as TypedService, TypedServiceClass$1 as TypedServiceClass, UUID$1 as UUID, UnifiedMemoryOptions$1 as UnifiedMemoryOptions, UnifiedSearchOptions$1 as UnifiedSearchOptions, VECTOR_DIMS$1 as VECTOR_DIMS, Validator$1 as Validator, VideoProcessingParams$1 as VideoProcessingParams, World$1 as World, WorldPayload$1 as WorldPayload, WorldSettings$1 as WorldSettings, v2_addHeader as addHeader, asUUID$1 as asUUID, v2_booleanFooter as booleanFooter, v2_composeActionExamples as composeActionExamples, v2_composePrompt as composePrompt, v2_composePromptFromState as composePromptFromState, createMessageMemory$1 as createMessageMemory, v2_createService as createService, createServiceError$1 as createServiceError, v2_createSettingFromConfig as createSettingFromConfig, v2_createUniqueUuid as createUniqueUuid, v2_decryptObjectValues as decryptObjectValues, decryptStringValue as decryptSecret, v2_decryptStringValue as decryptStringValue, v2_decryptedCharacter as decryptedCharacter, v2_defineService as defineService, v2_elizaLogger as elizaLogger, v2_encryptObjectValues as encryptObjectValues, v2_encryptStringValue as encryptStringValue, v2_encryptedCharacter as encryptedCharacter, v2_findEntityByName as findEntityByName, v2_findWorldsForOwner as findWorldsForOwner, v2_formatActionNames as formatActionNames, v2_formatActions as formatActions, v2_formatEntities as formatEntities, v2_formatMessages as formatMessages, v2_formatPosts as formatPosts, v2_formatTimestamp as formatTimestamp, v2_getEntityDetails as getEntityDetails, getMemoryText$1 as getMemoryText, v2_getSalt as getSalt, getTypedService$1 as getTypedService, v2_getUserServerRole as getUserServerRole, v2_getWorldSettings as getWorldSettings, v2_imageDescriptionTemplate as imageDescriptionTemplate, v2_initializeOnboarding as initializeOnboarding, isCustomMetadata$1 as isCustomMetadata, isDescriptionMetadata$1 as isDescriptionMetadata, isDocumentMemory$1 as isDocumentMemory, isDocumentMetadata$1 as isDocumentMetadata, isFragmentMemory$1 as isFragmentMemory, isFragmentMetadata$1 as isFragmentMetadata, isMessageMetadata$1 as isMessageMetadata, v2_logger as logger, v2_messageHandlerTemplate as messageHandlerTemplate, v2_parseBooleanFromText as parseBooleanFromText, v2_parseJSONObjectFromText as parseJSONObjectFromText, v2_parseKeyValueXml as parseKeyValueXml, v2_postCreationTemplate as postCreationTemplate, v2_safeReplacer as safeReplacer, v2_saltSettingValue as saltSettingValue, v2_saltWorldSettings as saltWorldSettings, v2_shouldRespondTemplate as shouldRespondTemplate, v2_stringToUuid as stringToUuid, v2_trimTokens as trimTokens, v2_truncateToCompleteSentence as truncateToCompleteSentence, v2_unsaltSettingValue as unsaltSettingValue, v2_unsaltWorldSettings as unsaltWorldSettings, v2_updateWorldSettings as updateWorldSettings, v2_validateUuid as validateUuid };
|
|
3026
3024
|
}
|
|
3027
3025
|
|
|
3028
|
-
export { type
|
|
3026
|
+
export { type FragmentMetadata as $, type Action as A, v2 as B, type Component as C, asUUID as D, type Entity as E, type Media as F, ContentType as G, type HandlerCallback as H, type IDatabaseAdapter as I, type StateValue as J, type StateObject as K, type Log as L, type Metadata as M, type StateArray as N, type OnboardingConfig as O, type Participant as P, type EnhancedState as Q, type Room as R, Service as S, type Task as T, type UUID as U, type MemoryTypeAlias as V, type World as W, MemoryType as X, type MemoryScope as Y, type BaseMetadata as Z, type DocumentMetadata as _, type Memory as a, VECTOR_DIMS as a$, type MessageMetadata as a0, type DescriptionMetadata as a1, type CustomMetadata as a2, type MessageMemory as a3, createMessageMemory as a4, isDocumentMetadata as a5, isFragmentMetadata as a6, isMessageMetadata as a7, isDescriptionMetadata as a8, isCustomMetadata as a9, ServiceType as aA, type TypedService as aB, getTypedService as aC, type ServiceError as aD, createServiceError as aE, ModelType as aF, type GenerateTextParams as aG, type DetokenizeTextParams as aH, type BaseModelParams as aI, type TextGenerationParams as aJ, type TextEmbeddingParams as aK, type TokenizeTextParams as aL, type ImageGenerationParams as aM, type ImageDescriptionParams as aN, type TranscriptionParams as aO, type TextToSpeechParams as aP, type AudioProcessingParams as aQ, type VideoProcessingParams as aR, type JSONSchema as aS, type ObjectGenerationParams as aT, type EmbeddingSearchResult as aU, type MemoryRetrievalOptions as aV, type MemorySearchOptions as aW, type MultiRoomMemoryOptions as aX, type UnifiedMemoryOptions as aY, type UnifiedSearchOptions as aZ, type DbConnection as a_, isDocumentMemory as aa, isFragmentMemory as ab, getMemoryText as ac, type KnowledgeItem as ad, KnowledgeScope as ae, CacheKeyPrefix as af, type DirectoryItem as ag, type ChunkRow as ah, type RoomMetadata as ai, type MessageExample as aj, AgentStatus as ak, type ActionExample as al, type Handler as am, type Validator as an, type EvaluationExample as ao, type ProviderResult as ap, type PluginEvents as aq, type ProjectAgent as ar, type Project as as, type ServiceTypeRegistry as at, type ServiceTypeValue as au, type IsValidServiceType as av, type TypedServiceClass as aw, type ServiceClassMap as ax, type ServiceInstance as ay, type ServiceRegistry as az, type MemoryMetadata as b, formatPosts as b$, EventType as b0, PlatformPrefix as b1, type EventPayload as b2, type WorldPayload as b3, type EntityPayload as b4, type MessagePayload as b5, type ChannelClearedPayload as b6, type InvokePayload as b7, type RunEventPayload as b8, type ActionEventPayload as b9, messageHandlerTemplate as bA, postCreationTemplate as bB, booleanFooter as bC, imageDescriptionTemplate as bD, type ServerOwnershipState as bE, getUserServerRole as bF, findWorldsForOwner as bG, Semaphore as bH, AgentRuntime as bI, decryptStringValue as bJ, createSettingFromConfig as bK, getSalt as bL, encryptStringValue as bM, saltSettingValue as bN, unsaltSettingValue as bO, saltWorldSettings as bP, unsaltWorldSettings as bQ, updateWorldSettings as bR, getWorldSettings as bS, initializeOnboarding as bT, encryptedCharacter as bU, decryptedCharacter as bV, encryptObjectValues as bW, decryptObjectValues as bX, composePrompt as bY, composePromptFromState as bZ, addHeader as b_, type EvaluatorEventPayload as ba, type ModelEventPayload as bb, type MessageReceivedHandlerParams as bc, type EventPayloadMap as bd, type EventHandler as be, type TypedEventHandler as bf, type TaskMetadata as bg, SOCKET_MESSAGE_TYPE as bh, type ControlMessage as bi, type TestCase as bj, type TestSuite as bk, ServiceBuilder$1 as bl, createService$1 as bm, type ServiceDefinition$1 as bn, defineService$1 as bo, composeActionExamples as bp, formatActionNames as bq, formatActions as br, DatabaseAdapter as bs, findEntityByName as bt, createUniqueUuid as bu, getEntityDetails as bv, formatEntities as bw, logger as bx, elizaLogger as by, shouldRespondTemplate as bz, type Relationship as c, formatMessages as c0, formatTimestamp as c1, validateUuid as c2, stringToUuid as c3, truncateToCompleteSentence as c4, parseKeyValueXml as c5, parseJSONObjectFromText as c6, parseBooleanFromText as c7, safeReplacer as c8, trimTokens as c9, ServiceBuilder as ca, createService as cb, type ServiceDefinition as cc, defineService as cd, type Agent as d, type IAgentRuntime as e, type State as f, Role as g, type Character as h, type Evaluator as i, type Provider as j, type Plugin as k, type ServiceTypeName as l, type ModelHandler as m, type Route as n, type RuntimeSettings as o, ChannelType as p, type ModelTypeName as q, type ModelResultMap as r, type ModelParamsMap as s, type TaskWorker as t, type SendHandlerFunction as u, type TargetInfo as v, type Content as w, type Setting as x, type WorldSettings as y, type TemplateType as z };
|