Memory.getThreadById()
The .getThreadById() method retrieves a specific thread by its ID.
Usage ExampleDirect link to Usage Example
await memory?.getThreadById({ threadId: "thread-123" });
ParametersDirect link to Parameters
threadId:
string
The ID of the thread to be retrieved.
ReturnsDirect link to Returns
thread:
Promise<StorageThreadType | null>
A promise that resolves to the thread associated with the given ID, or null if not found.
RelatedDirect link to Related
- Memory Class Reference
- Getting Started with Memory (Covers threads concept)
- createThread
- getThreadsByResourceId