Skip to main content

agentic-ml

Docs

An agentic framework that tackles a data scientist's machine learning problems with LLM agents. Instead of a fixed AutoML search space, an agent writes and runs real training code in an experimentation loop, keeps an auditable record of every trial, and exports a lightweight, production-ready model.

Status: early prototype. The first (and currently only) supported task is tabular regression. Agent-written trials may only use numpy, pandas and scikit-learn as ML dependencies — this keeps the evaluation environment predictable, but also means no deep learning / gradient-boosting libraries (e.g. XGBoost, LightGBM, PyTorch) are available yet. The sandbox that runs agent-written code is intentionally naive: see Security note for exactly what it does and does not protect against.

Table of Contents

Installation

Requires Python 3.11 (this project currently pins >=3.11,<3.12).

uv add jcaste05-agentic-ml              # base install: the light production model only
uv add "jcaste05-agentic-ml[research]"  # adds Strands, the agent runtime that drives research

jcaste05-agentic-ml[research] installs strands-agents itself but not a specific LLM provider. Strands ships each provider as its own extra, so you pick whichever one matches the LLM API you want the research agent to use, e.g.:

uv add "strands-agents[gemini]"   # Google Gemini
uv add "strands-agents[openai]"   # OpenAI-compatible endpoints

See the Strands Agents docs for the full list of supported model providers and how to configure each one.

If you only need AgenticModel to serve an already-exported model in production, skip [research] entirely: it depends solely on numpy, pandas, scikit-learn and joblib.

  • Quick example — a runnable end-to-end tutorial notebook (tabular regression on the scikit-learn diabetes dataset).
  • Documentation — architecture overview and full API reference generated from the source code's docstrings.

Security note

Research and AgenticModel.load execute Python code produced by the agent (or previously saved by it). Every trial is run out-of-process by a naive sandbox (core/sandbox.py), which only provides:

  • A hard timeout on the subprocess (timeout in research(...)), so a hung trial doesn't stall the whole run.
  • Environment variable filtering: any variable whose name contains KEY, TOKEN, SECRET, PASSWORD, PASSWD or CREDENTIAL is stripped before launching the subprocess, to reduce accidental secret leakage into agent-written code.
  • A prompt-level (not enforced) instruction telling the agent to only use numpy, pandas and scikit-learn.

It does not provide process isolation, filesystem or network sandboxing, or CPU/memory limits — the subprocess runs as the same user, with the same filesystem and network access as your own process. Treat agent-written code and saved artifacts with the same trust level as a pickle: only run/load artifacts you produced or trust.

Development

uv sync --all-extras
uv run ruff check .
uv run ruff format . --check --diff
uv run pytest

To preview the documentation locally:

uv run mkdocs serve

License

Apache-2.0.

Metadata

Release files for jcaste05-agentic-ml 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jcaste05-agentic-ml 0.1.1
File Size Uploaded Provenance
jcaste05_agentic_ml-0.1.1.tar.gz 118.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for jcaste05-agentic-ml 0.1.1
File Interpreter ABI Platform
jcaste05_agentic_ml-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 155.4 kB

Release files / jcaste05_agentic_ml-0.1.1.tar.gz

Download URL jcaste05_agentic_ml-0.1.1.tar.gz
Size 118.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5bdd430c945c9a2c70f76a39cc2603f4091e1bdf759c606f42e25710fcd57f76
BLAKE2b-256 checksum
How to use checksums
683203664c2a72c37dbaa05afd8ed818ee3dbcdd4eb16416cbe48090653536dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.

Transparency log

Release files / jcaste05_agentic_ml-0.1.1-py3-none-any.whl

Download URL jcaste05_agentic_ml-0.1.1-py3-none-any.whl
Size 37.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d240508930ef000f104e6827d03a6a28aaebd650f6c4e8cbf7094999dd47d343
BLAKE2b-256 checksum
How to use checksums
d55356208c7d0e845c6f8bc08a71f3af182f9e285b792b60d42bf80daad61996
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.

Transparency log

Security for jcaste05-agentic-ml 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for jcaste05_agentic_ml-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page