diff --git a/examples/conversations/run.py b/examples/conversations/run.py index 1d11875..64b47aa 100644 --- a/examples/conversations/run.py +++ b/examples/conversations/run.py @@ -72,7 +72,7 @@ participant_id="agent_123", attachments=[ Attachment( - type=AttachmentType.FILE, + type=AttachmentType.DOCUMENT, file_name="bank_statement.pdf", ) ], diff --git a/src/gradient_labs/conversation.py b/src/gradient_labs/conversation.py index b6b852b..0f809d9 100644 --- a/src/gradient_labs/conversation.py +++ b/src/gradient_labs/conversation.py @@ -23,6 +23,7 @@ class ConversationChannel(str, Enum): EMAIL: str = "email" LIVE_CHAT: str = "web" + VOICE: str = "voice" class AttachmentType(str, Enum): @@ -30,7 +31,8 @@ class AttachmentType(str, Enum): that a customer has uploaded into the conversation.""" IMAGE: str = "image" - FILE: str = "file" + DOCUMENT: str = "document" + AUDIO: str = "audio" class ConversationEventType(str, Enum): @@ -39,14 +41,6 @@ class ConversationEventType(str, Enum): # INTERNAL_NOTE means that an internal note has been added to the conversation. INTERNAL_NOTE: str = "internal-note" - # JOIN means the customer or human agent joined the - # conversation. - JOIN: str = "join" - - # LEAVE means the customer or human agent left the - # conversation. - LEAVE: str = "leave" - # DELIVERED means that a message has been delivered # to a participant DELIVERED: str = "delivered"