Skip to content
Closed
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: 6 additions & 3 deletions chatkit/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,8 @@ class CustomSummary(BaseModel):
"""Custom summary for a workflow."""

title: str
icon: IconName | None = None
# IconName is the only supported type but we allow str for backwards compatibility
icon: IconName | str | None = None


class DurationSummary(BaseModel):
Expand Down Expand Up @@ -735,7 +736,8 @@ class CustomTask(BaseTask):

type: Literal["custom"] = "custom"
title: str | None = None
icon: IconName | None = None
# IconName is the only supported type but we allow str for backwards compatibility
icon: IconName | str | None = None
content: str | None = None


Expand Down Expand Up @@ -811,7 +813,8 @@ class EntitySource(SourceBase):

type: Literal["entity"] = "entity"
id: str
icon: IconName | None = None
# IconName is the only supported type but we allow str for backwards compatibility
icon: IconName | str | None = None
preview: Literal["lazy"] | None = None
data: dict[str, Any] = Field(default_factory=dict)

Expand Down