Assemble context
Parameters
Injecting into the agent
Pass the context as part of the system prompt when you start the stream:Scope rules
Recall respects the same scope as the rest of memory: the agent + user pair. Working context and transcripts are thread-scoped, so they only appear whenthreadId matches. Durable facts cross thread boundaries, so the agent still remembers pinned preferences even in a brand-new thread.
Related
- Memory — the full three-step loop
- Persist — record the turn after the agent responds
- Memory Loop guide — end-to-end example