abacusai.deployment_conversation
Module Contents
Classes
A deployment conversation. |
- class abacusai.deployment_conversation.DeploymentConversation(client, deploymentConversationId=None, name=None, deploymentId=None, createdAt=None, history={})
Bases:
abacusai.return_class.AbstractApiClass
A deployment conversation.
- Parameters:
client (ApiClient) – An authenticated API Client instance
deploymentConversationId (str) – The unique identifier of the deployment conversation.
name (str) – The name of the deployment conversation.
deploymentId (str) – The deployment id associated with the deployment conversation.
createdAt (str) – The timestamp at which the deployment conversation was created.
history (DeploymentConversationEvent) – The history of the deployment conversation.
- __repr__()
Return repr(self).
- to_dict()
Get a dict representation of the parameters in this class
- Returns:
The dict value representation of the class parameters
- Return type:
- get()
Gets a deployment conversation.
- Parameters:
deployment_conversation_id (str) – Unique ID of the conversation.
- Returns:
The deployment conversation.
- Return type:
- delete()
Delete a Deployment Conversation.
- Parameters:
deployment_conversation_id (str) – A unique string identifier associated with the deployment conversation.
- set_feedback(message_index, is_useful=None, is_not_useful=None, feedback=None)
Sets a deployment conversation message as useful or not useful
- Parameters:
message_index (int) – The index of the deployment conversation message
is_useful (bool) – If the message is useful. If true, the message is useful. If false, clear the useful flag.
is_not_useful (bool) – If the message is not useful. If true, the message is not useful. If set to false, clear the useful flag.
feedback (str) – Optional feedback on why the message is useful or not useful