chaingpt_get_chat_history
Retrieve saved chat history by specifying a unique chat ID, with options to limit, offset, and sort results. Use this tool to access and manage conversation data efficiently.
Instructions
Get the chat history for a given chat blob id until the limit is reached retrieve saved chat history. By default, this will retrieve history entries associated with your API key. If you provide a specific sdkUniqueId, it will retrieve history entries associated with that chat blob id.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
limit | Yes | The maximum number of chat history items to return. Default is 10. | |
offset | Yes | The offset to start the chat history from. Default is 0. | |
sdkUniqueId | Yes | The unique id of the chat blob to get the history for. If not provided, it will return the chat history for all chat blobs until the limit is reached. | |
sortBy | Yes | The field to sort the chat history by. Default is 'createdAt'. | |
sortOrder | Yes | The order to sort the chat history by. Default is 'ASC'. |