Skip to content

NodeGrounding

Per-node retrieval/memory scoping (W3). All optional; omitting grounding entirely leaves the node grounded exactly as the agent-wide default.

optional knowledge?: AgentKnowledgeOverrides & object;

Node-scoped knowledge overrides, merged OVER the agent’s (node wins). Most useful: filter (restrict to a node-specific doc subset) and autoRetrieve:false to skip retrieval for this node. topK/maxOutputTokens also honored.

Name Type

autoRetrieve?

boolean


optional memory?: object;

Node-scoped memory: preload:false skips memory preload for this node; tokenBudget overrides the agent default for this node only.

Name Type

preload?

boolean

tokenBudget?

number


optional query?: string | ((state, history) => string);

Retrieval/memory query for this node. A fixed topic string, or a function over current flow state + message history. Defaults to the last user message.