Architecture¶
MiniBot uses a lightweight hexagonal layout:
core/— domain contracts and modelsapp/— orchestration (dispatcher, event bus, agent runtime)adapters/— infrastructure (config, messaging, memory, scheduler)llm/— provider factory and tool schemas/handlers
Entry Point¶
minibot.app.daemon bootstraps AppContainer, wires dependencies, starts
the dispatcher and channel services, and handles graceful shutdown via signal
handlers.
Message Flow¶
Inbound event arrives (Telegram webhook or console input)
Published to the internal
asyncioevent busDispatcher routes to LLM pipeline
Agent runtime calls tools as needed
Response emitted back to the channel adapter