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.
undefined
None
1 parent 8e2d257 commit ee4063bCopy full SHA for ee4063b
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