Chatkit Python API Reference
What you'll find here:
- Core server API:
chatkit.server–ChatKitServerand 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 consistentErrorEvents to the client. - Widgets:
chatkit.widgets– models and helpers such asWidgetTemplate,DynamicWidgetRoot, andBasicRootfor building rich UI responses.