@elizaos/core 1.6.0-alpha.0 → 1.6.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/browser/index.browser.js +126 -622
  2. package/dist/browser/index.browser.js.map +26 -223
  3. package/dist/browser/index.d.ts +0 -1
  4. package/dist/elizaos.d.ts +153 -0
  5. package/dist/elizaos.d.ts.map +1 -0
  6. package/dist/index.browser.d.ts +2 -1
  7. package/dist/index.browser.d.ts.map +1 -1
  8. package/dist/index.d.ts +29 -3
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +1 -3
  11. package/dist/index.node.d.ts +3 -2
  12. package/dist/index.node.d.ts.map +1 -1
  13. package/dist/logger.d.ts.map +1 -1
  14. package/dist/memory.d.ts +64 -0
  15. package/dist/memory.d.ts.map +1 -0
  16. package/dist/node/index.d.ts +0 -1
  17. package/dist/node/index.node.js +1669 -44894
  18. package/dist/node/index.node.js.map +32 -737
  19. package/dist/prompts.d.ts +1 -1
  20. package/dist/runtime.d.ts +23 -18
  21. package/dist/runtime.d.ts.map +1 -1
  22. package/dist/schemas/character.d.ts +26 -25
  23. package/dist/schemas/character.d.ts.map +1 -1
  24. package/dist/settings.d.ts +5 -1
  25. package/dist/settings.d.ts.map +1 -1
  26. package/dist/types/components.d.ts +32 -13
  27. package/dist/types/components.d.ts.map +1 -1
  28. package/dist/types/events.d.ts +2 -16
  29. package/dist/types/events.d.ts.map +1 -1
  30. package/dist/types/index.d.ts +0 -11
  31. package/dist/types/index.d.ts.map +1 -1
  32. package/dist/types/knowledge.d.ts +0 -29
  33. package/dist/types/knowledge.d.ts.map +1 -1
  34. package/dist/types/memory.d.ts +0 -62
  35. package/dist/types/memory.d.ts.map +1 -1
  36. package/dist/types/model.d.ts +23 -58
  37. package/dist/types/model.d.ts.map +1 -1
  38. package/dist/types/primitives.d.ts +2 -1
  39. package/dist/types/primitives.d.ts.map +1 -1
  40. package/dist/types/runtime.d.ts +7 -6
  41. package/dist/types/runtime.d.ts.map +1 -1
  42. package/dist/types/state.d.ts +1 -38
  43. package/dist/types/state.d.ts.map +1 -1
  44. package/dist/utils/node.d.ts +6 -0
  45. package/dist/utils/node.d.ts.map +1 -0
  46. package/dist/utils/paths.d.ts +93 -0
  47. package/dist/utils/paths.d.ts.map +1 -0
  48. package/dist/utils.d.ts.map +1 -1
  49. package/package.json +3 -4
  50. package/dist/sentry/instrument.browser.d.ts +0 -12
  51. package/dist/sentry/instrument.browser.d.ts.map +0 -1
  52. package/dist/sentry/instrument.d.ts +0 -12
  53. package/dist/sentry/instrument.d.ts.map +0 -1
  54. package/dist/sentry/instrument.node.d.ts +0 -11
  55. package/dist/sentry/instrument.node.d.ts.map +0 -1
  56. package/dist/types/browser.d.ts +0 -127
  57. package/dist/types/browser.d.ts.map +0 -1
  58. package/dist/types/email.d.ts +0 -143
  59. package/dist/types/email.d.ts.map +0 -1
  60. package/dist/types/lp.d.ts +0 -115
  61. package/dist/types/lp.d.ts.map +0 -1
  62. package/dist/types/message.d.ts +0 -202
  63. package/dist/types/message.d.ts.map +0 -1
  64. package/dist/types/pdf.d.ts +0 -68
  65. package/dist/types/pdf.d.ts.map +0 -1
  66. package/dist/types/post.d.ts +0 -242
  67. package/dist/types/post.d.ts.map +0 -1
  68. package/dist/types/token.d.ts +0 -73
  69. package/dist/types/token.d.ts.map +0 -1
  70. package/dist/types/transcription.d.ts +0 -108
  71. package/dist/types/transcription.d.ts.map +0 -1
  72. package/dist/types/video.d.ts +0 -93
  73. package/dist/types/video.d.ts.map +0 -1
  74. package/dist/types/wallet.d.ts +0 -49
  75. package/dist/types/wallet.d.ts.map +0 -1
  76. package/dist/types/web-search.d.ts +0 -112
  77. package/dist/types/web-search.d.ts.map +0 -1
