Skip to content

🌐 Agentics

Agentics is a lightweight, Python-native framework for building structured and massively parallel agentic workflows using Pydantic models and transducible functions .


πŸ“š Documentation Overview

  • Getting Started πŸš€
    Install Agentics, set up your environment, and run your first transducible function over a small dataset.

  • Core Concepts 🧠
    The mental model: Pydantic types, transducible functions, typed state containers, Logical Transduction Algebra (LTA), and Map–Reduce.

  • Transducible Functions βš™οΈ
    How to define, configure, and invoke transducible functions; specifying instructions; controlling temperature, retries, and structured decoding.

  • Agentics 🧬
    Defining Pydantic models for inputs/outputs, working with AG containers, loading data from JSON/CSV/DataFrames, and preserving type information across the pipeline.

  • Logical Transduction Algebra πŸ”
    Chaining transducible functions, branching, fan-in/fan-out patterns, and building reusable pipeline components.

  • Async Map–Reduce Execution πŸš€
    Using amap and areduce for large-scale runs, batching strategies, handling failures, and performance considerations.

  • Examples & Use Cases πŸ“˜
    End-to-end examples: text-to-SQL, data extraction and enrichment, classification, document workflows, evaluation pipelines, and more.


Transducible Functions

A transducible function is an LLM-powered, type-safe transformation between Pydantic models. Agentics lets you:

  • Define these transformations declaratively
  • Compose them into pipelines
  • Execute them at scale using an asynchronous Map–Reduce execution engine βš™οΈ

Under the hood, Agentics is grounded in Logical Transduction Algebra (LTA), a logico-mathematical formalism that guarantees:

  • βœ… Composability
  • βœ… Explainability
  • βœ… Stability of LLM-based transformations

The result is a way to build agentic systems that are:

  • Typed – every step has explicit input/output schemas πŸ“
  • Composable – pipelines are built from reusable transducible functions 🧩
  • Traceable – outputs carry evidence back to input fields πŸ”
  • Scalable – async amap / areduce primitives support large workloads πŸš€
  • Minimal – no heavy orchestrators: just types, functions, and data πŸͺΆ

Agentics code is simple, predictable, and robust, and is easy to embed into modern ecosystems (LangFlow, LangChain, CrewAI, MCP, etc.) 🀝.

πŸ”‘ Key Features

βš™οΈ Transducible Functions (Core Abstraction)

Define LLM-powered transformations as first-class functions:

  • 🧾 Typed input and output via Pydantic models
  • πŸ›‘οΈ Automatic schema validation and type-constrained generation
  • πŸͺœ Composable into higher-level workflows and chains

🧱 Typed State Containers - a.k.a. Agentics (AG)

Wrap data into typed state collections so that every row or document carries a concrete Pydantic type:

  • Safe, batch-level operations βœ…
  • Clear semantics over datasets and intermediate states πŸ“Š
  • Input/output from DBs, CSV and Json
  • Ideal to represent tabular/structured data

πŸš€ Async Map–Reduce Execution

Run transducible functions over large collections using:

  • ⚑ amap for massively parallel application
  • πŸ“‰ areduce for aggregations and global summaries

Designed to scale on multi-core or distributed execution backends πŸ–₯️πŸ–₯️πŸ–₯️.


🧩 Dynamic Type & Function Composition

Create new workflows on the fly:

  • πŸ”„ Merge or refine types dynamically
  • 🧬 Compose transducible functions declaratively
  • πŸ”€ Build polymorphic or adaptive pipelines driven by data and instructions

πŸ” Explainable & Traceable Inference

Each generated attribute can be traced back to:

  • Specific input fields 🧷
  • The specific transducible function or step that produced it 🧠

This enables auditable, debuggable LLM reasoning across the pipeline.


πŸ›‘οΈ End-to-End Type Safety

Pydantic models are enforced at every boundary:

  • βœ… Validation on input loading
  • βœ… Validation after each transducible function
  • βœ… Predictable runtime behavior and clear failure modes

πŸ”Œ Tool Integration

Agentics is fully compatible with Model Context Protocol (MCP) and expose external tools and knowledge to transducible functions:

  • 🌐 Web / search tools
  • πŸ—„οΈ Databases & vector stores
  • πŸ’» Code execution backends
  • πŸ”— MCP-based tools

✨ Minimalistic, Pythonic API

The framework is intentionally small:

  • 🚫 No custom DSL to learn
  • 🐍 Just Python functions, Pydantic models, and a few core primitives
  • πŸŒ‰ Easy to embed into existing stacks (LangFlow nodes, CrewAI agents, MCPs, etc.)