We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 675ded1 + a3c67d6 commit 7124c4cCopy full SHA for 7124c4c
chatkit/types.py
@@ -339,6 +339,14 @@ class ProgressUpdateEvent(BaseModel):
339
text: str
340
341
342
+class ClientEffectEvent(BaseModel):
343
+ """Event emitted to trigger a client side-effect."""
344
+
345
+ type: Literal["client_effect"] = "client_effect"
346
+ name: str
347
+ data: dict[str, Any] = Field(default_factory=dict)
348
349
350
class ErrorEvent(BaseModel):
351
"""Event indicating an error occurred while processing a thread."""
352
@@ -370,6 +378,7 @@ class NoticeEvent(BaseModel):
370
378
| ThreadItemReplacedEvent
371
379
| StreamOptionsEvent
372
380
| ProgressUpdateEvent
381
+ | ClientEffectEvent
373
382
| ErrorEvent
374
383
| NoticeEvent,
375
384
Field(discriminator="type"),
0 commit comments