Replacing Complex Graph Orchestration with OOP: The PyBotchi Intent-Driven Agent Framework
madolid511 · reddit · 2026-08-02
The author introduces PyBotchi, an open-source, async-first Python framework for AI agent orchestration. The framework aims to avoid the overhead of complex graph orchestration (like LangGraph) by utilizing Object-Oriented Programming (OOP) nested classes and Pydantic models.
Core design concepts include:
- Intent Hierarchies & Input Control: Drawing inspiration from frontend UI segregation, backend API endpoints are mapped to agent intents (tools). By nesting parent-child intents, the LLM detects intents progressively deeper, making the agent's execution path more deterministic.
- Structured Outputs: Leveraging the LLM's strength in reading structured data (like JSON), traditional business logic responses are translated into human-readable formats.
- Deterministic Execution: Once an intent is identified, traditional deterministic code handles the execution (e.g., database operations). LLMs are only invoked for generating dynamic data within specific intents.
The author argues that combining LLM intent detection with traditional deterministic code meets high-throughput, low-latency system requirements while maintaining high code readability.
Related event: PyBotchi: A Lightweight Intent-Driven Agent Framework(2 posts)→
More from coding & agent
- Advanced DSPy: Boosting LLM Performance via Prompt and Weight Tuning — mdancho84 · 2026-08-02
- Building Enterprise AI Modularly with DSPy: Beyond Fragile Prompts — mdancho84 · 2026-08-02
- Stop Prompting LLMs: Stanford's DSPy Framework Shifts to Programming — mdancho84 · 2026-08-02
- Stop Prompting LLMs: Stanford's DSPy Framework Shifts to Programming — mdancho84 · 2026-08-02
- Automate PC Maintenance with a Luna Agent to Keep It Running Smoothly — MatthewBerman · 2026-08-02
- Open-Source Tool rtk: Slashes 90% of Bash Output for AI Agents — lxfater · 2026-08-02