SavedPause
A pause as a thread record keeps it.
import type { SavedPause } from '@threadplane/ag-ui';Declaration
export interface SavedPause {
readonly attempt?: {
readonly runId: string;
readonly responses: readonly NativeResponse[];
readonly forwardedProps?: CommandProps;
readonly acknowledged?: true;
};
readonly command?: {
readonly transport: Exclude<InterruptTransport, 'protocol'>;
readonly notice?: PlainValue;
};
readonly interrupts: readonly OwnedInterrupt[];
readonly sourceRunId: string;
}Members
attempt
The answer that was sent, when one was. A record that still holds it was saved before the answering run was known to have succeeded.
readonly attempt?: {
readonly runId: string;
readonly responses: readonly NativeResponse[];
readonly forwardedProps?: CommandProps;
readonly acknowledged?: true;
};command
Set when the pause is answered through forwardedProps.command.
readonly command?: {
readonly transport: Exclude<InterruptTransport, 'protocol'>;
readonly notice?: PlainValue;
};interrupts
readonly interrupts: readonly OwnedInterrupt[];sourceRunId
The run that paused.
readonly sourceRunId: string;