@@ -1,3 +1,2 @@
1
1
  // Type definitions for @elizaos/core (Browser)
2
- // Re-exports all types from the compiled Browser declarations
3
2
  export * from '../index.browser';
@@ -0,0 +1,153 @@
1
+ import type { Character, IAgentRuntime, UUID, Memory, State, Plugin, RuntimeSettings } from './types';
2
+ /**
3
+ * Batch operation for sending messages
4
+ */
5
+ export interface BatchOperation {
6
+ agentId: UUID;
7
+ operation: 'message' | 'action' | 'evaluate';
8
+ payload: any;
9
+ }
10
+ /**
11
+ * Result of a batch operation
12
+ */
13
+ export interface BatchResult {
14
+ agentId: UUID;
15
+ success: boolean;
16
+ result?: any;
17
+ error?: Error;
18
+ }
19
+ /**
20
+ * Read-only runtime accessor
21
+ */
22
+ export interface ReadonlyRuntime {
23
+ getAgent(id: UUID): IAgentRuntime | undefined;
24
+ getAgents(): IAgentRuntime[];
25
+ getState(agentId: UUID): State | undefined;
26
+ }
27
+ /**
28
+ * Health status for an agent
29
+ */
30
+ export interface HealthStatus {
31
+ alive: boolean;
32
+ responsive: boolean;
33
+ memoryUsage?: number;
34
+ uptime?: number;
35
+ }
36
+ /**
37
+ * Update operation for an agent
38
+ */
39
+ export interface AgentUpdate {
40
+ id: UUID;
41
+ character: Partial<Character>;
42
+ }
43
+ /**
44
+ * ElizaOS - Multi-agent orchestration framework
45
+ * Pure JavaScript implementation for browser and Node.js compatibility
46
+ */
47
+ export declare class ElizaOS extends EventTarget {
48
+ private runtimes;
49
+ private editableMode;
50
+ /**
51
+ * Add multiple agents (batch operation)
52
+ */
53
+ addAgents(agents: Array<{
54
+ character: Character;
55
+ plugins?: Plugin[];
56
+ settings?: RuntimeSettings;
57
+ }>): Promise<UUID[]>;
58
+ /**
59
+ * Register an existing runtime
60
+ */
61
+ registerAgent(runtime: IAgentRuntime): void;
62
+ /**
63
+ * Update an agent's character
64
+ */
65
+ updateAgent(agentId: UUID, updates: Partial<Character>): Promise<void>;
66
+ /**
67
+ * Delete agents
68
+ */
69
+ deleteAgents(agentIds: UUID[]): Promise<void>;
70
+ /**
71
+ * Start multiple agents
72
+ */
73
+ startAgents(agentIds?: UUID[]): Promise<void>;
74
+ /**
75
+ * Stop agents
76
+ */
77
+ stopAgents(agentIds?: UUID[]): Promise<void>;
78
+ /**
79
+ * Get a single agent
80
+ */
81
+ getAgent(id: UUID): IAgentRuntime | undefined;
82
+ /**
83
+ * Get all agents
84
+ */
85
+ getAgents(): IAgentRuntime[];
86
+ /**
87
+ * Get agents by IDs
88
+ */
89
+ getAgentsByIds(ids: UUID[]): IAgentRuntime[];
90
+ /**
91
+ * Get agents by names
92
+ */
93
+ getAgentsByNames(names: string[]): IAgentRuntime[];
94
+ /**
95
+ * Get agent by ID (alias for getAgent for consistency)
96
+ */
97
+ getAgentById(id: UUID): IAgentRuntime | undefined;
98
+ /**
99
+ * Get agent by name
100
+ */
101
+ getAgentByName(name: string): IAgentRuntime | undefined;
102
+ /**
103
+ * Get agent by character name (alias for getAgentByName)
104
+ */
105
+ getAgentByCharacterName(name: string): IAgentRuntime | undefined;
106
+ /**
107
+ * Get agent by character ID
108
+ */
109
+ getAgentByCharacterId(characterId: UUID): IAgentRuntime | undefined;
110
+ /**
111
+ * Send a message to a specific agent - THE ONLY WAY to send messages
112
+ * All message sending (WebSocket, API, CLI, Tests, MessageBus) must use this method
113
+ */
114
+ sendMessage(agentId: UUID, message: Memory | string, options?: {
115
+ userId?: UUID;
116
+ roomId?: UUID;
117
+ metadata?: Record<string, any>;
118
+ }): Promise<Memory[]>;
119
+ /**
120
+ * Send messages to multiple agents (batch operation)
121
+ * All batch message sending must use this method
122
+ */
123
+ sendMessages(messages: Array<{
124
+ agentId: UUID;
125
+ message: Memory | string;
126
+ options?: {
127
+ userId?: UUID;
128
+ roomId?: UUID;
129
+ metadata?: Record<string, any>;
130
+ };
131
+ }>): Promise<Array<{
132
+ agentId: UUID;
133
+ responses: Memory[];
134
+ error?: Error;
135
+ }>>;
136
+ /**
137
+ * Validate API keys for agents
138
+ */
139
+ validateApiKeys(agents?: UUID[]): Promise<Map<UUID, boolean>>;
140
+ /**
141
+ * Health check for agents
142
+ */
143
+ healthCheck(agents?: UUID[]): Promise<Map<UUID, HealthStatus>>;
144
+ /**
145
+ * Get a read-only runtime accessor
146
+ */
147
+ getRuntimeAccessor(): ReadonlyRuntime;
148
+ /**
149
+ * Enable editable mode for post-initialization updates
150
+ */
151
+ enableEditableMode(): void;
152
+ }
153
+ //# sourceMappingURL=elizaos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elizaos.d.ts","sourceRoot":"","sources":["../src/elizaos.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,SAAS,EACT,aAAa,EACb,IAAI,EACJ,MAAM,EACN,KAAK,EACL,MAAM,EACN,eAAe,EAChB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,IAAI,CAAC;IACd,SAAS,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC7C,OAAO,EAAE,GAAG,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,EAAE,IAAI,GAAG,aAAa,GAAG,SAAS,CAAC;IAC9C,SAAS,IAAI,aAAa,EAAE,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,IAAI,GAAG,KAAK,GAAG,SAAS,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,IAAI,CAAC;IACT,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC/B;AAED;;;GAGG;AACH,qBAAa,OAAQ,SA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S;IAIhE;;OAEG;IACH,qBAAqB,CAAC,WAAW,EAAE,IAAI,GAAG,aAAa,GAAG,SAAS;IAInE;;;OAGG;IACG,WAAW,CACf,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,IAAI,CAAC;QACd,MAAM,CAAC,EAAE,IAAI,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,GACA,OAAO,CAAC,MAAM,EAAE,CAAC;IAiCpB;;;OAGG;IACG,YAAY,CAChB,QAAQ,EAAE,KAAK,CAAC;QACd,OAAO,EAAE,IAAI,CAAC;QACd,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;QACzB,OAAO,CAAC,EAAE;YACR,MAAM,CAAC,EAAE,IAAI,CAAC;YACd,MAAM,CAAC,EAAE,IAAI,CAAC;YACd,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;SAChC,CAAC;KACH,CAAC,GACD,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,IAAI,CAAC;QAAC,SAAS,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;IAyBxE;;OAEG;IACG,eAAe,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAkBnE;;OAEG;IACG,WAAW,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IAuBpE;;OAEG;IACH,kBAAkB,IAAI,eAAe;IAqBrC;;OAEG;IACH,kBAAkB,IAAI,IAAI;CAQ3B"}
@@ -13,13 +13,14 @@ export * from './actions';
13
13
  export * from './database';
