Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/conversations/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
participant_id="agent_123",
attachments=[
Attachment(
type=AttachmentType.FILE,
type=AttachmentType.DOCUMENT,
file_name="bank_statement.pdf",
)
],
Expand Down
12 changes: 3 additions & 9 deletions src/gradient_labs/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ class ConversationChannel(str, Enum):

EMAIL: str = "email"
LIVE_CHAT: str = "web"
VOICE: str = "voice"


class AttachmentType(str, Enum):
"""An attachment type identifies the type of file
that a customer has uploaded into the conversation."""

IMAGE: str = "image"
FILE: str = "file"
DOCUMENT: str = "document"
AUDIO: str = "audio"


class ConversationEventType(str, Enum):
Expand All @@ -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"
Expand Down
Loading