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 d6da556 + ee4063b commit 8e07372Copy full SHA for 8e07372
chatkit/actions.py
@@ -24,7 +24,7 @@ class ActionConfig(BaseModel):
24
25
class Action(BaseModel, Generic[TType, TPayload]):
26
type: TType = Field(default=TType, frozen=True) # pyright: ignore
27
- payload: TPayload
+ payload: TPayload = None # pyright: ignore - default to None to allow no-payload actions
28
29
@classmethod
30
def create(
0 commit comments