createAgentProjector
function createAgentProjector(options): AgentProjector;Defined in: react/src/agents.ts:417
Draws one agent run, live and saved, into one assistant message.
Rows use the SDK’s own ids: a text row is its model operation, a tool row its tool operation, a specialist row its run. A live event and a saved run name the same thing with the same value, which is what lets a client lay a snapshot over replayed progress without doubling a row. Those ids carry the root run id and each child’s key, so neither should hold private data.
By default nothing private is sent: not the input, the instructions, reasoning, tool
arguments or results, a specialist’s text, a tool name the model made up, a raw failure
message or an approval’s actor and resource. A tool row is its label and state, a failure is
its code and a plain sentence, a thinking row is when the model thought and for how long, and
the reserved submit_result call is never a row.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
AgentProjectorOptions |