Message
Message is the normalized message shape stored in the chat state.
You usually read it back from useChatStore().getMessages().
What It Guarantees
Compared with InputMessage, a stored Message always has:
idrawContenttimestamp
Usage
tsx
import { useChatStore } from 'react-actions-chat';
const messages = useChatStore.getState().getMessages();That returns readonly Message[].
Common Uses
- reading transcript history
- finding the latest user-authored message
- inspecting
rawContentfor real submitted values - branching on
type,buttons, ortimestamp