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
4 changes: 2 additions & 2 deletions src/gradient_labs/_article_upsert.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class UpsertArticleParams:
# status describes whether this article is published or not.
status: PublicationStatus

# created is when the topic was first created.
# created is when the article was first created.
created: datetime = field(
metadata=config(
encoder=datetime.isoformat,
Expand All @@ -49,7 +49,7 @@ class UpsertArticleParams:
)
)

# last_edited is when the topic was last changed.
# last_edited is when the article was last changed.
last_edited: datetime = field(
metadata=config(
encoder=datetime.isoformat,
Expand Down
6 changes: 6 additions & 0 deletions src/gradient_labs/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ class AgentMessageEvent:
sequence identifies which agent message this is in the current turn.
"""

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


@dataclass_json
@dataclass(frozen=True)
Expand Down