Skip to content

Chatkit Python API Reference

What you'll find here:

  • Core server API: chatkit.serverChatKitServer and related helpers for receiving messages, streaming responses, and wiring up tools and widgets.
  • Store integration: chatkit.store – interfaces and utilities for persisting threads, items, and metadata.
  • Agents integration helpers: chatkit.agents – helpers and utilities for using ChatKit together with the Agents SDK.
  • Data models and types: chatkit.types – Pydantic models for threads, items, events, and other shared types.
  • Errors: chatkit.errors – structured error types your ChatKit integration can raise so ChatKit can emit consistent ErrorEvents to the client.
  • Widgets: chatkit.widgets – models and helpers such as WidgetTemplate, DynamicWidgetRoot, and BasicRoot for building rich UI responses.