OwnedRootTerminal
The event that ended a root run, as the session keeps it: the fields of a
RUN_FINISHED, a RUN_ERROR or an interrupt notice, frozen.
import type { OwnedRootTerminal } from '@threadplane/ag-ui';Declaration
export type OwnedRootTerminal = DeepReadonly<Pick<RunFinishedEvent, 'type' | 'threadId' | 'runId' | 'result' | 'outcome' | 'timestamp' | 'metadata' | 'usage'> | Pick<RunErrorEvent, 'type' | 'message' | 'code' | 'timestamp' | 'metadata' | 'usage'> | Pick<CustomEvent, 'type' | 'name' | 'value' | 'timestamp' | 'metadata'>>;