embedMessage
embedMessage(
ctx:StorageOperationsContext,messageId:string,options:MemoryRetrievalEmbeddingOptions):Promise<StoredMessage|null>
Defined in: src/lib/memoryRetrieval/embeddings.ts:153Â
Embed a single message and store the embedding in the database
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
Storage operations context | |
|
|
|
Unique ID of the message to embed |
|
|
Embedding options |
Returns
Promise<StoredMessage | null>
The updated message with embedding, or null if message not found
Last updated on