Widens an update type so that its messages field also accepts
@langchain/core BaseMessage class instances (single or array).
Framework SDKs apply this to submit so callers can write:
stream.submit({ messages: new HumanMessage("hello") });
stream.submit({ messages: [new HumanMessage("hello")] });AcceptBaseMessages: T extends Record<
string,
unknown
> { [K in keyof T]: K extends "messages" T[K] | BaseMessage | BaseMessage[] : T[K] } : T