- Introduce
WidgetTemplatefor building widgets from .widget files instead of hand-crafting widget models. - Add
ClientEffectEventfor triggering client-side behavior in ChatKit.js. - Add overridable
ChatKitServer.handle_stream_cancelledandget_stream_optionsmethods to support configurable response cancellation behavior. - Add
SDKHiddenContextItemwith defaultThreadItemConverterhandling to store ChatKit-added hidden context in threads.
Breaking:
- Widget and action classes remain usable but are marked deprecated in favor of using
WidgetTemplate jinja2is a required dependency for widget template rendering.- A stop button shows by default during streaming so users can cancel mid-response; integrations can override
ChatKitServer.get_stream_optionsto change this.