Skip to content

Type Alias: AgentRehearsalEvent

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AgentRehearsalEvent

AgentRehearsalEvent = { delta: string; type: "token"; } | { rehearsal: AgentRehearsalView; type: "done"; } | { error: string; status?: number; type: "error"; }

Defined in: src/types/agent-instructions.ts:64

One event of an instructions rehearsal stream.

Discriminated on type: token (an answer delta), done (the saved receipt and the answer), error (with the HTTP status it stands for, when the engine names one).