An assistant message as an app supplies it, for example in a saved
transcript passed to setMessages. The id is optional: Hashbrown keeps a
supplied id and mints one when absent.
API
interface AssistantMessageInput<Output, ToolUnion extends AnyTool> extends Omit<AssistantMessage<Output, ToolUnion>, 'id'> {}AssistantMessageInput
@typeOutput@typeToolUnionAnyToolid
stringThe canonical AG-UI message id, when the app already has one. Hashbrown
mints one when it is absent. Ids must be unique within the thread:
sendMessage refuses, and does not send, a message whose id (or one of
whose tool-call ids) already exists in the message history.