Skip to content

Commit c47e770

Browse files
authored
Merge pull request #16 from openai/jiwon/add-data-to-entity-source
Add data attr to EntitySource so it can be wired up with onClick
1 parent 378fc05 commit c47e770

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chatkit/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,7 @@ class EntitySource(SourceBase):
813813
id: str
814814
icon: str | None = None
815815
preview: Literal["lazy"] | None = None
816+
data: dict[str, Any] = Field(default_factory=dict)
816817

817818

818819
Source = Annotated[

0 commit comments

Comments
 (0)