@elizaos/core 1.0.6 → 1.0.8
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-6EXKM3O4.js +5819 -0
- package/dist/{chunk-SIAA4J6H.js → chunk-R5U7XKVJ.js} +0 -5
- package/dist/{chunk-FEPOSPNK.js → chunk-WO7Z3GE6.js} +1 -0
- package/dist/{index-S6eSMHDH.d.ts → index-C7vN6HiA.d.ts} +807 -916
- package/dist/index.d.ts +358 -52
- package/dist/index.js +9 -5
- 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-D9v-eW3g.d.ts → types-szUq9-0V.d.ts} +15 -5
- package/package.json +3 -12
- package/dist/chunk-TF6QLZZY.js +0 -11535
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { A as Action, I as IDatabaseAdapter, U as UUID, E as Entity, C as Component,
|
|
2
|
-
export {
|
|
1
|
+
import { M as Metadata, S as Service, A as Action, I as IDatabaseAdapter, U as UUID, E as Entity, C as Component, a as Memory, L as Log, b as MemoryMetadata, W as World, R as Room, P as Participant, c as Relationship, d as Agent, T as Task, e as IAgentRuntime, f as State, g as Role, h as Character, i as Evaluator, j as Provider, k as Plugin, l as ServiceTypeName, m as ModelHandler, n as Route, o as RuntimeSettings, H as HandlerCallback, p as ChannelType, q as ModelTypeName, r as ModelResultMap, s as ModelParamsMap, t as TaskWorker, u as SendHandlerFunction, v as TargetInfo, w as Content, x as Setting, y as WorldSettings, O as OnboardingConfig, z as TemplateType, B as v2 } from './index-C7vN6HiA.js';
|
|
2
|
+
export { b9 as ActionEventPayload, al as ActionExample, ak as AgentStatus, aQ as AudioProcessingParams, Z as BaseMetadata, aI as BaseModelParams, af as CacheKeyPrefix, b6 as ChannelClearedPayload, ah as ChunkRow, G as ContentType, bi as ControlMessage, a2 as CustomMetadata, a_ as DbConnection, a1 as DescriptionMetadata, aH as DetokenizeTextParams, ag as DirectoryItem, _ as DocumentMetadata, aU as EmbeddingSearchResult, Q as EnhancedState, b4 as EntityPayload, ao as EvaluationExample, ba as EvaluatorEventPayload, be as EventHandler, b2 as EventPayload, bd as EventPayloadMap, b0 as EventType, $ as FragmentMetadata, aG as GenerateTextParams, am as Handler, aN as ImageDescriptionParams, aM as ImageGenerationParams, b7 as InvokePayload, av as IsValidServiceType, aS as JSONSchema, ad as KnowledgeItem, ae as KnowledgeScope, F as Media, aV as MemoryRetrievalOptions, Y as MemoryScope, aW as MemorySearchOptions, X as MemoryType, V as MemoryTypeAlias, aj as MessageExample, a3 as MessageMemory, a0 as MessageMetadata, b5 as MessagePayload, bc as MessageReceivedHandlerParams, bb as ModelEventPayload, aF as ModelType, aX as MultiRoomMemoryOptions, aT as ObjectGenerationParams, b1 as PlatformPrefix, aq as PluginEvents, as as Project, ar as ProjectAgent, ap as ProviderResult, ai as RoomMetadata, b8 as RunEventPayload, bh as SOCKET_MESSAGE_TYPE, bl as ServiceBuilder, ax as ServiceClassMap, bn as ServiceDefinition, aD as ServiceError, ay as ServiceInstance, az as ServiceRegistry, aA as ServiceType, at as ServiceTypeRegistry, au as ServiceTypeValue, N as StateArray, K as StateObject, J as StateValue, bg as TaskMetadata, bj as TestCase, bk as TestSuite, aK as TextEmbeddingParams, aJ as TextGenerationParams, aP as TextToSpeechParams, aL as TokenizeTextParams, aO as TranscriptionParams, bf as TypedEventHandler, aB as TypedService, aw as TypedServiceClass, aY as UnifiedMemoryOptions, aZ as UnifiedSearchOptions, a$ as VECTOR_DIMS, an as Validator, aR as VideoProcessingParams, b3 as WorldPayload, D as asUUID, a4 as createMessageMemory, bm as createService, aE as createServiceError, bo as defineService, ac as getMemoryText, aC 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-C7vN6HiA.js';
|
|
3
3
|
import * as pino from 'pino';
|
|
4
|
-
import { Tracer, Meter, Span, Context } from '@opentelemetry/api';
|
|
5
4
|
import * as browser from '@sentry/browser';
|
|
6
5
|
export { browser as Sentry };
|
|
7
6
|
export { i as v1 } from './index-BHW44X0A.js';
|
|
8
|
-
import './types-
|
|
7
|
+
import './types-szUq9-0V.js';
|
|
9
8
|
import './specs/v1/messages.js';
|
|
10
9
|
import './specs/v1/types.js';
|
|
11
10
|
import 'stream';
|
|
@@ -17,6 +16,333 @@ import './specs/v1/actionExample.js';
|
|
|
17
16
|
import './specs/v1/provider.js';
|
|
18
17
|
import './specs/v1/templates.js';
|
|
19
18
|
|
|
19
|
+
/**
|
|
20
|
+
* Represents an agent's registration details within a Trusted Execution Environment (TEE) context.
|
|
21
|
+
* This is typically stored in a database table (e.g., `TeeAgent`) to manage agents operating in a TEE.
|
|
22
|
+
* It allows for multiple registrations of the same `agentId` to support scenarios where an agent might restart,
|
|
23
|
+
* generating a new keypair and attestation each time.
|
|
24
|
+
*/
|
|
25
|
+
interface TeeAgent {
|
|
26
|
+
/** Primary key for the TEE agent registration record (e.g., a UUID or auto-incrementing ID). */
|
|
27
|
+
id: string;
|
|
28
|
+
/** The core identifier of the agent, which can be duplicated across multiple TEE registrations. */
|
|
29
|
+
agentId: string;
|
|
30
|
+
/** The human-readable name of the agent. */
|
|
31
|
+
agentName: string;
|
|
32
|
+
/** Timestamp (e.g., Unix epoch in milliseconds) when this TEE registration was created. */
|
|
33
|
+
createdAt: number;
|
|
34
|
+
/** The public key associated with this specific TEE agent instance/session. */
|
|
35
|
+
publicKey: string;
|
|
36
|
+
/** The attestation document proving the authenticity and integrity of the TEE instance. */
|
|
37
|
+
attestation: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Defines the operational modes for a Trusted Execution Environment (TEE).
|
|
41
|
+
* This enum is used to configure how TEE functionalities are engaged, allowing for
|
|
42
|
+
* different setups for local development, Docker-based development, and production.
|
|
43
|
+
*/
|
|
44
|
+
declare enum TEEMode {
|
|
45
|
+
/** TEE functionality is completely disabled. */
|
|
46
|
+
OFF = "OFF",
|
|
47
|
+
/** For local development, potentially using a TEE simulator. */
|
|
48
|
+
LOCAL = "LOCAL",// For local development with simulator
|
|
49
|
+
/** For Docker-based development environments, possibly with a TEE simulator. */
|
|
50
|
+
DOCKER = "DOCKER",// For docker development with simulator
|
|
51
|
+
/** For production deployments, using actual TEE hardware without a simulator. */
|
|
52
|
+
PRODUCTION = "PRODUCTION"
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Represents a quote obtained during remote attestation for a Trusted Execution Environment (TEE).
|
|
56
|
+
* This quote is a piece of evidence provided by the TEE, cryptographically signed, which can be
|
|
57
|
+
* verified by a relying party to ensure the TEE's integrity and authenticity.
|
|
58
|
+
*/
|
|
59
|
+
interface RemoteAttestationQuote {
|
|
60
|
+
/** The attestation quote data, typically a base64 encoded string or similar format. */
|
|
61
|
+
quote: string;
|
|
62
|
+
/** Timestamp (e.g., Unix epoch in milliseconds) when the quote was generated or received. */
|
|
63
|
+
timestamp: number;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Data structure used in the attestation process for deriving a key within a Trusted Execution Environment (TEE).
|
|
67
|
+
* This information helps establish a secure channel or verify the identity of the agent instance
|
|
68
|
+
* requesting key derivation.
|
|
69
|
+
*/
|
|
70
|
+
interface DeriveKeyAttestationData {
|
|
71
|
+
/** The unique identifier of the agent for which the key derivation is being attested. */
|
|
72
|
+
agentId: string;
|
|
73
|
+
/** The public key of the agent instance involved in the key derivation process. */
|
|
74
|
+
publicKey: string;
|
|
75
|
+
/** Optional subject or context information related to the key derivation. */
|
|
76
|
+
subject?: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Represents a message that has been attested by a Trusted Execution Environment (TEE).
|
|
80
|
+
* This structure binds a message to an agent's identity and a timestamp, all within the
|
|
81
|
+
* context of a remote attestation process, ensuring the message originated from a trusted TEE instance.
|
|
82
|
+
*/
|
|
83
|
+
interface RemoteAttestationMessage {
|
|
84
|
+
/** The unique identifier of the agent sending the attested message. */
|
|
85
|
+
agentId: string;
|
|
86
|
+
/** Timestamp (e.g., Unix epoch in milliseconds) when the message was attested or sent. */
|
|
87
|
+
timestamp: number;
|
|
88
|
+
/** The actual message content, including details about the entity, room, and the content itself. */
|
|
89
|
+
message: {
|
|
90
|
+
entityId: string;
|
|
91
|
+
roomId: string;
|
|
92
|
+
content: string;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Enumerates different types or vendors of Trusted Execution Environments (TEEs).
|
|
97
|
+
* This allows the system to adapt to specific TEE technologies, like Intel TDX on DSTACK.
|
|
98
|
+
*/
|
|
99
|
+
declare enum TeeType {
|
|
100
|
+
/** Represents Intel Trusted Domain Extensions (TDX) running on DSTACK infrastructure. */
|
|
101
|
+
TDX_DSTACK = "tdx_dstack"
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Configuration for a TEE (Trusted Execution Environment) plugin.
|
|
105
|
+
* This allows specifying the TEE vendor and any vendor-specific configurations.
|
|
106
|
+
* It's used to initialize and configure TEE-related functionalities within the agent system.
|
|
107
|
+
*/
|
|
108
|
+
interface TeePluginConfig {
|
|
109
|
+
/** Optional. The name or identifier of the TEE vendor (e.g., 'tdx_dstack' from `TeeType`). */
|
|
110
|
+
vendor?: string;
|
|
111
|
+
/** Optional. Vendor-specific configuration options, conforming to `TeeVendorConfig`. */
|
|
112
|
+
vendorConfig?: Metadata;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* A standardized representation of a token holding.
|
|
117
|
+
*/
|
|
118
|
+
interface TokenBalance {
|
|
119
|
+
address: string;
|
|
120
|
+
balance: string;
|
|
121
|
+
decimals: number;
|
|
122
|
+
uiAmount?: number;
|
|
123
|
+
name?: string;
|
|
124
|
+
symbol?: string;
|
|
125
|
+
logoURI?: string;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Generic representation of token data that can be provided by various services.
|
|
129
|
+
*/
|
|
130
|
+
interface TokenData {
|
|
131
|
+
id: string;
|
|
132
|
+
symbol: string;
|
|
133
|
+
name: string;
|
|
134
|
+
address: string;
|
|
135
|
+
chain: string;
|
|
136
|
+
sourceProvider: string;
|
|
137
|
+
price?: number;
|
|
138
|
+
priceChange24hPercent?: number;
|
|
139
|
+
priceChange24hUSD?: number;
|
|
140
|
+
volume24hUSD?: number;
|
|
141
|
+
marketCapUSD?: number;
|
|
142
|
+
liquidity?: number;
|
|
143
|
+
holders?: number;
|
|
144
|
+
logoURI?: string;
|
|
145
|
+
decimals?: number;
|
|
146
|
+
lastUpdatedAt?: Date;
|
|
147
|
+
raw?: any;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Interface for a generic service that provides token data.
|
|
151
|
+
*/
|
|
152
|
+
declare abstract class ITokenDataService extends Service {
|
|
153
|
+
static readonly serviceType: "token_data";
|
|
154
|
+
readonly capabilityDescription: string;
|
|
155
|
+
/**
|
|
156
|
+
* Fetches detailed information for a single token.
|
|
157
|
+
* @param address The token's contract address.
|
|
158
|
+
* @param chain The blockchain the token resides on.
|
|
159
|
+
* @returns A Promise resolving to TokenData or null if not found.
|
|
160
|
+
*/
|
|
161
|
+
abstract getTokenDetails(address: string, chain: string): Promise<TokenData | null>;
|
|
162
|
+
/**
|
|
163
|
+
* Fetches a list of trending tokens.
|
|
164
|
+
* @param chain Optional: Filter by a specific blockchain.
|
|
165
|
+
* @param limit Optional: Number of tokens to return. Defaults to a service-specific value.
|
|
166
|
+
* @param timePeriod Optional: Time period for trending data (e.g., '24h', '7d'). Defaults to service-specific.
|
|
167
|
+
* @returns A Promise resolving to an array of TokenData.
|
|
168
|
+
*/
|
|
169
|
+
abstract getTrendingTokens(chain?: string, limit?: number, timePeriod?: string): Promise<TokenData[]>;
|
|
170
|
+
/**
|
|
171
|
+
* Searches for tokens based on a query string.
|
|
172
|
+
* @param query The search query (e.g., symbol, name, address).
|
|
173
|
+
* @param chain Optional: Filter by a specific blockchain.
|
|
174
|
+
* @param limit Optional: Number of results to return.
|
|
175
|
+
* @returns A Promise resolving to an array of TokenData.
|
|
176
|
+
*/
|
|
177
|
+
abstract searchTokens(query: string, chain?: string, limit?: number): Promise<TokenData[]>;
|
|
178
|
+
/**
|
|
179
|
+
* Fetches data for multiple tokens by their addresses on a specific chain.
|
|
180
|
+
* @param addresses Array of token contract addresses.
|
|
181
|
+
* @param chain The blockchain the tokens reside on.
|
|
182
|
+
* @returns A Promise resolving to an array of TokenData. May not include all requested if some are not found.
|
|
183
|
+
*/
|
|
184
|
+
abstract getTokensByAddresses(addresses: string[], chain: string): Promise<TokenData[]>;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Represents a single asset holding within a wallet, including its value.
|
|
189
|
+
* This extends a generic TokenBalance with wallet-specific valuation.
|
|
190
|
+
*/
|
|
191
|
+
interface WalletAsset extends TokenBalance {
|
|
192
|
+
priceUsd?: number;
|
|
193
|
+
valueUsd?: number;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Represents the entire portfolio of assets in a wallet.
|
|
197
|
+
*/
|
|
198
|
+
interface WalletPortfolio {
|
|
199
|
+
totalValueUsd: number;
|
|
200
|
+
assets: WalletAsset[];
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Abstract interface for a Wallet Service.
|
|
204
|
+
* Plugins that provide wallet functionality (e.g., for Solana, EVM) should implement this service.
|
|
205
|
+
* It provides a standardized way for other plugins to query the state of a wallet.
|
|
206
|
+
*/
|
|
207
|
+
declare abstract class IWalletService extends Service {
|
|
208
|
+
static readonly serviceType: "wallet";
|
|
209
|
+
readonly capabilityDescription = "Provides standardized access to wallet balances and portfolios.";
|
|
210
|
+
/**
|
|
211
|
+
* Retrieves the entire portfolio of assets held by the wallet.
|
|
212
|
+
* @param owner - Optional: The specific wallet address/owner to query if the service manages multiple.
|
|
213
|
+
* @returns A promise that resolves to the wallet's portfolio.
|
|
214
|
+
*/
|
|
215
|
+
abstract getPortfolio(owner?: string): Promise<WalletPortfolio>;
|
|
216
|
+
/**
|
|
217
|
+
* Retrieves the balance of a specific asset in the wallet.
|
|
218
|
+
* @param assetAddress - The mint address or native identifier of the asset.
|
|
219
|
+
* @param owner - Optional: The specific wallet address/owner to query.
|
|
220
|
+
* @returns A promise that resolves to the user-friendly (decimal-adjusted) balance of the asset held.
|
|
221
|
+
*/
|
|
222
|
+
abstract getBalance(assetAddress: string, owner?: string): Promise<number>;
|
|
223
|
+
/**
|
|
224
|
+
* Transfers SOL from a specified keypair to a given public key.
|
|
225
|
+
* This is a low-level function primarily for Solana-based wallet services.
|
|
226
|
+
* @param from - The Keypair of the sender.
|
|
227
|
+
* @param to - The PublicKey of the recipient.
|
|
228
|
+
* @param lamports - The amount in lamports to transfer.
|
|
229
|
+
* @returns A promise that resolves with the transaction signature.
|
|
230
|
+
*/
|
|
231
|
+
abstract transferSol(from: any, to: any, lamports: number): Promise<string>;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* A standardized representation of a liquidity pool from any DEX.
|
|
236
|
+
*/
|
|
237
|
+
type PoolInfo = {
|
|
238
|
+
id: string;
|
|
239
|
+
displayName?: string;
|
|
240
|
+
dex: string;
|
|
241
|
+
tokenA: {
|
|
242
|
+
mint: string;
|
|
243
|
+
symbol?: string;
|
|
244
|
+
reserve?: string;
|
|
245
|
+
decimals?: number;
|
|
246
|
+
};
|
|
247
|
+
tokenB: {
|
|
248
|
+
mint: string;
|
|
249
|
+
symbol?: string;
|
|
250
|
+
reserve?: string;
|
|
251
|
+
decimals?: number;
|
|
252
|
+
};
|
|
253
|
+
lpTokenMint?: string;
|
|
254
|
+
apr?: number;
|
|
255
|
+
apy?: number;
|
|
256
|
+
tvl?: number;
|
|
257
|
+
fee?: number;
|
|
258
|
+
metadata?: Metadata;
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* A standardized representation of a user's position in a liquidity pool.
|
|
262
|
+
*/
|
|
263
|
+
type LpPositionDetails = {
|
|
264
|
+
poolId: string;
|
|
265
|
+
dex: string;
|
|
266
|
+
lpTokenBalance: TokenBalance;
|
|
267
|
+
underlyingTokens: TokenBalance[];
|
|
268
|
+
valueUsd?: number;
|
|
269
|
+
accruedFees?: TokenBalance[];
|
|
270
|
+
rewards?: TokenBalance[];
|
|
271
|
+
metadata?: Metadata;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* A standardized result for blockchain transactions.
|
|
275
|
+
*/
|
|
276
|
+
type TransactionResult = {
|
|
277
|
+
success: boolean;
|
|
278
|
+
transactionId?: string;
|
|
279
|
+
error?: string;
|
|
280
|
+
data?: any;
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* Abstract interface for a Liquidity Pool Service.
|
|
284
|
+
* DEX-specific plugins (e.g., for Orca, Raydium) must implement this service
|
|
285
|
+
* to allow the LP Manager to interact with them in a standardized way.
|
|
286
|
+
*/
|
|
287
|
+
declare abstract class ILpService extends Service {
|
|
288
|
+
static readonly serviceType = "lp";
|
|
289
|
+
readonly capabilityDescription = "Provides standardized access to DEX liquidity pools.";
|
|
290
|
+
/**
|
|
291
|
+
* Returns the name of the DEX this service interacts with.
|
|
292
|
+
* @returns The name of the DEX (e.g., "Orca", "Raydium").
|
|
293
|
+
*/
|
|
294
|
+
abstract getDexName(): string;
|
|
295
|
+
/**
|
|
296
|
+
* Fetches a list of available liquidity pools from the DEX.
|
|
297
|
+
* @param tokenAMint - Optional: Filter pools by the mint address of the first token.
|
|
298
|
+
* @param tokenBMint - Optional: Filter pools by the mint address of the second token.
|
|
299
|
+
* @returns A promise that resolves to an array of standardized PoolInfo objects.
|
|
300
|
+
*/
|
|
301
|
+
abstract getPools(tokenAMint?: string, tokenBMint?: string): Promise<PoolInfo[]>;
|
|
302
|
+
/**
|
|
303
|
+
* Adds liquidity to a specified pool.
|
|
304
|
+
* @param params - The parameters for adding liquidity.
|
|
305
|
+
* @returns A promise resolving to a transaction result, including the LP tokens received.
|
|
306
|
+
*/
|
|
307
|
+
abstract addLiquidity(params: {
|
|
308
|
+
userVault: any;
|
|
309
|
+
poolId: string;
|
|
310
|
+
tokenAAmountLamports: string;
|
|
311
|
+
tokenBAmountLamports?: string;
|
|
312
|
+
slippageBps: number;
|
|
313
|
+
tickLowerIndex?: number;
|
|
314
|
+
tickUpperIndex?: number;
|
|
315
|
+
}): Promise<TransactionResult & {
|
|
316
|
+
lpTokensReceived?: TokenBalance;
|
|
317
|
+
}>;
|
|
318
|
+
/**
|
|
319
|
+
* Removes liquidity from a specified pool.
|
|
320
|
+
* @param params - The parameters for removing liquidity.
|
|
321
|
+
* @returns A promise resolving to a transaction result, including the tokens received.
|
|
322
|
+
*/
|
|
323
|
+
abstract removeLiquidity(params: {
|
|
324
|
+
userVault: any;
|
|
325
|
+
poolId: string;
|
|
326
|
+
lpTokenAmountLamports: string;
|
|
327
|
+
slippageBps: number;
|
|
328
|
+
}): Promise<TransactionResult & {
|
|
329
|
+
tokensReceived?: TokenBalance[];
|
|
330
|
+
}>;
|
|
331
|
+
/**
|
|
332
|
+
* Fetches the details of a specific LP position for a user.
|
|
333
|
+
* @param userAccountPublicKey - The user's wallet public key.
|
|
334
|
+
* @param poolOrPositionIdentifier - The identifier for the pool or a specific position (e.g., position NFT mint).
|
|
335
|
+
* @returns A promise resolving to the position details or null if not found.
|
|
336
|
+
*/
|
|
337
|
+
abstract getLpPositionDetails(userAccountPublicKey: string, poolOrPositionIdentifier: string): Promise<LpPositionDetails | null>;
|
|
338
|
+
/**
|
|
339
|
+
* Fetches the latest market data (e.g., APY, TVL) for a list of pools.
|
|
340
|
+
* @param poolIds - An array of pool IDs to fetch data for.
|
|
341
|
+
* @returns A promise resolving to a map of pool IDs to their partial market data.
|
|
342
|
+
*/
|
|
343
|
+
abstract getMarketDataForPools(poolIds: string[]): Promise<Record<string, Partial<PoolInfo>>>;
|
|
344
|
+
}
|
|
345
|
+
|
|
20
346
|
/**
|
|
21
347
|
* Composes a set of example conversations based on provided actions and a specified count.
|
|
22
348
|
* It randomly selects examples from the provided actions and formats them with generated names.
|
|
@@ -55,11 +381,27 @@ declare abstract class DatabaseAdapter<DB = unknown> implements IDatabaseAdapter
|
|
|
55
381
|
* The database instance.
|
|
56
382
|
*/
|
|
57
383
|
db: DB;
|
|
384
|
+
/**
|
|
385
|
+
* Initialize the database adapter.
|
|
386
|
+
* @returns A Promise that resolves when initialization is complete.
|
|
387
|
+
*/
|
|
388
|
+
abstract initialize(config?: any): Promise<void>;
|
|
58
389
|
/**
|
|
59
390
|
* Initialize the database adapter.
|
|
60
391
|
* @returns A Promise that resolves when initialization is complete.
|
|
61
392
|
*/
|
|
62
393
|
abstract init(): Promise<void>;
|
|
394
|
+
/**
|
|
395
|
+
* Run database migrations
|
|
396
|
+
* @param migrationsPaths Optional array of paths to migration folders
|
|
397
|
+
* @returns A Promise that resolves when migrations are complete.
|
|
398
|
+
*/
|
|
399
|
+
abstract runMigrations(migrationsPaths?: string[]): Promise<void>;
|
|
400
|
+
/**
|
|
401
|
+
* Check if the database connection is ready.
|
|
402
|
+
* @returns A Promise that resolves to true if the database is ready, false otherwise.
|
|
403
|
+
*/
|
|
404
|
+
abstract isReady(): Promise<boolean>;
|
|
63
405
|
/**
|
|
64
406
|
* Optional close method for the database adapter.
|
|
65
407
|
* @returns A Promise that resolves when closing is complete.
|
|
@@ -239,6 +581,12 @@ declare abstract class DatabaseAdapter<DB = unknown> implements IDatabaseAdapter
|
|
|
239
581
|
* @returns A Promise that resolves when the memory has been removed.
|
|
240
582
|
*/
|
|
241
583
|
abstract deleteMemory(memoryId: UUID): Promise<void>;
|
|
584
|
+
/**
|
|
585
|
+
* Removes multiple memories from the database in a single batch operation.
|
|
586
|
+
* @param memoryIds An array of UUIDs of the memories to remove.
|
|
587
|
+
* @returns A Promise that resolves when all memories have been removed.
|
|
588
|
+
*/
|
|
589
|
+
abstract deleteManyMemories(memoryIds: UUID[]): Promise<void>;
|
|
242
590
|
/**
|
|
243
591
|
* Removes all memories associated with a specific room.
|
|
244
592
|
* @param roomId The UUID of the room whose memories should be removed.
|
|
@@ -423,12 +771,6 @@ declare abstract class DatabaseAdapter<DB = unknown> implements IDatabaseAdapter
|
|
|
423
771
|
* @returns A Promise that resolves to a boolean indicating success or failure of the deletion.
|
|
424
772
|
*/
|
|
425
773
|
abstract deleteAgent(agentId: UUID): Promise<boolean>;
|
|
426
|
-
/**
|
|
427
|
-
* Ensures an agent exists in the database.
|
|
428
|
-
* @param agent The agent object to ensure exists.
|
|
429
|
-
* @returns A Promise that resolves when the agent has been ensured to exist.
|
|
430
|
-
*/
|
|
431
|
-
abstract ensureAgentExists(agent: Partial<Agent>): Promise<Agent>;
|
|
432
774
|
/**
|
|
433
775
|
* Ensures an embedding dimension exists in the database.
|
|
434
776
|
* @param dimension The dimension to ensure exists.
|
|
@@ -558,7 +900,7 @@ declare let logger: pino.Logger<string, boolean>;
|
|
|
558
900
|
declare const elizaLogger: pino.Logger<string, boolean>;
|
|
559
901
|
|
|
560
902
|
declare const shouldRespondTemplate = "<task>Decide on behalf of {{agentName}} whether they should respond to the message, ignore it or stop the conversation.</task>\n\n<providers>\n{{providers}}\n</providers>\n\n<instructions>Decide if {{agentName}} should respond to or interact with the conversation.\nIf the message is directed at or relevant to {{agentName}}, respond with RESPOND action.\nIf a user asks {{agentName}} to be quiet, respond with STOP action.\nIf {{agentName}} should ignore the message, respond with IGNORE action.</instructions>\n\n<output>\nDo NOT include any thinking, reasoning, or <think> sections in your response. \nGo directly to the XML response format without any preamble or explanation.\n\nRespond using XML format like this:\n<response>\n <name>{{agentName}}</name>\n <reasoning>Your reasoning here</reasoning>\n <action>RESPOND | IGNORE | STOP</action>\n</response>\n\nIMPORTANT: Your response must ONLY contain the <response></response> XML block above. Do not include any text, thinking, or reasoning before or after this XML block. Start your response immediately with <response> and end with </response>.\n</output>";
|
|
561
|
-
declare const messageHandlerTemplate = "<task>Generate dialog and actions for the character {{agentName}}.</task>\n\n<providers>\n{{providers}}\n</providers>\n\nThese are the available valid actions:\n<actionNames>\n{{actionNames}}\n</actionNames>\n\n<instructions>\
|
|
903
|
+
declare const messageHandlerTemplate = "<task>Generate dialog and actions for the character {{agentName}}.</task>\n\n<providers>\n{{providers}}\n</providers>\n\nThese are the available valid actions:\n<actionNames>\n{{actionNames}}\n</actionNames>\n\n<instructions>\nAnalyze the message and create a response plan for {{agentName}}.\n\nSTEP 1 - DETERMINE RESPONSE TYPE:\n- SIMPLE RESPONSE: If you only need to send a text reply without any tools, data lookups, or complex operations\n \u2192 Use only REPLY action with no providers\n \u2192 This is the preferred path for basic conversations\n \u2192 Do NOT use this for questions that require checking stored knowledge!\n \n- COMPLEX RESPONSE: If you need to:\n \u2192 Use external tools or services (CALL_TOOL, etc.)\n \u2192 Look up specific information (needs providers like KNOWLEDGE, ATTACHMENTS, etc.)\n \u2192 Answer questions about what you know or might know (ALWAYS check KNOWLEDGE first!)\n \u2192 Perform multiple operations\n \u2192 Update data or settings\n\nSTEP 2 - PROVIDER SELECTION (for complex responses):\nIMPORTANT PROVIDER SELECTION RULES:\n- If the message mentions images, photos, pictures, attachments, or visual content, OR if you see \"(Attachments:\" in the conversation, you MUST include \"ATTACHMENTS\" in your providers list\n- If the message asks about or references specific people, include \"ENTITIES\" in your providers list \n- If the message asks about relationships or connections between people, include \"RELATIONSHIPS\" in your providers list\n- If the message asks about facts or specific information, include \"FACTS\" in your providers list\n- If the message asks about the environment or world context, include \"WORLD\" in your providers list\n- **CRITICAL: If the message asks \"do you know\", \"who created\", \"what is\", \"tell me about\", or ANY question that might be answered by stored knowledge, you MUST include \"KNOWLEDGE\" in your providers list. Always check KNOWLEDGE before saying you don't know something!**\n- Some actions may require specific providers (this will be clear from the action's purpose)\n\nREMEMBER: It's better to check providers and find nothing than to assume you don't have information without checking!\n\nSTEP 3 - ACTION PLANNING:\nFor complex responses, consider the order of actions:\n- If using tools (CALL_TOOL, etc.): First REPLY to acknowledge the request (e.g., \"Let me check that for you\"), then execute the tool action\n- Tool actions often handle their own responses, so you may not need a final REPLY after them\n- Actions should flow logically: acknowledge \u2192 gather data \u2192 process \u2192 respond\n\nThink about your response as a plan:\n1. What is the user asking for?\n2. Do I need any additional context or data? (providers)\n3. What actions do I need to take and in what order?\n4. How will I communicate the results?\n</instructions>\n\n<output_format>\nFirst, think about what you want to do and create your plan.\n\nFor SIMPLE responses (text-only reply):\n- Set thought to explain your reasoning\n- Set actions to [\"REPLY\"]\n- Leave providers empty or set to []\n- Set text to your response message\n\nFor COMPLEX responses (using tools/providers):\n- Set thought to explain your plan and reasoning\n- Set actions in the order they should execute (e.g., [\"REPLY\", \"CALL_TOOL\"])\n- Set providers to gather needed context\n- Set text for your initial response (if using REPLY first)\n\nRemember: Some actions like CALL_TOOL will send their own responses, so plan accordingly.\n</output_format>\n\n<response>\n <thought>User asking if I know something - must check KNOWLEDGE provider first before saying I don't know</thought>\n <actions>REPLY</actions>\n <providers>KNOWLEDGE</providers>\n <text>Let me check if I have any information about Roxane's creator...</text>\n</response>\n</examples>\n\n<keys>\n\"thought\" should be a short description of what the agent is thinking about and their plan\n\"actions\" should be a comma-separated list of the actions {{agentName}} plans to take in order (if none, use IGNORE, if simply responding with text, use REPLY)\n\"providers\" should be a comma-separated list of the providers that {{agentName}} will use to have the right context for responding and acting (leave empty for simple responses)\n\"evaluators\" should be an optional comma-separated list of the evaluators that {{agentName}} will use to evaluate the conversation after responding\n\"text\" should be the text of the next message for {{agentName}} (used with REPLY action)\n</keys>\n\n<output>\nDo NOT include any thinking, reasoning, or <think> sections in your response. \nGo directly to the XML response format without any preamble or explanation.\n\nRespond using XML format like this:\n<response>\n <thought>Your thought here</thought>\n <actions>ACTION1,ACTION2</actions>\n <providers>PROVIDER1,PROVIDER2</providers>\n <text>Your response text here</text>\n</response>\n\nIMPORTANT: Your response must ONLY contain the <response></response> XML block above. Do not include any text, thinking, or reasoning before or after this XML block. Start your response immediately with <response> and end with </response>.\n</output>";
|
|
562
904
|
declare const postCreationTemplate = "# Task: Create a post in the voice and style and perspective of {{agentName}} @{{twitterUserName}}.\n\nExample task outputs:\n1. A post about the importance of AI in our lives\n<response>\n <thought>I am thinking about writing a post about the importance of AI in our lives</thought>\n <post>AI is changing the world and it is important to understand how it works</post>\n <imagePrompt>A futuristic cityscape with flying cars and people using AI to do things</imagePrompt>\n</response>\n\n2. A post about dogs\n<response>\n <thought>I am thinking about writing a post about dogs</thought>\n <post>Dogs are man's best friend and they are loyal and loving</post>\n <imagePrompt>A dog playing with a ball in a park</imagePrompt>\n</response>\n\n3. A post about finding a new job\n<response>\n <thought>Getting a job is hard, I bet there's a good tweet in that</thought>\n <post>Just keep going!</post>\n <imagePrompt>A person looking at a computer screen with a job search website</imagePrompt>\n</response>\n\n{{providers}}\n\nWrite a post that is {{adjective}} about {{topic}} (without mentioning {{topic}} directly), from the perspective of {{agentName}}. Do not add commentary or acknowledge this request, just write the post.\nYour response should be 1, 2, or 3 sentences (choose the length at random).\nYour response should not contain any questions. Brief, concise statements only. The total character count MUST be less than 280. No emojis. Use \\n\\n (double spaces) between statements if there are multiple statements in your response.\n\nYour output should be formatted in XML like this:\n<response>\n <thought>Your thought here</thought>\n <post>Your post text here</post>\n <imagePrompt>Optional image prompt here</imagePrompt>\n</response>\n\nThe \"post\" field should be the post you want to send. Do not including any thinking or internal reflection in the \"post\" field.\nThe \"imagePrompt\" field is optional and should be a prompt for an image that is relevant to the post. It should be a single sentence that captures the essence of the post. ONLY USE THIS FIELD if it makes sense that the post would benefit from an image.\nThe \"thought\" field should be a short description of what the agent is thinking about before responding, inlcuding a brief justification for the response. Includate an explanation how the post is relevant to the topic but unique and different than other posts.\n\nDo NOT include any thinking, reasoning, or <think> sections in your response. \nGo directly to the XML response format without any preamble or explanation.\n\nIMPORTANT: Your response must ONLY contain the <response></response> XML block above. Do not include any text, thinking, or reasoning before or after this XML block. Start your response immediately with <response> and end with </response>.";
|
|
563
905
|
declare const booleanFooter = "Respond with only a YES or a NO.";
|
|
564
906
|
declare const imageDescriptionTemplate = "<task>Analyze the provided image and generate a comprehensive description with multiple levels of detail.</task>\n\n<instructions>\nCarefully examine the image and provide:\n1. A concise, descriptive title that captures the main subject or scene\n2. A brief summary description (1-2 sentences) highlighting the key elements\n3. An extensive, detailed description that covers all visible elements, composition, lighting, colors, mood, and any other relevant details\n\nBe objective and descriptive. Focus on what you can actually see in the image rather than making assumptions about context or meaning.\n</instructions>\n\n<output>\nDo NOT include any thinking, reasoning, or <think> sections in your response. \nGo directly to the XML response format without any preamble or explanation.\n\nRespond using XML format like this:\n<response>\n <title>A concise, descriptive title for the image</title>\n <description>A brief 1-2 sentence summary of the key elements in the image</description>\n <text>An extensive, detailed description covering all visible elements, composition, lighting, colors, mood, setting, objects, people, activities, and any other relevant details you can observe in the image</text>\n</response>\n\nIMPORTANT: Your response must ONLY contain the <response></response> XML block above. Do not include any text, thinking, or reasoning before or after this XML block. Start your response immediately with <response> and end with </response>.\n</output>";
|
|
@@ -592,41 +934,6 @@ declare function getUserServerRole(runtime: IAgentRuntime, entityId: string, ser
|
|
|
592
934
|
*/
|
|
593
935
|
declare function findWorldsForOwner(runtime: IAgentRuntime, entityId: string): Promise<World[] | null>;
|
|
594
936
|
|
|
595
|
-
interface InstrumentationConfig {
|
|
596
|
-
serviceName?: string;
|
|
597
|
-
otlpEndpoint?: string;
|
|
598
|
-
enabled?: boolean;
|
|
599
|
-
}
|
|
600
|
-
interface IInstrumentationService {
|
|
601
|
-
readonly name: string;
|
|
602
|
-
readonly capabilityDescription: string;
|
|
603
|
-
instrumentationConfig: InstrumentationConfig;
|
|
604
|
-
isEnabled(): boolean;
|
|
605
|
-
getTracer(name?: string, version?: string): Tracer | null;
|
|
606
|
-
getMeter(name?: string, version?: string): Meter | null;
|
|
607
|
-
flush(): Promise<void>;
|
|
608
|
-
stop(): Promise<void>;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
declare class InstrumentationService extends Service implements IInstrumentationService {
|
|
612
|
-
static serviceType: "instrumentation";
|
|
613
|
-
readonly name = "INSTRUMENTATION";
|
|
614
|
-
readonly capabilityDescription = "Provides OpenTelemetry tracing and metrics capabilities.";
|
|
615
|
-
instrumentationConfig: InstrumentationConfig;
|
|
616
|
-
private resource;
|
|
617
|
-
private tracerProvider;
|
|
618
|
-
private meterProvider;
|
|
619
|
-
private isShutdown;
|
|
620
|
-
constructor(config?: InstrumentationConfig);
|
|
621
|
-
private initializeProviders;
|
|
622
|
-
isEnabled(): boolean;
|
|
623
|
-
getTracer(name?: string, version?: string): Tracer | null;
|
|
624
|
-
getMeter(name?: string, version?: string): Meter | null;
|
|
625
|
-
flush(): Promise<void>;
|
|
626
|
-
stop(): Promise<void>;
|
|
627
|
-
static start(runtime: IAgentRuntime, config?: InstrumentationConfig): Promise<InstrumentationService>;
|
|
628
|
-
}
|
|
629
|
-
|
|
630
937
|
declare class Semaphore {
|
|
631
938
|
private permits;
|
|
632
939
|
private waiting;
|
|
@@ -667,8 +974,6 @@ declare class AgentRuntime implements IAgentRuntime {
|
|
|
667
974
|
logger: any;
|
|
668
975
|
private settings;
|
|
669
976
|
private servicesInitQueue;
|
|
670
|
-
instrumentationService: InstrumentationService;
|
|
671
|
-
tracer: any;
|
|
672
977
|
constructor(opts: {
|
|
673
978
|
conversationLength?: number;
|
|
674
979
|
agentId?: UUID;
|
|
@@ -682,14 +987,12 @@ declare class AgentRuntime implements IAgentRuntime {
|
|
|
682
987
|
};
|
|
683
988
|
allAvailablePlugins?: Plugin[];
|
|
684
989
|
});
|
|
685
|
-
startSpan<T>(name: string, fn: (span: Span) => Promise<T>, parentContext?: Context): Promise<T>;
|
|
686
|
-
endSpan(ctx: Context | undefined, name: string): void;
|
|
687
|
-
startActiveSpan(name: string, options?: any): Span;
|
|
688
990
|
registerPlugin(plugin: Plugin): Promise<void>;
|
|
689
991
|
private resolvePluginDependencies;
|
|
690
992
|
getAllServices(): Map<ServiceTypeName, Service>;
|
|
691
993
|
stop(): Promise<void>;
|
|
692
994
|
initialize(): Promise<void>;
|
|
995
|
+
runPluginMigrations(): Promise<void>;
|
|
693
996
|
getConnection(): Promise<unknown>;
|
|
694
997
|
setSetting(key: string, value: string | boolean | null | any, secret?: boolean): void;
|
|
695
998
|
getSetting(key: string): string | boolean | null | any;
|
|
@@ -831,6 +1134,7 @@ declare class AgentRuntime implements IAgentRuntime {
|
|
|
831
1134
|
metadata?: MemoryMetadata;
|
|
832
1135
|
}): Promise<boolean>;
|
|
833
1136
|
deleteMemory(memoryId: UUID): Promise<void>;
|
|
1137
|
+
deleteManyMemories(memoryIds: UUID[]): Promise<void>;
|
|
834
1138
|
deleteAllMemories(roomId: UUID, tableName: string): Promise<void>;
|
|
835
1139
|
countMemories(roomId: UUID, unique?: boolean, tableName?: string): Promise<number>;
|
|
836
1140
|
getLogs(params: {
|
|
@@ -904,6 +1208,8 @@ declare class AgentRuntime implements IAgentRuntime {
|
|
|
904
1208
|
count?: number;
|
|
905
1209
|
tableName?: string;
|
|
906
1210
|
}): Promise<Memory[]>;
|
|
1211
|
+
runMigrations(migrationsPaths?: string[]): Promise<void>;
|
|
1212
|
+
isReady(): Promise<boolean>;
|
|
907
1213
|
}
|
|
908
1214
|
|
|
909
1215
|
/**
|
|
@@ -1166,4 +1472,4 @@ declare function stringToUuid(target: string | number): UUID;
|
|
|
1166
1472
|
|
|
1167
1473
|
declare const defaultSpec: typeof v2;
|
|
1168
1474
|
|
|
1169
|
-
export { Action, Agent, AgentRuntime, ChannelType, Character, Component, Content, DatabaseAdapter, Entity, Evaluator, HandlerCallback, IAgentRuntime, IDatabaseAdapter,
|
|
1475
|
+
export { Action, Agent, AgentRuntime, ChannelType, Character, Component, Content, DatabaseAdapter, type DeriveKeyAttestationData, Entity, Evaluator, HandlerCallback, IAgentRuntime, IDatabaseAdapter, ILpService, ITokenDataService, IWalletService, Log, type LpPositionDetails, Memory, MemoryMetadata, Metadata, ModelHandler, ModelParamsMap, ModelResultMap, ModelTypeName, OnboardingConfig, Participant, Plugin, type PoolInfo, Provider, Relationship, type RemoteAttestationMessage, type RemoteAttestationQuote, Role, Room, Route, RuntimeSettings, Semaphore, SendHandlerFunction, type ServerOwnershipState, Service, ServiceTypeName, Setting, State, TEEMode, TargetInfo, Task, TaskWorker, type TeeAgent, type TeePluginConfig, TeeType, TemplateType, type TokenBalance, type TokenData, type TransactionResult, UUID, type WalletAsset, type WalletPortfolio, World, WorldSettings, addHeader, booleanFooter, composeActionExamples, composePrompt, composePromptFromState, createLogger, createSettingFromConfig, createUniqueUuid, decryptObjectValues, decryptStringValue as decryptSecret, decryptStringValue, decryptedCharacter, defaultSpec, elizaLogger, encryptObjectValues, encryptStringValue, encryptedCharacter, findEntityByName, findWorldsForOwner, formatActionNames, formatActions, formatEntities, formatMessages, formatPosts, formatTimestamp, getEntityDetails, getSalt, getUserServerRole, getWorldSettings, imageDescriptionTemplate, initializeOnboarding, logger, messageHandlerTemplate, normalizeJsonString, parseBooleanFromText, parseJSONObjectFromText, parseKeyValueXml, postCreationTemplate, safeReplacer, saltSettingValue, saltWorldSettings, shouldRespondTemplate, splitChunks, stringToUuid, trimTokens, truncateToCompleteSentence, unsaltSettingValue, unsaltWorldSettings, updateWorldSettings, v2, validateUuid };
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,9 @@ import {
|
|
|
6
6
|
ContentType,
|
|
7
7
|
DatabaseAdapter,
|
|
8
8
|
EventType,
|
|
9
|
-
|
|
9
|
+
ILpService,
|
|
10
|
+
ITokenDataService,
|
|
11
|
+
IWalletService,
|
|
10
12
|
KnowledgeScope,
|
|
11
13
|
MemoryType,
|
|
12
14
|
ModelType,
|
|
@@ -86,13 +88,13 @@ import {
|
|
|
86
88
|
v1_exports,
|
|
87
89
|
v2_exports,
|
|
88
90
|
validateUuid
|
|
89
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-6EXKM3O4.js";
|
|
90
92
|
import "./chunk-2HSL25IJ.js";
|
|
91
|
-
import "./chunk-
|
|
93
|
+
import "./chunk-WO7Z3GE6.js";
|
|
92
94
|
import "./chunk-U2ADTLZY.js";
|
|
93
95
|
import "./chunk-JX2SRFHQ.js";
|
|
94
96
|
import "./chunk-YIBXLDIR.js";
|
|
95
|
-
import "./chunk-
|
|
97
|
+
import "./chunk-R5U7XKVJ.js";
|
|
96
98
|
export {
|
|
97
99
|
AgentRuntime,
|
|
98
100
|
AgentStatus,
|
|
@@ -101,7 +103,9 @@ export {
|
|
|
101
103
|
ContentType,
|
|
102
104
|
DatabaseAdapter,
|
|
103
105
|
EventType,
|
|
104
|
-
|
|
106
|
+
ILpService,
|
|
107
|
+
ITokenDataService,
|
|
108
|
+
IWalletService,
|
|
105
109
|
KnowledgeScope,
|
|
106
110
|
MemoryType,
|
|
107
111
|
ModelType,
|
|
@@ -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-szUq9-0V.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-szUq9-0V.js';
|
package/dist/specs/v1/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
formatTimestamp3 as formatTimestamp,
|
|
8
8
|
generateUuidFromString,
|
|
9
9
|
getActorDetails
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-6EXKM3O4.js";
|
|
11
11
|
import {
|
|
12
12
|
createTemplateFunction,
|
|
13
13
|
getTemplateValues,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
ServiceType,
|
|
29
29
|
TokenizerType,
|
|
30
30
|
TranscriptionProvider
|
|
31
|
-
} from "../../chunk-
|
|
31
|
+
} from "../../chunk-WO7Z3GE6.js";
|
|
32
32
|
import {
|
|
33
33
|
convertContentToV1,
|
|
34
34
|
convertContentToV2,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
fromV2State,
|
|
44
44
|
toV2State
|
|
45
45
|
} from "../../chunk-YIBXLDIR.js";
|
|
46
|
-
import "../../chunk-
|
|
46
|
+
import "../../chunk-R5U7XKVJ.js";
|
|
47
47
|
export {
|
|
48
48
|
ActionTimelineType,
|
|
49
49
|
AgentRuntime,
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
formatMessages3 as formatMessages,
|
|
4
4
|
formatTimestamp3 as formatTimestamp,
|
|
5
5
|
getActorDetails
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-6EXKM3O4.js";
|
|
7
7
|
import "../../chunk-2HSL25IJ.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-WO7Z3GE6.js";
|
|
9
9
|
import "../../chunk-U2ADTLZY.js";
|
|
10
10
|
import "../../chunk-JX2SRFHQ.js";
|
|
11
11
|
import "../../chunk-YIBXLDIR.js";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-R5U7XKVJ.js";
|
|
13
13
|
export {
|
|
14
14
|
formatActors,
|
|
15
15
|
formatMessages,
|