@threadplane/langgraphTypeAliasv0.3.7

LangGraphSubmitInput

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

import type { LangGraphSubmitInput } from '@threadplane/langgraph';

Declaration

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

Type parameters

TState
Default: unknown