Skip to main content
Build custom agents that automatically process annotations at every stage of your workflow — approve high-quality results, reject obvious errors, flag edge cases for human review, or run custom ML pipelines.
Install the avala-agents Python SDK with pip install avala-agents (PyPI · GitHub). The server-side Agent Framework API is also available — you can register agents and submit actions directly via the REST API.

Overview

Agent Event Flow The Avala Agent Framework lets you write Python code that reacts to annotation workflow events. When an annotator submits a result, your agent receives the data and decides what to do: approve, reject, or flag it.

Quickstart

Install

Write Your First Agent

Run It

Your agent registers with Avala, then polls for events. When a result is submitted in your project, your handler runs and submits the decision.

Events

Agents can listen to these events:

Context Objects

ResultContext

Passed to result.* event handlers:

TaskContext

Passed to task.* event handlers:

Configuration

TaskAgent Options

Multiple Event Handlers

Non-Blocking Mode

For integration with existing services (e.g., a Flask/FastAPI app):

Agent Registration API

Agents are managed via the REST API:

Patterns

Confidence-Based Routing

LLM-Powered Review

Annotation Count Validation

Webhook Mode (Coming Soon)

Webhook-based (push) delivery is planned for a future release. Currently, agents use polling to receive events. The callback_url field on agent registration is reserved for this upcoming feature.

Comparison with MCP Server

Both can be used together: MCP for interactive exploration, agents for automated processing.

Next Steps