API referenceType aliases
StreamEvent
Type Alias: StreamEvent
type StreamEvent =
| {
delta: string;
type: "text";
}
| {
delta: string;
type: "reasoning";
}
| {
type: "message_start";
}
| {
type: "message_end";
}
| {
args: unknown;
callId: string;
name: string;
type: "tool_call";
}
| {
callId: string;
content: string;
isError: boolean;
type: "tool_result";
};Defined in: packages/microfoom-core/src/session.ts:55
Incremental output during a turn. text/reasoning are token deltas (surfaced
to onToken). The rest carry transcript structure a harness observes from its
model loop — assistant message boundaries and the tool calls it made — so a
frontend can show the live conversation. A harness emits what it can; a minimal
one emits only text.
