MemoGrafterAgent
getSessionId()
Read the stable session identifier used by the agent.
What it does
Read the stable session identifier used by the agent.
The operation is scoped to the agent’s current session, so callers do not pass a session identifier on every call.
Signature
TypeScript
getSessionId(): stringResult
The current session ID.
Example
example.ts
const sessionId = agent.getSessionId();