Architecture
Overview
High-level architecture of the AutoFlow pipeline, agent system, and supporting services.
AutoFlow is organized as a Python package at src/autoflow/ with a clear separation between pipeline orchestration, agents, LLM providers, schemas, pattern matching, analytics, and the template catalog.
System Architecture
Project Structure
pipeline.py
config.py
models.py
__main__.py
Key Components
Pipeline
The WorkflowPipeline orchestrator that runs synthesize and generate modes through stage sequences.
Agent System
BaseAgent and its 5 specialized agents, each with their own persona, prompt template, and LLM settings.
LLM Providers
The provider abstraction layer supporting OpenAI, Anthropic, Gemini, Ollama, and a deterministic mock.
Schema Validation
JSON Schema validation plus custom rules for node IDs, edges, orphan detection, and variable resolution.