Python API reference
The reference is generated from the package’s docstrings with griffe on every docs build, so it always matches the code.
- App — Declare a chatbot: config, decorators, catalog and the ASGI app.
- Chat & messages — The objects your handlers receive: Chat, Message, Action, Feedback, File, Step.
- Components & catalog — The Component base class, the Catalog and prompt generation.
- dyui.llm — Streaming helpers for OpenAI, Anthropic, Ollama and OpenAI-compatible providers.
- dyui.integrations.langgraph — Stream a LangGraph run into a DyUI reply and emit components from nodes.
- dyui.genui — The streaming fence parser, partial JSON, validation and history serialization.
- Stores — Persistence: the Store protocol, SQLite and in-memory stores.
The built-in components (dyui.ui.*) are documented on the component pages.