Function: useGetHistory()
useGetHistory(
sessionId):Promise<AiMessage[]>
Defined in: src/core/services/assistant.service.ts:141
Returns the full message history of a session, oldest first.
Parameters
sessionId
string
The conversation session id.
Returns
Promise<AiMessage[]>
The accumulated messages.
Example
const history = await useGetHistory(sessionId);