@threadplane/ag-uiTypeAliasv0.3.7

SessionSnapshot

What an AG-UI session publishes: the core snapshot, with the protocol evidence behind it. state is the typed state; the literal document a request sends is not published.

import type { SessionSnapshot } from '@threadplane/ag-ui';

Declaration

export type SessionSnapshot<TState = unknown> = Omit<Observation, 'state' | 'subagents' | 'clientToolCatalog'> & Omit<AgentSnapshot<Record<string, ToolContract>, TState>, 'interrupts' | 'subagents'> & {
    readonly interrupts?: readonly SessionInterrupt[];
    readonly subagents: readonly SessionSubagent[];
    readonly stateIssues?: readonly string[];
    readonly inputBlocked?: SessionInputBlock;
};

Type parameters

TState
Default: unknown