Skip to content
Merged
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
27 changes: 21 additions & 6 deletions src/gradient_labs/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,31 @@ class ConversationHandOffEvent:
"""
Details of the conversation the event relates to.
"""

# reason_code is the code that describes why the agent wants to hand off this
# conversation.
reason_code: str

# Reason is a human-legible description of the Reason code.
"""
reason_code is the code that describes why the agent wants to hand off this
conversation.
"""

reason: str
"""
reason is a human-legible description of the Reason code.
"""

note: Optional[str] = None
"""
Note is a human-legible summary of the conversation so far, for a smooth hand-off.
"""

intent: Optional[str] = None
"""
Intent is the most recent intent that was classified from the customer's conversation, if any.
"""

# Target defines where the agent wants to hand this conversation to.
target: Optional[str] = None
"""
Target defines where the agent wants to hand this conversation to.
"""


@dataclass_json
Expand Down