agenthub · memory.fetch
Pull the session's prior turns out of the memory service and inject them into the messages array.
Why the node earns its place
The read half of session memory, for graphs that want the pieces separately rather than fused into LLM with Memory. The graph owns when memory is read; the memory service stays deliberately dumb and only stores turns.
How it works at run time
limit prior messages for this session.inject_as.What you wire
Configuration
| Key | Type | Default & options | What it does |
|---|---|---|---|
| limit | number | default 10 | Max prior messages to fetch |
| inject_as | string | default "system" system · prepend | system: collapse history into one system message before the incoming messages. prepend: insert raw history messages before the incoming messages. |
What usually goes wrong
Watch for this
An empty result is indistinguishable from a memory service failure by design — both are swallowed so the chat path is never blocked. If recall is silently absent, confirm the run actually carries a session id.
Behaviour & provenance