Skip to main content

Agent Actions

License PyPI Downloads Python

Declarative LLM orchestration. Define workflows in YAML — each action gets its own model, context window, schema, and pre-check gate. The framework handles DAG resolution, parallel execution, batch processing, and output validation.

Agent Actions lifecycle: Define → Validate → Execute

actions:
  - name: extract_features
    intent: "Extract key product features from listing"
    model_vendor: anthropic              # Each action picks its own model
    model_name: claude-sonnet-5-5

  - name: generate_description
    dependencies: [extract_features]
    model_vendor: openai                 # Mix vendors in one pipeline
    model_name: gpt-6-luna
    context_scope:
      observe:
        - extract_features.features      # See only what it needs
      drop:
        - source.raw_html                # Don't waste tokens on noise

Install

pip install agent-actions

Quick start

agac init my_project && cd my_project                # scaffold a project
agac init example contract_reviewer my_project       # or start from an example
agac run -w my_workflow                              # execute

Why not just write Python?

You will, until you have 15 steps, 3 models, batch retry, and a teammate asks what your pipeline does.

Capability Agent Actions Python script n8n / Make
Per-step model selection YAML field Manual wiring Per-node config
Context isolation per step observe / drop You build it Not available
Pre-check guards (skip before LLM call) guard: If-statements Post-hoc branching
Parallel consensus (3 voters + merge) 2 lines of YAML Custom code Many nodes + JS
Schema validation + auto-repair Built in DIY Not available
Batch processing (1000s of records) Built in For-loops Loop nodes
The YAML is the documentation Yes No Visual graph

Examples

Example Pattern Key Features
Review Analyzer Parallel consensus 3 independent scorers, vote aggregation, guard on quality threshold
Contract Reviewer Map-reduce Split clauses, analyze each, aggregate risk summary
Product Listing Enrichment Tool + LLM hybrid LLM generates copy, tool fetches pricing, LLM optimizes
Book Catalog Enrichment Multi-step enrichment BISAC classification, marketing copy, SEO metadata, reading level
Incident Triage Parallel consensus Severity classification, impact assessment, team assignment, response plan
Support Resolution Non-JSON pipeline Classify, route, and draft responses using output_field — works with any model including local Ollama
Ticket Triage Warehouse Database in, tables out Reads tickets from a database query, writes the results back as tables; runs offline on SQLite

Providers

Provider Batch Provider Batch
OpenAI Yes Groq Yes
Anthropic Yes Cohere Online only
Google Gemini Yes Ollama (local) Yes

Switch providers per-action by changing model_vendor.

Key capabilities

  • Pre-flight validation — schemas, dependencies, templates, and credentials checked before any LLM call
  • Batch processing — route thousands of records through provider batch APIs
  • Selective rerun — after a full run, answer only the records that need it again (--rerun ACTION --where '...'); the rest keep their paid answers (docs)
  • User-defined functions — Python tools for pre/post-processing and custom logic
  • Knowledge bases and retrieval — context_scope.retrieve gives each record the parts of a large reference that match it. The reference is files, JSON/CSV records, database rows, or the records of an earlier action. The search is local (keyword or fuzzy) and makes no model call (docs)
  • Databases — read input rows from a query and write results to tables on SQLite, DuckDB, Postgres, MySQL, Redshift, Snowflake, BigQuery or Databricks (docs)
  • Expectations — declare rules the output must satisfy; failures are regenerated with the rule's feedback
  • Observability — per-action timing, token counts, and structured event logs
  • MCP tools in a workflow — kind: mcp calls a tool of an MCP server (dbt, a database, any stdio server) for each record, with no Python tool (docs)
  • MCP server — agac mcp lets an AI assistant (Claude Code, Claude Desktop, Cursor) validate, run, retry and inspect workflows; every run is an offline sandbox run unless you start it with --allow-real-runs (docs)
  • Interactive docs — agac docs builds and serves a visual workflow dashboard

Documentation

Contributing

git clone https://github.com/Muizzkolapo/agent-actions.git && cd agent-actions
uv sync
pytest

See CONTRIBUTING.md. Report bugs via Issues.

License

Apache License 2.0

Metadata

Release files for agent-actions 4.1.0

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

Source distribution (sdist)

Source distribution for agent-actions 4.1.0
File Size Uploaded Provenance Actions
agent_actions-4.1.0.tar.gz 8.9 MB With provenance Details for agent_actions-4.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agent-actions 4.1.0
File Interpreter ABI Platform Actions
agent_actions-4.1.0-py3-none-any.whl Python 3 none any Details for agent_actions-4.1.0-py3-none-any.whl

Total release size: 15.5 MB

Release files / agent_actions-4.1.0.tar.gz

Download URL agent_actions-4.1.0.tar.gz
Size 8.9 MB
Tags Source
SHA-256 checksum
How to use checksums
ca8c1016ef45881135eaf971df9a5a43e323fb6dcf2184a0f19c49e11672b0a4
BLAKE2b-256 checksum
How to use checksums
da1d6a539a863729dab50fafdf3b9479b0d5cd7d9b5b96f0c74f18665f53d441
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Release files / agent_actions-4.1.0-py3-none-any.whl

Download URL agent_actions-4.1.0-py3-none-any.whl
Size 6.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
984fa7030bdea2c9e7ba88120ace07fe200a21560ad45f6703fc9ae4198284c2
BLAKE2b-256 checksum
How to use checksums
695e86e577b8ed3e1649d556c5782f2bee185081d499766b7d9599b64166a8ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Security for agent-actions 4.1.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agent_actions-4.1.0.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 Nov 29, 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.1.0 This release

2 release files Full provenance

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