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
7 changes: 7 additions & 0 deletions chatkit/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,14 @@ class EntitySource(SourceBase):
type: Literal["entity"] = "entity"
id: str
icon: IconName | None = None
label: str | None = None
"""Optional label shown with the icon in the default entity hover header
when no preview callback is provided.
"""
interactive: bool = False
"""Per-entity toggle to wire client callbacks and render this entity as interactive."""
data: dict[str, Any] = Field(default_factory=dict)
"""Additional data for the entity source that is passed to client entity callbacks."""

preview: Literal["lazy"] | None = Field(
default=None,
Expand Down