@elizaos/core 1.2.1 → 1.2.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.
- package/dist/{chunk-QZR5LTYF.js → chunk-WLUL3JMY.js} +7 -10
- package/dist/{index-cLfhYsFC.d.ts → index-DOpqCUJl.d.ts} +20 -14
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/specs/v1/actionExample.d.ts +1 -1
- package/dist/specs/v1/index.d.ts +1 -1
- package/dist/specs/v1/index.js +1 -1
- package/dist/specs/v1/messages.js +1 -1
- package/dist/specs/v1/posts.js +1 -1
- package/dist/specs/v1/provider.d.ts +1 -1
- package/dist/specs/v1/runtime.js +1 -1
- package/dist/specs/v1/state.d.ts +1 -1
- package/dist/specs/v1/templates.d.ts +1 -1
- package/dist/specs/v1/uuid.js +1 -1
- package/dist/specs/v2/index.d.ts +2 -2
- package/dist/specs/v2/index.js +1 -1
- package/dist/{types-CpAVqV6l.d.ts → types-DIUaglro.d.ts} +1 -1
- package/package.json +2 -2
|
@@ -522,10 +522,7 @@ var ServiceType3 = {
|
|
|
522
522
|
WALLET: "wallet",
|
|
523
523
|
LP_POOL: "lp_pool",
|
|
524
524
|
TOKEN_DATA: "token_data",
|
|
525
|
-
|
|
526
|
-
PLUGIN_MANAGER: "PLUGIN_MANAGER",
|
|
527
|
-
PLUGIN_CONFIGURATION: "PLUGIN_CONFIGURATION",
|
|
528
|
-
PLUGIN_USER_INTERACTION: "PLUGIN_USER_INTERACTION"
|
|
525
|
+
UNKNOWN: "unknown"
|
|
529
526
|
};
|
|
530
527
|
var Service3 = class {
|
|
531
528
|
constructor(runtime) {
|
|
@@ -3495,7 +3492,7 @@ var AgentRuntime = class {
|
|
|
3495
3492
|
await this.createRooms(roomObjsToCreate);
|
|
3496
3493
|
}
|
|
3497
3494
|
const entityIds = entities.map((e) => e.id);
|
|
3498
|
-
const entityExistsCheck = await this.adapter.
|
|
3495
|
+
const entityExistsCheck = await this.adapter.getEntitiesByIds(entityIds);
|
|
3499
3496
|
const entitiesToUpdate = entityExistsCheck.map((e) => e.id);
|
|
3500
3497
|
const entitiesToCreate = entities.filter((e) => !entitiesToUpdate.includes(e.id));
|
|
3501
3498
|
const r = {
|
|
@@ -4102,12 +4099,12 @@ var AgentRuntime = class {
|
|
|
4102
4099
|
return newAgent;
|
|
4103
4100
|
}
|
|
4104
4101
|
async getEntityById(entityId) {
|
|
4105
|
-
const entities = await this.adapter.
|
|
4102
|
+
const entities = await this.adapter.getEntitiesByIds([entityId]);
|
|
4106
4103
|
if (!entities?.length) return null;
|
|
4107
4104
|
return entities[0];
|
|
4108
4105
|
}
|
|
4109
|
-
async
|
|
4110
|
-
return await this.adapter.
|
|
4106
|
+
async getEntitiesByIds(entityIds) {
|
|
4107
|
+
return await this.adapter.getEntitiesByIds(entityIds);
|
|
4111
4108
|
}
|
|
4112
4109
|
async getEntitiesForRoom(roomId, includeComponents) {
|
|
4113
4110
|
return await this.adapter.getEntitiesForRoom(roomId, includeComponents);
|
|
@@ -5698,8 +5695,8 @@ var AgentRuntime2 = class {
|
|
|
5698
5695
|
async getEntityById(entityId) {
|
|
5699
5696
|
return this._runtime.getEntityById(entityId);
|
|
5700
5697
|
}
|
|
5701
|
-
async
|
|
5702
|
-
return this._runtime.
|
|
5698
|
+
async getEntitiesByIds(entityIds) {
|
|
5699
|
+
return this._runtime.getEntitiesByIds(entityIds);
|
|
5703
5700
|
}
|
|
5704
5701
|
async getEntitiesForRoom(roomId, includeComponents) {
|
|
5705
5702
|
return this._runtime.getEntitiesForRoom(roomId, includeComponents);
|
|
@@ -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 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-
|
|
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-DIUaglro.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Defines a custom type UUID representing a universally unique identifier
|
|
@@ -664,7 +664,7 @@ interface IDatabaseAdapter {
|
|
|
664
664
|
deleteAgent(agentId: UUID): Promise<boolean>;
|
|
665
665
|
ensureEmbeddingDimension(dimension: number): Promise<void>;
|
|
666
666
|
/** Get entity by IDs */
|
|
667
|
-
|
|
667
|
+
getEntitiesByIds(entityIds: UUID[]): Promise<Entity[] | null>;
|
|
668
668
|
/** Get entities for room */
|
|
669
669
|
getEntitiesForRoom(roomId: UUID, includeComponents?: boolean): Promise<Entity[]>;
|
|
670
670
|
/** Create new entities */
|
|
@@ -1412,10 +1412,7 @@ interface ServiceTypeRegistry {
|
|
|
1412
1412
|
WALLET: 'wallet';
|
|
1413
1413
|
LP_POOL: 'lp_pool';
|
|
1414
1414
|
TOKEN_DATA: 'token_data';
|
|
1415
|
-
|
|
1416
|
-
PLUGIN_MANAGER: 'PLUGIN_MANAGER';
|
|
1417
|
-
PLUGIN_CONFIGURATION: 'PLUGIN_CONFIGURATION';
|
|
1418
|
-
PLUGIN_USER_INTERACTION: 'PLUGIN_USER_INTERACTION';
|
|
1415
|
+
UNKNOWN: 'unknown';
|
|
1419
1416
|
}
|
|
1420
1417
|
/**
|
|
1421
1418
|
* Type for service names that includes both core services and any plugin-registered services
|
|
@@ -1471,10 +1468,7 @@ declare const ServiceType: {
|
|
|
1471
1468
|
readonly WALLET: "wallet";
|
|
1472
1469
|
readonly LP_POOL: "lp_pool";
|
|
1473
1470
|
readonly TOKEN_DATA: "token_data";
|
|
1474
|
-
readonly
|
|
1475
|
-
readonly PLUGIN_MANAGER: "PLUGIN_MANAGER";
|
|
1476
|
-
readonly PLUGIN_CONFIGURATION: "PLUGIN_CONFIGURATION";
|
|
1477
|
-
readonly PLUGIN_USER_INTERACTION: "PLUGIN_USER_INTERACTION";
|
|
1471
|
+
readonly UNKNOWN: "unknown";
|
|
1478
1472
|
};
|
|
1479
1473
|
/**
|
|
1480
1474
|
* Client instance
|
|
@@ -1712,7 +1706,7 @@ type HandlerCallback = (response: Content, files?: any) => Promise<Memory[]>;
|
|
|
1712
1706
|
*/
|
|
1713
1707
|
type Handler = (runtime: IAgentRuntime, message: Memory, state?: State, options?: {
|
|
1714
1708
|
[key: string]: unknown;
|
|
1715
|
-
}, callback?: HandlerCallback, responses?: Memory[]) => Promise<ActionResult | void>;
|
|
1709
|
+
}, callback?: HandlerCallback, responses?: Memory[]) => Promise<ActionResult | void | undefined>;
|
|
1716
1710
|
/**
|
|
1717
1711
|
* Validator function type for actions/evaluators
|
|
1718
1712
|
*/
|
|
@@ -1794,6 +1788,18 @@ interface Provider {
|
|
|
1794
1788
|
/** Data retrieval function */
|
|
1795
1789
|
get: (runtime: IAgentRuntime, message: Memory, state: State) => Promise<ProviderResult>;
|
|
1796
1790
|
}
|
|
1791
|
+
/**
|
|
1792
|
+
* Result of executing an action
|
|
1793
|
+
*/
|
|
1794
|
+
interface ActionResult {
|
|
1795
|
+
values?: {
|
|
1796
|
+
[key: string]: any;
|
|
1797
|
+
};
|
|
1798
|
+
data?: {
|
|
1799
|
+
[key: string]: any;
|
|
1800
|
+
};
|
|
1801
|
+
text?: string;
|
|
1802
|
+
}
|
|
1797
1803
|
/**
|
|
1798
1804
|
* Result returned by an action after execution
|
|
1799
1805
|
* Used for action chaining and state management
|
|
@@ -1960,7 +1966,7 @@ declare abstract class DatabaseAdapter<DB = unknown> implements IDatabaseAdapter
|
|
|
1960
1966
|
* @param entityIds The UUIDs of the user account to retrieve.
|
|
1961
1967
|
* @returns A Promise that resolves to the Entity object or null if not found.
|
|
1962
1968
|
*/
|
|
1963
|
-
abstract
|
|
1969
|
+
abstract getEntitiesByIds(entityIds: UUID$1[]): Promise<Entity$1[] | null>;
|
|
1964
1970
|
abstract getEntitiesForRoom(roomId: UUID$1, includeComponents?: boolean): Promise<Entity$1[]>;
|
|
1965
1971
|
/**
|
|
1966
1972
|
* Creates a new entities in the database.
|
|
@@ -2625,7 +2631,7 @@ declare class AgentRuntime implements IAgentRuntime$1 {
|
|
|
2625
2631
|
deleteAgent(agentId: UUID$1): Promise<boolean>;
|
|
2626
2632
|
ensureAgentExists(agent: Partial<Agent$1>): Promise<Agent$1>;
|
|
2627
2633
|
getEntityById(entityId: UUID$1): Promise<Entity$1 | null>;
|
|
2628
|
-
|
|
2634
|
+
getEntitiesByIds(entityIds: UUID$1[]): Promise<Entity$1[] | null>;
|
|
2629
2635
|
getEntitiesForRoom(roomId: UUID$1, includeComponents?: boolean): Promise<Entity$1[]>;
|
|
2630
2636
|
createEntity(entity: Entity$1): Promise<boolean>;
|
|
2631
2637
|
createEntities(entities: Entity$1[]): Promise<boolean>;
|
|
@@ -3061,4 +3067,4 @@ declare namespace v2 {
|
|
|
3061
3067
|
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 };
|
|
3062
3068
|
}
|
|
3063
3069
|
|
|
3064
|
-
export { type FragmentMetadata as $, type Action as A, type WorldSettings as B, ContentType as C, v2 as D, type Entity as E, asUUID as F, type Media as G, type HandlerCallback as H, type IAgentRuntime 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 TemplateType 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 State as a, type UnifiedMemoryOptions 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, type ServiceClassMap as aA, type ServiceInstance as aB, type ServiceRegistry as aC, ServiceType as aD, type TypedService as aE, getTypedService as aF, type ServiceError as aG, createServiceError as aH, ModelType as aI, type GenerateTextParams as aJ, type DetokenizeTextParams as aK, type BaseModelParams as aL, type TextGenerationParams as aM, type TextEmbeddingParams as aN, type TokenizeTextParams as aO, type ImageGenerationParams as aP, type ImageDescriptionParams as aQ, type TranscriptionParams as aR, type TextToSpeechParams as aS, type AudioProcessingParams as aT, type VideoProcessingParams as aU, type JSONSchema as aV, type ObjectGenerationParams as aW, type EmbeddingSearchResult as aX, type MemoryRetrievalOptions as aY, type MemorySearchOptions as aZ, type MultiRoomMemoryOptions 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
|
|
3070
|
+
export { type FragmentMetadata as $, type Action as A, type WorldSettings as B, ContentType as C, v2 as D, type Entity as E, asUUID as F, type Media as G, type HandlerCallback as H, type IAgentRuntime 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 TemplateType 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 State as a, type UnifiedMemoryOptions 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, type ServiceClassMap as aA, type ServiceInstance as aB, type ServiceRegistry as aC, ServiceType as aD, type TypedService as aE, getTypedService as aF, type ServiceError as aG, createServiceError as aH, ModelType as aI, type GenerateTextParams as aJ, type DetokenizeTextParams as aK, type BaseModelParams as aL, type TextGenerationParams as aM, type TextEmbeddingParams as aN, type TokenizeTextParams as aO, type ImageGenerationParams as aP, type ImageDescriptionParams as aQ, type TranscriptionParams as aR, type TextToSpeechParams as aS, type AudioProcessingParams as aT, type VideoProcessingParams as aU, type JSONSchema as aV, type ObjectGenerationParams as aW, type EmbeddingSearchResult as aX, type MemoryRetrievalOptions as aY, type MemorySearchOptions as aZ, type MultiRoomMemoryOptions 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 ActionResult as ao, type EvaluationExample as ap, type ProviderResult as aq, type ActionContext as ar, createActionResult as as, type PluginEvents as at, type ProjectAgent as au, type Project as av, type ServiceTypeRegistry as aw, type ServiceTypeValue as ax, type IsValidServiceType as ay, type TypedServiceClass as az, type Memory as b, composePrompt as b$, type UnifiedSearchOptions as b0, type DbConnection as b1, VECTOR_DIMS as b2, EventType as b3, PlatformPrefix as b4, type EventPayload as b5, type WorldPayload as b6, type EntityPayload as b7, type MessagePayload as b8, type ChannelClearedPayload as b9, logger as bA, elizaLogger as bB, shouldRespondTemplate as bC, messageHandlerTemplate as bD, postCreationTemplate as bE, booleanFooter as bF, imageDescriptionTemplate as bG, type ServerOwnershipState as bH, getUserServerRole as bI, findWorldsForOwner as bJ, Semaphore as bK, AgentRuntime as bL, decryptStringValue as bM, createSettingFromConfig as bN, getSalt as bO, encryptStringValue as bP, saltSettingValue as bQ, unsaltSettingValue as bR, saltWorldSettings as bS, unsaltWorldSettings as bT, updateWorldSettings as bU, getWorldSettings as bV, initializeOnboarding as bW, encryptedCharacter as bX, decryptedCharacter as bY, encryptObjectValues as bZ, decryptObjectValues as b_, type InvokePayload as ba, type RunEventPayload as bb, type ActionEventPayload as bc, type EvaluatorEventPayload as bd, type ModelEventPayload as be, type MessageReceivedHandlerParams as bf, type EventPayloadMap as bg, type EventHandler as bh, type TypedEventHandler as bi, type TaskMetadata as bj, SOCKET_MESSAGE_TYPE as bk, type ControlMessage as bl, type TestCase as bm, type TestSuite as bn, ServiceBuilder$1 as bo, createService$1 as bp, type ServiceDefinition$1 as bq, defineService$1 as br, composeActionExamples as bs, formatActionNames as bt, formatActions as bu, DatabaseAdapter as bv, findEntityByName as bw, createUniqueUuid as bx, getEntityDetails as by, formatEntities as bz, type Character as c, composePromptFromState as c0, addHeader as c1, formatPosts as c2, formatMessages as c3, formatTimestamp as c4, validateUuid as c5, stringToUuid as c6, truncateToCompleteSentence as c7, parseKeyValueXml as c8, parseJSONObjectFromText as c9, parseBooleanFromText as ca, safeReplacer as cb, trimTokens as cc, ServiceBuilder as cd, createService as ce, type ServiceDefinition as cf, defineService as cg, type IDatabaseAdapter as d, type Component as e, type MemoryMetadata as f, type Relationship as g, type Agent as h, type Task as i, Role as j, type Evaluator as k, type Provider as l, type Plugin as m, type ServiceTypeName as n, type ModelHandler as o, type Route as p, type RuntimeSettings as q, ChannelType as r, type ModelTypeName as s, type ModelResultMap as t, type ModelParamsMap as u, type TaskWorker as v, type SendHandlerFunction as w, type TargetInfo as x, type Content as y, type Setting as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { M as Metadata, S as Service, T as TemplateType, a as State, b as Memory, E as Entity, I as IAgentRuntime, U as UUID, C as ContentType, c as Character, A as Action, d as IDatabaseAdapter, e as Component, L as Log, f as MemoryMetadata, W as World, R as Room, P as Participant, g as Relationship, h as Agent, i as Task, j as Role, k as Evaluator, l as Provider, m as Plugin, n as ServiceTypeName, o as ModelHandler, p as Route, q as RuntimeSettings, H as HandlerCallback, r as ChannelType, s as ModelTypeName, t as ModelResultMap, u as ModelParamsMap, v as TaskWorker, w as SendHandlerFunction, x as TargetInfo, y as Content, z as Setting, B as WorldSettings, O as OnboardingConfig, D as v2 } from './index-
|
|
2
|
-
export { ar as ActionContext, bc as ActionEventPayload, al as ActionExample,
|
|
1
|
+
import { M as Metadata, S as Service, T as TemplateType, a as State, b as Memory, E as Entity, I as IAgentRuntime, U as UUID, C as ContentType, c as Character, A as Action, d as IDatabaseAdapter, e as Component, L as Log, f as MemoryMetadata, W as World, R as Room, P as Participant, g as Relationship, h as Agent, i as Task, j as Role, k as Evaluator, l as Provider, m as Plugin, n as ServiceTypeName, o as ModelHandler, p as Route, q as RuntimeSettings, H as HandlerCallback, r as ChannelType, s as ModelTypeName, t as ModelResultMap, u as ModelParamsMap, v as TaskWorker, w as SendHandlerFunction, x as TargetInfo, y as Content, z as Setting, B as WorldSettings, O as OnboardingConfig, D as v2 } from './index-DOpqCUJl.js';
|
|
2
|
+
export { ar as ActionContext, bc as ActionEventPayload, al as ActionExample, ao as ActionResult, ak as AgentStatus, aT as AudioProcessingParams, Z as BaseMetadata, aL as BaseModelParams, af as CacheKeyPrefix, b9 as ChannelClearedPayload, ah as ChunkRow, bl as ControlMessage, a2 as CustomMetadata, b1 as DbConnection, a1 as DescriptionMetadata, aK as DetokenizeTextParams, ag as DirectoryItem, _ as DocumentMetadata, aX as EmbeddingSearchResult, Q as EnhancedState, b7 as EntityPayload, ap as EvaluationExample, bd as EvaluatorEventPayload, bh as EventHandler, b5 as EventPayload, bg as EventPayloadMap, b3 as EventType, $ as FragmentMetadata, aJ as GenerateTextParams, am as Handler, aQ as ImageDescriptionParams, aP as ImageGenerationParams, ba as InvokePayload, ay as IsValidServiceType, aV as JSONSchema, ad as KnowledgeItem, ae as KnowledgeScope, G as Media, aY as MemoryRetrievalOptions, Y as MemoryScope, aZ as MemorySearchOptions, X as MemoryType, V as MemoryTypeAlias, aj as MessageExample, a3 as MessageMemory, a0 as MessageMetadata, b8 as MessagePayload, bf as MessageReceivedHandlerParams, be as ModelEventPayload, aI as ModelType, a_ as MultiRoomMemoryOptions, aW as ObjectGenerationParams, b4 as PlatformPrefix, at as PluginEvents, av as Project, au as ProjectAgent, aq as ProviderResult, ai as RoomMetadata, bb as RunEventPayload, bk as SOCKET_MESSAGE_TYPE, bo as ServiceBuilder, aA as ServiceClassMap, bq as ServiceDefinition, aG as ServiceError, aB as ServiceInstance, aC as ServiceRegistry, aD as ServiceType, aw as ServiceTypeRegistry, ax as ServiceTypeValue, N as StateArray, K as StateObject, J as StateValue, bj as TaskMetadata, bm as TestCase, bn as TestSuite, aN as TextEmbeddingParams, aM as TextGenerationParams, aS as TextToSpeechParams, aO as TokenizeTextParams, aR as TranscriptionParams, bi as TypedEventHandler, aE as TypedService, az as TypedServiceClass, a$ as UnifiedMemoryOptions, b0 as UnifiedSearchOptions, b2 as VECTOR_DIMS, an as Validator, aU as VideoProcessingParams, b6 as WorldPayload, F as asUUID, as as createActionResult, a4 as createMessageMemory, bp as createService, aH as createServiceError, br as defineService, ac as getMemoryText, aF as getTypedService, a9 as isCustomMetadata, a8 as isDescriptionMetadata, aa as isDocumentMemory, a5 as isDocumentMetadata, ab as isFragmentMemory, a6 as isFragmentMetadata, a7 as isMessageMetadata } from './index-DOpqCUJl.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import * as pino from 'pino';
|
|
5
5
|
import * as browser from '@sentry/browser';
|
|
6
6
|
export { browser as Sentry };
|
|
7
7
|
export { i as v1 } from './index-BHW44X0A.js';
|
|
8
|
-
import './types-
|
|
8
|
+
import './types-DIUaglro.js';
|
|
9
9
|
import './specs/v1/messages.js';
|
|
10
10
|
import './specs/v1/types.js';
|
|
11
11
|
import 'stream';
|
|
@@ -814,7 +814,7 @@ declare abstract class DatabaseAdapter<DB = unknown> implements IDatabaseAdapter
|
|
|
814
814
|
* @param entityIds The UUIDs of the user account to retrieve.
|
|
815
815
|
* @returns A Promise that resolves to the Entity object or null if not found.
|
|
816
816
|
*/
|
|
817
|
-
abstract
|
|
817
|
+
abstract getEntitiesByIds(entityIds: UUID[]): Promise<Entity[] | null>;
|
|
818
818
|
abstract getEntitiesForRoom(roomId: UUID, includeComponents?: boolean): Promise<Entity[]>;
|
|
819
819
|
/**
|
|
820
820
|
* Creates a new entities in the database.
|
|
@@ -1485,7 +1485,7 @@ declare class AgentRuntime implements IAgentRuntime {
|
|
|
1485
1485
|
deleteAgent(agentId: UUID): Promise<boolean>;
|
|
1486
1486
|
ensureAgentExists(agent: Partial<Agent>): Promise<Agent>;
|
|
1487
1487
|
getEntityById(entityId: UUID): Promise<Entity | null>;
|
|
1488
|
-
|
|
1488
|
+
getEntitiesByIds(entityIds: UUID[]): Promise<Entity[] | null>;
|
|
1489
1489
|
getEntitiesForRoom(roomId: UUID, includeComponents?: boolean): Promise<Entity[]>;
|
|
1490
1490
|
createEntity(entity: Entity): Promise<boolean>;
|
|
1491
1491
|
createEntities(entities: Entity[]): Promise<boolean>;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ActionExample as ActionExample$2, Content as Content$1 } from './types.js';
|
|
2
|
-
import { A as ActionExample$1, C as Content } from '../../types-
|
|
2
|
+
import { A as ActionExample$1, C as Content } from '../../types-DIUaglro.js';
|
|
3
3
|
import 'stream';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/specs/v1/index.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export { ActionExample, convertContentToV1, convertContentToV2, fromV2ActionExam
|
|
|
8
8
|
export { Provider, fromV2Provider, toV2Provider } from './provider.js';
|
|
9
9
|
export { TemplateType, createTemplateFunction, getTemplateValues, processTemplate } from './templates.js';
|
|
10
10
|
import 'stream';
|
|
11
|
-
import '../../types-
|
|
11
|
+
import '../../types-DIUaglro.js';
|
package/dist/specs/v1/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatMessages3 as formatMessages,
|
|
4
4
|
formatTimestamp3 as formatTimestamp,
|
|
5
5
|
getActorDetails
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-WLUL3JMY.js";
|
|
7
7
|
import "../../chunk-2HSL25IJ.js";
|
|
8
8
|
import "../../chunk-WO7Z3GE6.js";
|
|
9
9
|
import "../../chunk-U2ADTLZY.js";
|
package/dist/specs/v1/posts.js
CHANGED
package/dist/specs/v1/runtime.js
CHANGED
package/dist/specs/v1/state.d.ts
CHANGED
package/dist/specs/v1/uuid.js
CHANGED
package/dist/specs/v2/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as Action, w as ActionEventPayload, A as ActionExample, f as Agent, x as AgentStatus, y as AudioProcessingParams, B as BaseMetadata, z as BaseModelParams, D as CacheKeyPrefix, F as ChannelClearedPayload, G as ChannelType, l as Character, J as ChunkRow, b as Component, K as ComponentData, C as Content, N as ContentType, O as ControlMessage, Q as CustomMetadata, V as DbConnection, X as DeriveKeyAttestationData, Y as DescriptionMetadata, Z as DetokenizeTextParams, _ as DirectoryItem, $ as DocumentMetadata, a0 as EmbeddingSearchResult, a1 as EnhancedState, E as Entity, a2 as EntityPayload, a3 as EvaluationExample, m as Evaluator, a4 as EvaluatorEventPayload, a5 as EventDataObject, a6 as EventHandler, a7 as EventPayload, a8 as EventPayloadMap, a9 as EventType, aa as FragmentMetadata, ab as GenerateTextParams, ac as Handler, H as HandlerCallback, g as IAgentRuntime, I as IDatabaseAdapter, ad as ImageDescriptionParams, ae as ImageGenerationParams, af as InvokePayload, ag as IsValidServiceType, ah as JSONSchema, ai as KnowledgeItem, aj as KnowledgeScope, L as Log, ak as Media, M as Memory, c as MemoryMetadata, al as MemoryRetrievalOptions, am as MemoryScope, an as MemorySearchOptions, ao as MemoryType, ap as MemoryTypeAlias, aq as MessageExample, ar as MessageMemory, as as MessageMetadata, at as MessagePayload, au as MessageReceivedHandlerParams, av as MetadataObject, aw as ModelEventPayload, ax as ModelHandler, r as ModelParamsMap, q as ModelResultMap, ay as ModelType, p as ModelTypeName, az as MultiRoomMemoryOptions, aA as ObjectGenerationParams, aB as OnboardingConfig, d as Participant, aC as PlatformPrefix, n as Plugin, aD as PluginEvents, aE as Project, aF as ProjectAgent, P as Provider, aG as ProviderResult, e as Relationship, aH as RemoteAttestationMessage, aI as RemoteAttestationQuote, h as Role, R as Room, aJ as RoomMetadata, k as Route, aK as RunEventPayload, o as RuntimeSettings, aL as SOCKET_MESSAGE_TYPE, t as SendHandlerFunction, j as Service, aM as ServiceClassMap, aN as ServiceConfig, aO as ServiceError, aP as ServiceInstance, aQ as ServiceRegistry, aR as ServiceType, i as ServiceTypeName, aS as ServiceTypeRegistry, aT as ServiceTypeValue, aU as Setting, S as State, aV as StateArray, aW as StateObject, aX as StateValue, aY as TEEMode, u as TargetInfo, T as Task, aZ as TaskMetadata, s as TaskWorker, a_ as TeeAgent, a$ as TeePluginConfig, b0 as TeeType, b1 as TeeVendorConfig, v as TemplateType, b2 as TestCase, b3 as TestSuite, b4 as TextEmbeddingParams, b5 as TextGenerationParams, b6 as TextToSpeechParams, b7 as TokenizeTextParams, b8 as TranscriptionParams, b9 as TypedEventHandler, ba as TypedService, bb as TypedServiceClass, U as UUID, bc as UnifiedMemoryOptions, bd as UnifiedSearchOptions, be as VECTOR_DIMS, bf as Validator, bg as VideoProcessingParams, W as World, bh as WorldPayload, bi as WorldSettings, bj as asUUID, bk as createMessageMemory, bl as createServiceError, bm as getMemoryText, bn as getTypedService, bo as isCustomMetadata, bp as isDescriptionMetadata, bq as isDocumentMemory, br as isDocumentMetadata, bs as isFragmentMemory, bt as isFragmentMetadata, bu as isMessageMetadata } from '../../types-
|
|
2
|
-
export { bL as AgentRuntime, bv as DatabaseAdapter, bK as Semaphore, bH as ServerOwnershipState, cd as ServiceBuilder, cf as ServiceDefinition, c1 as addHeader, bF as booleanFooter, bs as composeActionExamples, b$ as composePrompt, c0 as composePromptFromState, ce as createService, bN as createSettingFromConfig, bx as createUniqueUuid, b_ as decryptObjectValues, bM as decryptSecret, bM as decryptStringValue, bY as decryptedCharacter, cg as defineService, bB as elizaLogger, bZ as encryptObjectValues, bP as encryptStringValue, bX as encryptedCharacter, bw as findEntityByName, bJ as findWorldsForOwner, bt as formatActionNames, bu as formatActions, bz as formatEntities, c3 as formatMessages, c2 as formatPosts, c4 as formatTimestamp, by as getEntityDetails, bO as getSalt, bI as getUserServerRole, bV as getWorldSettings, bG as imageDescriptionTemplate, bW as initializeOnboarding, bA as logger, bD as messageHandlerTemplate, ca as parseBooleanFromText, c9 as parseJSONObjectFromText, c8 as parseKeyValueXml, bE as postCreationTemplate, cb as safeReplacer, bQ as saltSettingValue, bS as saltWorldSettings, bC as shouldRespondTemplate, c6 as stringToUuid, cc as trimTokens, c7 as truncateToCompleteSentence, bR as unsaltSettingValue, bT as unsaltWorldSettings, bU as updateWorldSettings, c5 as validateUuid } from '../../index-
|
|
1
|
+
export { a as Action, w as ActionEventPayload, A as ActionExample, f as Agent, x as AgentStatus, y as AudioProcessingParams, B as BaseMetadata, z as BaseModelParams, D as CacheKeyPrefix, F as ChannelClearedPayload, G as ChannelType, l as Character, J as ChunkRow, b as Component, K as ComponentData, C as Content, N as ContentType, O as ControlMessage, Q as CustomMetadata, V as DbConnection, X as DeriveKeyAttestationData, Y as DescriptionMetadata, Z as DetokenizeTextParams, _ as DirectoryItem, $ as DocumentMetadata, a0 as EmbeddingSearchResult, a1 as EnhancedState, E as Entity, a2 as EntityPayload, a3 as EvaluationExample, m as Evaluator, a4 as EvaluatorEventPayload, a5 as EventDataObject, a6 as EventHandler, a7 as EventPayload, a8 as EventPayloadMap, a9 as EventType, aa as FragmentMetadata, ab as GenerateTextParams, ac as Handler, H as HandlerCallback, g as IAgentRuntime, I as IDatabaseAdapter, ad as ImageDescriptionParams, ae as ImageGenerationParams, af as InvokePayload, ag as IsValidServiceType, ah as JSONSchema, ai as KnowledgeItem, aj as KnowledgeScope, L as Log, ak as Media, M as Memory, c as MemoryMetadata, al as MemoryRetrievalOptions, am as MemoryScope, an as MemorySearchOptions, ao as MemoryType, ap as MemoryTypeAlias, aq as MessageExample, ar as MessageMemory, as as MessageMetadata, at as MessagePayload, au as MessageReceivedHandlerParams, av as MetadataObject, aw as ModelEventPayload, ax as ModelHandler, r as ModelParamsMap, q as ModelResultMap, ay as ModelType, p as ModelTypeName, az as MultiRoomMemoryOptions, aA as ObjectGenerationParams, aB as OnboardingConfig, d as Participant, aC as PlatformPrefix, n as Plugin, aD as PluginEvents, aE as Project, aF as ProjectAgent, P as Provider, aG as ProviderResult, e as Relationship, aH as RemoteAttestationMessage, aI as RemoteAttestationQuote, h as Role, R as Room, aJ as RoomMetadata, k as Route, aK as RunEventPayload, o as RuntimeSettings, aL as SOCKET_MESSAGE_TYPE, t as SendHandlerFunction, j as Service, aM as ServiceClassMap, aN as ServiceConfig, aO as ServiceError, aP as ServiceInstance, aQ as ServiceRegistry, aR as ServiceType, i as ServiceTypeName, aS as ServiceTypeRegistry, aT as ServiceTypeValue, aU as Setting, S as State, aV as StateArray, aW as StateObject, aX as StateValue, aY as TEEMode, u as TargetInfo, T as Task, aZ as TaskMetadata, s as TaskWorker, a_ as TeeAgent, a$ as TeePluginConfig, b0 as TeeType, b1 as TeeVendorConfig, v as TemplateType, b2 as TestCase, b3 as TestSuite, b4 as TextEmbeddingParams, b5 as TextGenerationParams, b6 as TextToSpeechParams, b7 as TokenizeTextParams, b8 as TranscriptionParams, b9 as TypedEventHandler, ba as TypedService, bb as TypedServiceClass, U as UUID, bc as UnifiedMemoryOptions, bd as UnifiedSearchOptions, be as VECTOR_DIMS, bf as Validator, bg as VideoProcessingParams, W as World, bh as WorldPayload, bi as WorldSettings, bj as asUUID, bk as createMessageMemory, bl as createServiceError, bm as getMemoryText, bn as getTypedService, bo as isCustomMetadata, bp as isDescriptionMetadata, bq as isDocumentMemory, br as isDocumentMetadata, bs as isFragmentMemory, bt as isFragmentMetadata, bu as isMessageMetadata } from '../../types-DIUaglro.js';
|
|
2
|
+
export { bL as AgentRuntime, bv as DatabaseAdapter, bK as Semaphore, bH as ServerOwnershipState, cd as ServiceBuilder, cf as ServiceDefinition, c1 as addHeader, bF as booleanFooter, bs as composeActionExamples, b$ as composePrompt, c0 as composePromptFromState, ce as createService, bN as createSettingFromConfig, bx as createUniqueUuid, b_ as decryptObjectValues, bM as decryptSecret, bM as decryptStringValue, bY as decryptedCharacter, cg as defineService, bB as elizaLogger, bZ as encryptObjectValues, bP as encryptStringValue, bX as encryptedCharacter, bw as findEntityByName, bJ as findWorldsForOwner, bt as formatActionNames, bu as formatActions, bz as formatEntities, c3 as formatMessages, c2 as formatPosts, c4 as formatTimestamp, by as getEntityDetails, bO as getSalt, bI as getUserServerRole, bV as getWorldSettings, bG as imageDescriptionTemplate, bW as initializeOnboarding, bA as logger, bD as messageHandlerTemplate, ca as parseBooleanFromText, c9 as parseJSONObjectFromText, c8 as parseKeyValueXml, bE as postCreationTemplate, cb as safeReplacer, bQ as saltSettingValue, bS as saltWorldSettings, bC as shouldRespondTemplate, c6 as stringToUuid, cc as trimTokens, c7 as truncateToCompleteSentence, bR as unsaltSettingValue, bT as unsaltWorldSettings, bU as updateWorldSettings, c5 as validateUuid } from '../../index-DOpqCUJl.js';
|
package/dist/specs/v2/index.js
CHANGED
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
unsaltWorldSettings2 as unsaltWorldSettings,
|
|
79
79
|
updateWorldSettings2 as updateWorldSettings,
|
|
80
80
|
validateUuid2 as validateUuid
|
|
81
|
-
} from "../../chunk-
|
|
81
|
+
} from "../../chunk-WLUL3JMY.js";
|
|
82
82
|
import "../../chunk-2HSL25IJ.js";
|
|
83
83
|
import "../../chunk-WO7Z3GE6.js";
|
|
84
84
|
import "../../chunk-U2ADTLZY.js";
|
|
@@ -671,7 +671,7 @@ interface IDatabaseAdapter {
|
|
|
671
671
|
deleteAgent(agentId: UUID): Promise<boolean>;
|
|
672
672
|
ensureEmbeddingDimension(dimension: number): Promise<void>;
|
|
673
673
|
/** Get entity by IDs */
|
|
674
|
-
|
|
674
|
+
getEntitiesByIds(entityIds: UUID[]): Promise<Entity[] | null>;
|
|
675
675
|
/** Get entities for room */
|
|
676
676
|
getEntitiesForRoom(roomId: UUID, includeComponents?: boolean): Promise<Entity[]>;
|
|
677
677
|
/** Create new entities */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "9fc23427045b3262109c41926af65bb89342b44a"
|
|
79
79
|
}
|