14
14
  export * from './entities';
15
15
  export * from './logger';
16
+ export * from './memory';
16
17
  export * from './prompts';
17
18
  export * from './roles';
18
19
  export * from './runtime';
19
20
  export * from './settings';
20
21
  export * from './services';
21
22
  export * from './search';
22
- export * from './sentry/instrument.browser';
23
+ export * from './elizaos';
23
24
  export declare const isBrowser = true;
24
25
  export declare const isNode = false;
25
26
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../src/index.browser.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,cAAc,qBAAqB,CAAC;AAGpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAI/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AAGzB,cAAc,6BAA6B,CAAC;AAG5C,eAAO,MAAM,SAAS,OAAO,CAAC;AAC9B,eAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;CAGxB,CAAC"}
1
+ {"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../src/index.browser.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,cAAc,qBAAqB,CAAC;AAGpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAI/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAG1B,eAAO,MAAM,SAAS,OAAO,CAAC;AAC9B,eAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;CAGxB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,29 @@
1
- // Type definitions for @elizaos/core (fallback)
2
- // Re-exports all types from the Node.js build
3
- export * from './index.node';
1
+ /**
2
+ * Main entry point for @elizaos/core
3
+ *
4
+ * This is the default export that includes all modules.
5
+ * The build system creates separate bundles for Node.js and browser environments.
6
+ * Package.json conditional exports handle the routing to the correct build.
7
+ */
8
+ export * from './types';
9
+ export * from './utils';
10
+ export * from './schemas/character';
11
+ export * from './utils/environment';
12
+ export * from './utils/buffer';
13
+ export * from './utils/paths';
14
+ export * from './actions';
15
+ export * from './database';
16
+ export * from './entities';
17
+ export * from './logger';
18
+ export * from './memory';
19
+ export * from './prompts';
20
+ export * from './roles';
21
+ export * from './runtime';
22
+ export * from './settings';
23
+ export * from './services';
24
+ export * from './search';
25
+ export * from './elizaos';
26
+ export declare const isBrowser: boolean;
27
+ export declare const isNode: boolean;
28
+ export * from './utils/server-health';
29
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,cAAc,qBAAqB,CAAC;AAGpC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AAGzB,cAAc,qBAAqB,CAAC;AAGpC,eAAO,MAAM,SAAS,SAG+B,CAAC;AACtD,eAAO,MAAM,MAAM,SAG2B,CAAC;AAG/C,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,cAAc,qBAAqB,CAAC;AAGpC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,gBAAgB,CAAC;AAI/B,cAAc,eAAe,CAAC;AAG9B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC;AAG1B,eAAO,MAAM,SAAS,SAG+B,CAAC;AACtD,eAAO,MAAM,MAAM,SAG2B,CAAC;AAG/C,cAAc,uBAAuB,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,2 @@
1
- // Main entry point for @elizaos/core
2
- // Fallback when conditional exports don't match or are bypassed
3
- // Re-exports everything from the Node.js build which has the full API surface
1
+ // Main entry point fallback for @elizaos/core
4
2
  export * from './node/index.node.js';
@@ -9,18 +9,19 @@ export * from './utils';
9
9
  export * from './schemas/character';
10
10
  export * from './utils/environment';
11
11
  export * from './utils/buffer';
12
- export * from './utils/server-health';
12
+ export * from './utils/node';
13
13
  export * from './actions';
14
14
  export * from './database';
15
15
  export * from './entities';
16
16
  export * from './logger';
17
+ export * from './memory';
17
18
  export * from './prompts';
18
19
  export * from './roles';
19
20
  export * from './runtime';
20
21
  export * from './settings';
21
22
  export * from './services';
22
23
  export * from './search';
23
- export * from './sentry/instrument.node';
24
+ export * from './elizaos';
24
25
  export declare const isBrowser = false;
25
26
  export declare const isNode = true;
26
27
  //# sourceMappingURL=index.node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../src/index.node.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,cAAc,qBAAqB,CAAC;AAGpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AAGtC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AAGzB,cAAc,0BAA0B,CAAC;AAGzC,eAAO,MAAM,SAAS,QAAQ,CAAC;AAC/B,eAAO,MAAM,MAAM,OAAO,CAAC"}
1
+ {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../src/index.node.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,cAAc,qBAAqB,CAAC;AAGpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,cAAc,CAAC;AAG7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAA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W,cAAe,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAClC;AAuGD,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAU/C,CAAC;AAgQF;;;;GAIG;AACH,iBAAS,YAAY,CAAC,QAAQ,GAAE,cAAc,GAAG,OAAe,GAAG,MAAM,CAgPxE;AAOD,QAAA,MAAM,MAAM,QAAiB,CAAC;AAG9B,eAAO,MAAM,WAAW,QAAS,CAAC;AAGlC,eAAO,MAAM,UAAU,QAAO,MAAgD,CAAC;AAG/E,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;AAChC,eAAe,MAAM,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { type Memory, type MemoryMetadata, type MessageMemory, type DocumentMetadata, type FragmentMetadata, type MessageMetadata, type DescriptionMetadata, type CustomMetadata, type Content, type UUID } from './types';
2
+ /**
3
+ * Factory function to create a new message memory with proper defaults
4
+ */
5
+ export declare function createMessageMemory(params: {
6
+ id?: UUID;
7
+ entityId: UUID;
8
+ agentId?: UUID;
9
+ roomId: UUID;
10
+ content: Content & {
11
+ text: string;
12
+ };
13
+ embedding?: number[];
14
+ }): MessageMemory;
15
+ /**
16
+ * Type guard to check if a memory metadata is a DocumentMetadata
17
+ * @param metadata The metadata to check
18
+ * @returns True if the metadata is a DocumentMetadata
19
+ */
20
+ export declare function isDocumentMetadata(metadata: MemoryMetadata): metadata is DocumentMetadata;
21
+ /**
22
+ * Type guard to check if a memory metadata is a FragmentMetadata
23
+ * @param metadata The metadata to check
24
+ * @returns True if the metadata is a FragmentMetadata
25
+ */
26
+ export declare function isFragmentMetadata(metadata: MemoryMetadata): metadata is FragmentMetadata;
27
+ /**
28
+ * Type guard to check if a memory metadata is a MessageMetadata
29
+ * @param metadata The metadata to check
30
+ * @returns True if the metadata is a MessageMetadata
31
+ */
32
+ export declare function isMessageMetadata(metadata: MemoryMetadata): metadata is MessageMetadata;
33
+ /**
34
+ * Type guard to check if a memory metadata is a DescriptionMetadata
35
+ * @param metadata The metadata to check
36
+ * @returns True if the metadata is a DescriptionMetadata
37
+ */
38
+ export declare function isDescriptionMetadata(metadata: MemoryMetadata): metadata is DescriptionMetadata;
39
+ /**
40
+ * Type guard to check if a memory metadata is a CustomMetadata
41
+ * @param metadata The metadata to check
42
+ * @returns True if the metadata is a CustomMetadata
43
+ */
44
+ export declare function isCustomMetadata(metadata: MemoryMetadata): metadata is CustomMetadata;
45
+ /**
46
+ * Memory type guard for document memories
47
+ */
48
+ export declare function isDocumentMemory(memory: Memory): memory is Memory & {
49
+ metadata: DocumentMetadata;
50
+ };
51
+ /**
52
+ * Memory type guard for fragment memories
53
+ */
54
+ export declare function isFragmentMemory(memory: Memory): memory is Memory & {
55
+ metadata: FragmentMetadata;
56
+ };
57
+ /**
58
+ * Safely access the text content of a memory
59
+ * @param memory The memory to extract text from
60
+ * @param defaultValue Optional default value if no text is found
61
+ * @returns The text content or default value
62
+ */
63
+ export declare function getMemoryText(memory: Memory, defaultValue?: string): string;
64
+ //# sourceMappingURL=memory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EAEnB,KAAK,OAAO,EACZ,KAAK,IAAI,EACV,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAC1C,EAAE,CAAC,EAAE,IAAI,CAAC;IACV,QAAQ,EAAE,IAAI,CAAC;IACf,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,OAAO,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,GAAG,aAAa,CAUhB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,cAAc,GAAG,QAAQ,IAAI,gBAAgB,CAEzF;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,cAAc,GAAG,QAAQ,IAAI,gBAAgB,CAEzF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,cAAc,GAAG,QAAQ,IAAI,eAAe,CAEvF;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,cAAc,GAAG,QAAQ,IAAI,mBAAmB,CAE/F;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,cAAc,GAAG,QAAQ,IAAI,cAAc,CAOrF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,GACb,MAAM,IAAI,MAAM,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAEnD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,GACb,MAAM,IAAI,MAAM,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAEnD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,SAAK,GAAG,MAAM,CAEvE"}
@@ -1,3 +1,2 @@
1
1
  // Type definitions for @elizaos/core (Node.js)
2
- // Re-exports all types from the compiled Node.js declarations
3
2
  export * from '../index.node';