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
9 changes: 9 additions & 0 deletions chatkit/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,14 @@ class ProgressUpdateEvent(BaseModel):
text: str


class ClientEffectEvent(BaseModel):
"""Event emitted to trigger a client side-effect."""

type: Literal["client_effect"] = "client_effect"
name: str
data: dict[str, Any] = Field(default_factory=dict)


class ErrorEvent(BaseModel):
"""Event indicating an error occurred while processing a thread."""

Expand Down Expand Up @@ -355,6 +363,7 @@ class NoticeEvent(BaseModel):
| ThreadItemRemovedEvent
| ThreadItemReplacedEvent
| ProgressUpdateEvent
| ClientEffectEvent
| ErrorEvent
| NoticeEvent,
Field(discriminator="type"),
Expand Down