Skip to content
providerkit
GitHub

FollowRunOptions

Defined in: react/src/agents.ts:1782

conversation: (reply) =>
| readonly DisplayMessage[]
| Promise<readonly DisplayMessage[]>;

Defined in: react/src/agents.ts:1797

The whole conversation for a snapshot: the host’s own messages with reply, this run’s message as the projector draws it, in its place. A snapshot replaces the whole list.

Parameter Type
reply DisplayMessage

| readonly DisplayMessage[] | Promise<readonly DisplayMessage[]>


optional cursor?: Cursor;

Defined in: react/src/agents.ts:1791

The viewer’s cursor. Without one, or with one from another run, the viewer gets the run from its start, opening with a snapshot of the conversation.


projector: AgentProjectorOptions;

Defined in: react/src/agents.ts:1785

A fresh projector is made from these for each viewer, because only one that saw the log from the run’s first record draws the rows after the viewer’s cursor as the live stream did.


read: () => Promise<TreeNode>;

Defined in: react/src/agents.ts:1794

The saved run, read after a gap in the log and when the last row ends. It holds private journals: check that this viewer may see the run before calling followRun.

Promise<TreeNode>


segments: readonly RunSegment[];

Defined in: react/src/agents.ts:1788

The run’s rows in order: the first, then one for each approval that continued it. Only the last can still grow.