Skip to main content

AgentBreeder Python SDK — define, validate, and deploy AI agents programmatically.

Project description

agentbreeder-sdk

The official Python SDK for AgentBreeder — define, validate, and deploy AI agents programmatically.

Installation

pip install agentbreeder-sdk

For MCP server authoring support:

pip install "agentbreeder-sdk[mcp]"

Quick Start

from agenthub import Agent, Tool, Model, Memory

# Define an agent
agent = (
    Agent("customer-support", version="1.0.0", team="customer-success")
    .with_model(primary="claude-sonnet-4-6", fallback="gpt-4o")
    .with_prompt(system="You are a helpful customer support agent.")
    .with_tool(Tool.from_ref("tools/zendesk-mcp"))
    .with_tool(Tool.from_ref("tools/order-lookup"))
    .with_deploy(cloud="aws", region="us-east-1")
)

# Validate and export to agent.yaml
agent.validate()
agent.to_yaml("agent.yaml")

Multi-Agent Orchestration

from agenthub import Orchestration, KeywordRouter

pipeline = (
    Orchestration("support-router", strategy="router", team="customer-success")
    .add_agent("triage",  ref="agents/triage-agent")
    .add_agent("billing", ref="agents/billing-agent")
    .add_agent("returns", ref="agents/returns-agent")
    .with_route("triage", condition="billing",  target="billing")
    .with_route("triage", condition="return",   target="returns")
)

pipeline.to_yaml("orchestration.yaml")

Key Classes

Class Description
Agent Define an individual AI agent
Tool Define or reference a tool
Model Configure a model (primary + fallback)
Memory Configure agent memory
Orchestration Define multi-agent orchestration
Pipeline Sequential agent pipeline
FanOut Parallel fan-out orchestration
Supervisor Supervisor + worker orchestration

All classes serialize to the same agent.yaml / orchestration.yaml format consumed by agentbreeder deploy.

Tier Mobility

The SDK is the Full Code tier of AgentBreeder. You can eject from a YAML config to SDK code at any time:

agentbreeder eject agent.yaml --output agent_sdk.py

TypeScript SDK

Looking for TypeScript / JavaScript? Install the official TypeScript SDK:

npm install @agentbreeder/sdk

See sdk/typescript/ for full documentation.

Links

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

agentbreeder_sdk-2.6.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

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

agentbreeder_sdk-2.6.0-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file agentbreeder_sdk-2.6.0.tar.gz.

File metadata

  • Download URL: agentbreeder_sdk-2.6.0.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentbreeder_sdk-2.6.0.tar.gz
Algorithm Hash digest
SHA256 d590a97ef557e4ebddf21fb202a6f58a2e825f139ca545e3eefe0348468084b3
MD5 fcfebe4d2372f2c9fb2ca1aa88f7d319
BLAKE2b-256 4dc007b33b83c9ba1420e0630c57fe8dcfa4331cacfcf3c1503d6b747043b99b

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentbreeder_sdk-2.6.0.tar.gz:

Publisher: release.yml on agentbreeder/agentbreeder

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

File details

Details for the file agentbreeder_sdk-2.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentbreeder_sdk-2.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55273df90744a48ede8db302b31a23562641aa0f1fb45cae11b4b2ed205b7498
MD5 2e2d45105046e2d9770090ee90d5e937
BLAKE2b-256 3d4ec7436af1a9dd0fdff18b1cded4b0e10505dd26945c4d5b29cbfbc54044c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentbreeder_sdk-2.6.0-py3-none-any.whl:

Publisher: release.yml on agentbreeder/agentbreeder

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