MemoGrafterAgent
clearSession()
Clear local history and stored memory for the current session.
What it does
Clear local history and stored memory for the current session.
This resets the current agent session, including persisted session memory. Treat it as a destructive user action and confirm intent in user-facing products.
Signature
TypeScript
clearSession(): Promise<void>Example
example.ts
await agent.clearSession();Important behavior
This is an explicit destructive reset of the current session.