Chat Sessions
getSessionMessages
Retrieve history (messages) of a session
Allows you to retrieve the list of messages associated with a specific chat session (user requests and agents responses). This can be useful for displaying chat messages to the user, analyzing conversation history, understanding user behavior within a session, and potentially debugging agent interactions.
Arguments
id
string
The session ID to get the messages of.
Response
messages
RunHistory[]
Returns a list of messages, usually following the pattern user
-> agent
-> user
-> agent
when running individual agents reflecting a basic back-and-forth conversation flow.
Was this page helpful?