ClientToolSessionSnapshot
The snapshot of a session that runs client tools: the session snapshot, with the tool calls, what blocks them and the outcome of the last tool command.
import type { ClientToolSessionSnapshot } from '@threadplane/ag-ui';Declaration
export type ClientToolSessionSnapshot<C extends Record<string, ToolContract>, TState = unknown> = SessionSnapshot<TState> & {
readonly clientTools: {
readonly calls: readonly ClientToolCall<C>[];
readonly blocker?: ClientToolBlocker;
readonly commandOutcome?: CompleteOutcome;
};
};Type parameters
CRecord<string, ToolContract>TStateDefault:unknown