Skip to main content

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 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 summary
  • run_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swayamml-0.1.0.tar.gz (79.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swayamml-0.1.0-py3-none-any.whl (92.1 kB view details)

Uploaded Python 3

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

Hashes for swayamml-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9b63b8b0c13753a3fe512914133794fde3d47a7f87d327578c91581132108da5
MD5 13138112a2166cfc6c6e2a5b3b14e63b
BLAKE2b-256 1927ce633a10b42af1f7b61db76d8d256f1d4dc314ae72bc6bfd834088028566

See more details on using hashes here.

Provenance

The following attestation bundles were made for swayamml-0.1.0.tar.gz:

Publisher: publish.yml on VedavrathP/AgenticML

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for swayamml-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6c23144cfecf8a9a0d286aae4d6fa789915a32374bb76ff21b3e64f33285e79
MD5 44836eeb8210e88a4a91179d26191682
BLAKE2b-256 75ed66e6b2e96d07ca61bbb1fac28b7518f62c13e5029fd67dffbf5173d445dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for swayamml-0.1.0-py3-none-any.whl:

Publisher: publish.yml on VedavrathP/AgenticML

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page