Method
deleteChatMessage DELETE
Copy DELETE

Deletes a message in a chat session and its associated response.

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes chatSessionId str Unique ID of the chat session.
Yes messageIndex int The index of the chat message within the UI.
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.

Response:

KEY TYPE DESCRIPTION
success Boolean true if the call succeeded, false if there was an error

Exceptions:

TYPE WHEN
DataNotFoundError

chatSessionId is not found.

Language: