@threadplane/ag-uiTypeAliasv0.3.7

SubmitInput

What submit accepts: the user's message as text, or an object carrying the message, optional structured content and an optional state patch.

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

Declaration

export type SubmitInput<TState = unknown> = string | {
    readonly message: string;
    readonly blocks?: readonly ContentBlock[];
    readonly state?: SubmitState<TState>;
};

Type parameters

TState
Default: unknown