The agent currently being executed.
Calling user — threaded through to SearchEngine + Metadata.
OptionalconversationOptional conversation summary.
The most recent user message — used as the default query when no template is configured.
OptionalpayloadAgent's current payload state. Available to templates under payload.
OptionalprimaryMulti-tenant primary scope entity ID.
OptionalprimaryMulti-tenant primary scope record ID (flows into SearchContext.PrimaryScopeRecordID).
OptionalrecentOptional recent messages (role + content) for template rendering.
OptionalsecondaryMulti-tenant secondary scope dimensions.
OptionalstreamingPhase 2C: when true, consume SearchEngine.streamSearch() instead of
the synchronous Search() per scope. The final aggregate is identical
— what changes is that intermediate provider traces are written to
streamingTrace (when supplied) so the agent's pre-execution
scratchpad can show "while you wait" progress. Default false.
OptionalstreamingOptional sink for streamingEnabled traces. Caller pushes nothing itself — the RAG hook appends one markdown line per provider event per scope. Caller decides what to do with the lines (typically concat into the agent's pre-prompt scratchpad).
Parameters for executing pre-execution RAG for an agent.