Get Chat History

Retrieve the message history for a chat conversation.

Args: chat_id: Identifier of the conversation whose history should be loaded. auth: Authentication context used to verify access to the conversation. redis: Redis connection where chat messages are stored.

Returns: A list of :class:ChatMessage objects or an empty list if no history exists.

get/chat/{chat_id}

Path parameters

chat_idstring required

Headers

authorizationstring

Response

Successful Response

role'user' | 'assistant' required
contentstring required
timestampstring
agent_dataobject nullable

Changes