MemoGrafterAgent
initialize()
Verify that storage is ready for the agent.
What it does
Verify that storage is ready for the agent.
When to use it
Call this once after constructor-based setup and before the first memory operation.
MemoGrafterAgent.create() already performs this step.Signature
TypeScript
initialize(): Promise<void>Behavior
Connects to storage and verifies that the expected migrated schema is available. It does not run migrations.
Side effects and completion
Opens the database and any configured Redis or queue resources.
Errors and empty results
Rejects when storage is unreachable or the installed schema is missing or incompatible.
Example
example.ts
await agent.initialize();