AgentSubmitInput
What a caller submits: the message text, or the text with structured content, a partial state the backend merges before the run, or both.
blocks sends the message as structured content, such as an image with a
caption; message is then the text shown where blocks are not rendered
(see contentBlocksText). A session that holds no state ignores state,
and a session that cannot send blocks rejects them without sending. A
submission always carries a message; runWithoutMessage starts one without.
import type { AgentSubmitInput } from '@threadplane/angular/chat';Declaration
export type AgentSubmitInput<TState = unknown> = string | {
readonly message: string;
readonly blocks?: readonly ContentBlock[];
readonly state?: AgentStateUpdate<TState>;
};Type parameters
TStateDefault:unknown