How kevininocol/project-crewai-regression-pipeline-generator works
1. This repository is a Python-based crewAI project: a multi-agent orchestration system where the “application” is defined by agent and task configuration rather than a traditional service stack.
2. The main runtime boundary is src/proyecto_agentes_de_pipeline_ml/. Inside it:
- main.py is the execution entrypoint.
- crew.py assembles the crew, wires agents to tasks, and registers tools.
- config/agents.yaml and config/tasks.yaml define the behavior and work distribution.
- tools/ contains the custom capabilities agents can invoke.
3. The project is centered on ML pipeline generation/analysis, not just generic text generation. The presence of data/train.csv, knowledge/pipeline_reference_style.md, and knowledge/preprocessors_reference.py suggests the agents are expected to inspect tabular data, learn/imitate a pipeline style, and produce pipeline-related artifacts.
4. Data flow starts from local inputs:
- CSV data in data/train.csv
- reference material in knowledge/
These are consumed by tools, then transformed into summaries, insights, or generated notebook content for downstream agent tasks.
5. The tool layer is the main I/O boundary:
- csv_profiler_tool.py likely reads the training CSV and computes descriptive profiling.
- file_reader_tool.py likely provides controlled file access to local reference files.
- notebook_writer_tool.py likely writes generated outputs to a notebook-like artifact.
- custom_tool.py appears to be a base or example extension point.
This separation keeps agents from accessing the filesystem directly.
6. The agent/task configuration layer is the orchestration core. agents.yaml defines roles, goals, and possibly tool access; tasks.yaml defines the ordered work items and expected outputs. The architecture is therefore declarative: behavior is primarily changed by editing YAML rather than code.
7. crew.py is the integration point that binds configuration to executable objects. In architecture terms, it sits between static configuration and runtime execution, translating the YAML-defined plan into a runnable agent workflow.
8. The output boundary is likely artifact generation in the repository root or under a project-specific path, with the README explicitly mentioning a generated report.md in the default template. Given the notebook writer tool, the system may also emit notebook or notebook-like deliverables for ML workflows.
9. External dependency boundary: the project relies on crewAI and an LLM provider configured through OPENAI_API_KEY in .env. The LLM is the reasoning engine; everything else in the repo is scaffolding for data access, task decomposition, and output writing.
10. Tooling and packaging are lightweight and Python-native:
- pyproject.toml and uv.lock indicate UV-managed dependency resolution.
- Python version support is >=3.10 <3.14.
There is no separate backend, database, or frontend in the repo.
11. The knowledge/ directory is an important architecture element because it acts as a local context source, not just documentation. It likely provides reference constraints for how generated pipeline code or reports should be structured.
12. For an architecture diagram, the core flow is: user запускаes crewai run or the project entrypoint → main.py creates the run context → crew.py instantiates agents/tasks/tools from YAML → agents use tools to inspect CSV and reference files → LLM reasoning produces pipeline/report artifacts → outputs are written locally.
13. The overall system boundary is intentionally small: a single Python package plus local datasets and knowledge files. There are no visible network services, message queues, databases, or web servers in the repository; the main external dependency is the LLM API.
Main entry points: crew.py Crew · file_reader_tool.py File Reader · agents.yaml Agents · csv_profiler_tool.py CSV Profiler
Components 17
Runtime
Executable Python package and orchestration entrypoints
- Main · Starts the crew run and hands off execution context
src/proyecto_agentes_de_pipeline_ml/main.py - Crew · Builds the agent/task graph and binds tools to runtime
src/proyecto_agentes_de_pipeline_ml/crew.py - Package · Top-level Python application package
src/proyecto_agentes_de_pipeline_ml/__init__.py - Artifacts · Generated report, notebook, or pipeline deliverables
Config
Declarative agent and task definitions
Tools
Controlled I/O and generation capabilities used by agents
- CSV Profiler · Profiles the training CSV and extracts tabular insights
src/proyecto_agentes_de_pipeline_ml/tools/csv_profiler_tool.py - File Reader · Provides controlled access to local reference files
src/proyecto_agentes_de_pipeline_ml/tools/file_reader_tool.py - Notebook Writer · Writes generated notebook-like artifacts or reports
src/proyecto_agentes_de_pipeline_ml/tools/notebook_writer_tool.py - Custom Tool · Base or example hook for adding new agent capabilities
src/proyecto_agentes_de_pipeline_ml/tools/custom_tool.py
Inputs
Local data and reference material consumed by the workflow
- Train CSV · Primary tabular input used for profiling and pipeline analysis
data/train.csv - Style Ref · Reference describing the expected pipeline/report style
knowledge/pipeline_reference_style.md - Preprocessor Ref · Reference Python preprocessing examples and constraints
knowledge/preprocessors_reference.py
Infra
Packaging and external execution boundary
Connections 19
- Main → Crew: launches · Main entrypoint initializes and starts the crew runtime
- Crew → Agents: loads · Crew binds agent definitions from YAML
- Crew → Tasks: loads · Crew binds task definitions from YAML
- Crew → CSV Profiler: registers · Crew exposes the CSV profiling capability to agents
- Crew → File Reader: registers · Crew exposes controlled file reading to agents
- Crew → Notebook Writer: registers · Crew exposes artifact writing to agents
- Crew → Custom Tool: extends · Crew can include additional custom capabilities
- Agents → CSV Profiler: uses · Agent definitions can assign the profiling tool
- Agents → File Reader: uses · Agent definitions can assign the file reader
- Tasks → Artifacts: targets · Tasks define the expected generated deliverables
- CSV Profiler → Train CSV: reads · Profiles the local training dataset
- File Reader → Style Ref: reads · Loads style and formatting guidance
- File Reader → Preprocessor Ref: reads · Loads preprocessing reference content
- Notebook Writer → Artifacts: writes · Persists generated artifacts to disk
- Main → Env Vars: configures · Runtime reads local environment settings
- Env Vars → LLM API: authenticates · LLM access depends on provider credentials
- Crew → LLM API: calls · Agents delegate reasoning and generation to the LLM provider
- Pyproject → UV Lock: pins · Dependency metadata is resolved into a lockfile
- Package → Crew: contains · Package namespaces the orchestration code