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.


✨ Why Agentics

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.


🚀 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 pydantic import BaseModel, Field
from agentics.core.transducible_functions import transducible, Transduce

class ProductDescription(BaseModel):
    name: str
    features: str
    price: float

class ViralTweet(BaseModel):
    tweet: str = Field(..., description="Engaging tweet under 280 characters")
    hashtags: list[str] = Field(..., description="3-5 relevant hashtags")
    hook: str = Field(..., description="Attention-grabbing opening line")

@transducible()
async def generate_viral_tweet(product: ProductDescription) -> ViralTweet:
    """Transform boring product descriptions into viral social media content."""
    return Transduce(product)

# Transform a product into viral content
product = ProductDescription(
    name="Agentics Framework",
    features="Type-safe AI workflows with LLM-powered transductions",
    price=0.0  # Open source!
)

tweet = await generate_viral_tweet(product)
print(f"🔥 {tweet.tweet}")
print(f"📱 {' '.join(tweet.hashtags)}")

Output:

🔥 Stop wrestling with unstructured LLM outputs! 🎯 Agentics gives you type-safe AI workflows that just work. Build production-ready agents in minutes, not weeks. And it's FREE! 🚀
📱 #AI #OpenSource #Python #LLM #DevTools

📘 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 and Main Contributor

Core Contributors

Community 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.3.5rc1.tar.gz (3.2 MB 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.3.5rc1-py3-none-any.whl (60.9 kB view details)

Uploaded Python 3

File details

Details for the file agentics_py-0.3.5rc1.tar.gz.

File metadata

  • Download URL: agentics_py-0.3.5rc1.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.23

File hashes

Hashes for agentics_py-0.3.5rc1.tar.gz
Algorithm Hash digest
SHA256 12e58a5d69616e039e6a4c906602f87a55cabd17a9319f33e85165cd01d94f7c
MD5 729600c3d407ff6ad16a1ced9c876dc5
BLAKE2b-256 6ae47f73b02229c7303b7a91de98c0b7a3e6399d9892a902832270d0d118cb11

See more details on using hashes here.

File details

Details for the file agentics_py-0.3.5rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for agentics_py-0.3.5rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 10fe88c9c19bcda292f01cbc92e3b62e8c31f6db990223928c10cae1ab6c53fd
MD5 46ccac1e03c19f6eaa3591e504535aa4
BLAKE2b-256 c900e60aa730bed16a7dd3d188774b5be548f79e389a5286c531638bd8a369af

See more details on using hashes here.

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