MemoGrafterAgent
getActiveSegments()
Read active topic segments for the current session.
What it does
Read active topic segments for the current session.
The operation is scoped to the agent’s current session, so callers do not pass a session identifier on every call.
Signature
TypeScript
getActiveSegments(): Promise<TopicSegment[]>Example
example.ts
const segments = await agent.getActiveSegments();