From ec580cba878a096f48ea5fac46bcbf29b41ecc61 Mon Sep 17 00:00:00 2001 From: Jiwon Kim Date: Wed, 19 Nov 2025 10:46:40 -0800 Subject: [PATCH] Add group to UserMessageTagContent to be in sync with a top-level Entity field; mark EntitySource.preview as deprecated --- chatkit/types.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/chatkit/types.py b/chatkit/types.py index ea43de9..1c34b9f 100644 --- a/chatkit/types.py +++ b/chatkit/types.py @@ -637,6 +637,7 @@ class UserMessageTagContent(BaseModel): id: str text: str data: dict[str, Any] + group: str | None = None interactive: bool = False @@ -813,9 +814,14 @@ class EntitySource(SourceBase): type: Literal["entity"] = "entity" id: str icon: IconName | None = None - preview: Literal["lazy"] | None = None data: dict[str, Any] = Field(default_factory=dict) + preview: Literal["lazy"] | None = Field( + default=None, + deprecated=True, + description="This field is ignored. Please use the entities.onRequestPreview ChatKit.js option instead.", + ) + Source = Annotated[ URLSource | FileSource | EntitySource,