Multi-agent ML pipeline — automated machine learning with LangGraph + LLMs
Project description
AgenticML
Multi-agent ML pipeline — automated machine learning powered by LangGraph and LLMs.
AgenticML assembles a team of specialised AI agents (Planner, Profiler, Cleaner, Featurizer, Modeler, Evaluator, Critic, Reporter) that collaborate iteratively to build, evaluate, and refine ML models on your data.
Installation
pip install swayamml
Optional providers (only install the one you use):
pip install swayamml[anthropic] # Claude models
pip install swayamml[google] # Gemini models
pip install swayamml[boost] # XGBoost + LightGBM
pip install swayamml[all] # Everything
Quick Start
Python API
from agenticml import ml
# Minimal — target and problem type are auto-detected
result = ml.run("data.csv")
# Explicit options
result = ml.run(
"data.csv",
target="price",
problem_type="regression",
metric="rmse",
model="gpt-4o", # or "claude-3-sonnet-20240229", "gemini-pro"
api_key="sk-...", # optional — falls back to env var
verbose=True, # print LLM prompts & responses
max_iterations=3,
)
CLI
# Uses OPENAI_API_KEY from environment
agenticml --file data.csv --target price --verbose
# Specify model and key
agenticml --file data.csv --model claude-3-sonnet-20240229 --api-key sk-ant-...
# All options
agenticml --file data.csv \
--target label \
--problem_type classification \
--metric f1 \
--model gpt-4o \
--max_iterations 3 \
--verbose \
--stream
You can also run via module:
python -m agenticml --file data.csv
LLM Provider Support
The provider is auto-detected from the model name:
| Model prefix | Provider | Env variable | Install extra |
|---|---|---|---|
gpt-*, o1*, o3* |
OpenAI | OPENAI_API_KEY |
(included) |
claude-* |
Anthropic | ANTHROPIC_API_KEY |
pip install swayamml[anthropic] |
gemini-* |
GOOGLE_API_KEY |
pip install swayamml[google] |
Pass the key directly or set the environment variable:
export OPENAI_API_KEY=sk-...
Pipeline Architecture
Planner → Profiler → Cleaner → Featurizer → Modeler → Evaluator → Critic
↓
(blocking issues?)
↓ yes ↓ no
Orchestrator Reporter
↓
(next iteration)
Each run produces:
report.md— human-readable summaryrun_manifest.json— full reproducibility metadata- Trained models, evaluation plots, and intermediate data in the
runs/directory
Verbose Mode
Use --verbose (CLI) or verbose=True (Python) to see exactly what each agent sends to the LLM and what it gets back — useful for debugging and understanding pipeline decisions.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swayamml-0.1.0.tar.gz.
File metadata
- Download URL: swayamml-0.1.0.tar.gz
- Upload date:
- Size: 79.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b63b8b0c13753a3fe512914133794fde3d47a7f87d327578c91581132108da5
|
|
| MD5 |
13138112a2166cfc6c6e2a5b3b14e63b
|
|
| BLAKE2b-256 |
1927ce633a10b42af1f7b61db76d8d256f1d4dc314ae72bc6bfd834088028566
|
Provenance
The following attestation bundles were made for swayamml-0.1.0.tar.gz:
Publisher:
publish.yml on VedavrathP/AgenticML
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
swayamml-0.1.0.tar.gz -
Subject digest:
9b63b8b0c13753a3fe512914133794fde3d47a7f87d327578c91581132108da5 - Sigstore transparency entry: 965536307
- Sigstore integration time:
-
Permalink:
VedavrathP/AgenticML@925ce317d0eb67364812dce982444bbbfb400580 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/VedavrathP
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@925ce317d0eb67364812dce982444bbbfb400580 -
Trigger Event:
release
-
Statement type:
File details
Details for the file swayamml-0.1.0-py3-none-any.whl.
File metadata
- Download URL: swayamml-0.1.0-py3-none-any.whl
- Upload date:
- Size: 92.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6c23144cfecf8a9a0d286aae4d6fa789915a32374bb76ff21b3e64f33285e79
|
|
| MD5 |
44836eeb8210e88a4a91179d26191682
|
|
| BLAKE2b-256 |
75ed66e6b2e96d07ca61bbb1fac28b7518f62c13e5029fd67dffbf5173d445dd
|
Provenance
The following attestation bundles were made for swayamml-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on VedavrathP/AgenticML
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
swayamml-0.1.0-py3-none-any.whl -
Subject digest:
c6c23144cfecf8a9a0d286aae4d6fa789915a32374bb76ff21b3e64f33285e79 - Sigstore transparency entry: 965536364
- Sigstore integration time:
-
Permalink:
VedavrathP/AgenticML@925ce317d0eb67364812dce982444bbbfb400580 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/VedavrathP
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@925ce317d0eb67364812dce982444bbbfb400580 -
Trigger Event:
release
-
Statement type: