Skip to main content

Agentics is a Python framework that provides structured, scalable, and semantically grounded agentic computation.

Project description

Agentics

Transduction is all you need

Agentics logo

Agentics is a Python framework for structured, scalable, and semantically grounded agentic computation.
Build AI-powered pipelines as typed data transformations—combining Pydantic schemas, LLM-powered transduction, and async execution.


🚀 Key Features

  • Typed agentic computation: Define workflows over structured types using standard Pydantic models.
  • Logical transduction (<<): Transform data between types using LLMs (few-shot examples, tools, memory).
  • Async mapping & reduction: Scale out with amap and areduce over datasets.
  • Batch execution & retry: Built-in batching, retries, and graceful fallbacks.
  • Tool support (MCP): Integrate external tools via MCP.

📦 Getting Started

Quickstart:

Install Agentics in your current env, set up your environment variable, and run your first logical transduction:

uv pip install agentics-py

set up your .env using the required parameters for your LLM provider of choice. Use .env_sample as a reference.

Find out more 👉 Getting Started: docs/getting_started.md

Examples

Run scripts in the examples/ folder (via uv):

uv run python examples/hello_world.py

🧪 Example Usage

from typing import Optional
from pydantic import BaseModel, Field

from agentics.core.transducible_functions import Transduce, transducible


class Movie(BaseModel):
    movie_name: Optional[str] = None
    description: Optional[str] = None
    year: Optional[int] = None


class Genre(BaseModel):
    genre: Optional[str] = Field(None, description="e.g., comedy, drama, action")


@transducible(provide_explanation=True)
async def classify_genre(state: Movie) -> Genre:
    """Classify the genre of the source Movie."""
    return Transduce(state)


genre, explanation = await classify_genre(
    Movie(
        movie_name="The Godfather",
        description=(
            "The aging patriarch of an organized crime dynasty transfers control "
            "of his clandestine empire to his reluctant son."
        ),
        year=1972,
    )
)

📘 Documentation and Notebooks

Complete documentation available here

Notebook Description
agentics.ipynb Core Agentics concepts: typed states, operators, and workflow structure
atypes.ipynb Working with ATypes: schema composition, merging, and type-driven design patterns
logical_transduction_algebra.ipynb Logical Transduction Algebra: principles and examples behind <<
map_reduce.ipynb Scale out workflows with amap / areduce (MapReduce-style execution)
synthetic_data_generation.ipynb Generate structured synthetic datasets using typed transductions
transducible_functions.ipynb Build reusable @transducible functions, explanations, and transduction control

✅ Tests

Run all tests:

uv run pytest

📄 License

Apache 2.0


👥 Authors

Project Lead

Core Contributors


🧠 Conceptual Overview

Most “agent frameworks” let untyped text flow through a pipeline. Agentics flips that: types are the interface.
Workflows are expressed as transformations between structured states, with predictable schemas and composable operators.

Because every step is a typed transformation, you can compose workflows safely (merge and compose types/instances, chain transductions, and reuse @transducible functions) without losing semantic structure.

Agentics makes it natural to scale out: apply transformations over collections with async amap, and aggregate results with areduce.

Agentics models workflows as transformations between typed states.

Core operations:

  • amap(func): apply an async function over each state
  • areduce(func): reduce a list of states into a single value
  • <<: logical transduction from source to target Agentics
  • &: merge Pydantic types / instances
  • @: compose Pydantic types / instances

📜 Reference

Agentics implements Logical Transduction Algebra, described in:

  • Alfio Gliozzo, Naweed Khan, Christodoulos Constantinides, Nandana Mihindukulasooriya, Nahuel Defosse, Junkyu Lee.
    Transduction is All You Need for Structured Data Workflows (August 2025).
    arXiv:2508.15610 — https://arxiv.org/abs/2508.15610

🤝 Contributing

Contributions are welcome! CONTRIBUTING.md

Please ensure your commit messages include:

Signed-off-by: Author Name <authoremail@example.com>

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

agentics_py-0.2.1a3.tar.gz (47.7 kB view details)

Uploaded Source

Built Distribution

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

agentics_py-0.2.1a3-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

Details for the file agentics_py-0.2.1a3.tar.gz.

File metadata

  • Download URL: agentics_py-0.2.1a3.tar.gz
  • Upload date:
  • Size: 47.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agentics_py-0.2.1a3.tar.gz
Algorithm Hash digest
SHA256 1a22bfb7b5a01a4770b0510ae4265e894de8bb59850a955a1f1bc56b9a1eeaae
MD5 74407d683c86454f32fe26345c241dc9
BLAKE2b-256 08e02679080ef07c40afd09addf1573c1ac623b1321b5ded185f5af4063f6e2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentics_py-0.2.1a3.tar.gz:

Publisher: pypi.yaml on IBM/Agentics

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

File details

Details for the file agentics_py-0.2.1a3-py3-none-any.whl.

File metadata

  • Download URL: agentics_py-0.2.1a3-py3-none-any.whl
  • Upload date:
  • Size: 53.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agentics_py-0.2.1a3-py3-none-any.whl
Algorithm Hash digest
SHA256 1600fede641fae5b618aa8e08d3c528198ca490168e4f51c9c8166888771cfa9
MD5 2ada7e5713267e4297dbbcc2cca17c5b
BLAKE2b-256 e304ec7ef0a17e90c842b90aa02cdba7a0ef3877506d8fd34776f50ce80c6fe9

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentics_py-0.2.1a3-py3-none-any.whl:

Publisher: pypi.yaml on IBM/Agentics

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