Skip to content

Commit ce251fe

Browse files
authored
Merge pull request #80 from openai/add-entity-source-label
Add `label` and `interactive` fields to `EntitySource`
2 parents 95581e5 + 67064fb commit ce251fe

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

chatkit/types.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,14 @@ class EntitySource(SourceBase):
856856
type: Literal["entity"] = "entity"
857857
id: str
858858
icon: IconName | None = None
859+
label: str | None = None
860+
"""Optional label shown with the icon in the default entity hover header
861+
when no preview callback is provided.
862+
"""
863+
interactive: bool = False
864+
"""Per-entity toggle to wire client callbacks and render this entity as interactive."""
859865
data: dict[str, Any] = Field(default_factory=dict)
866+
"""Additional data for the entity source that is passed to client entity callbacks."""
860867

861868
preview: Literal["lazy"] | None = Field(
862869
default=None,

0 commit comments

Comments
 (0)