Opaiui (oh-pie-you-eye) provides a rapid prototyping framework for LLM-backed chat applications based on Pydantic.AI and Streamlit. While Streamlit provides relatively high-level components for chat input/output and display, wiring up a framework like Pydantic.AI is still a fair amount of work, particularly if one wants to support streaming responses and tool-calling provenance, or other features. Opaiui provides high-level integration points between Pydantic.AI agents, and a number of features for AI-mediated UI elements:
- Pydantic.AI state access
- Streaming responses
- Realtime tool-calling status display
- Agent selection
- Shareable sessions (via Upstash)
- Customizable sidebar user interface
- In-chat rendering of streamlit components via agent tool call
- Toggleable full message context
- Suggested question buttons
Read more at https://github.com/oneilsh/opaiui.