Skip to main content

Multi-Agent Orchestration Framework for Python

Project description

orxhestra logo

Multi-agent orchestration framework for Python.

PyPI Python License


Compose multi-agent AI systems with async event streaming, agent hierarchies, and built-in support for MCP and A2A protocols.

Quickstart

pip install orxhestra
# or
uv add orxhestra
from orxhestra import LlmAgent, Runner, InMemorySessionService

agent = LlmAgent(
    name="assistant",
    model="gpt-5.4",
    instructions="You are a helpful assistant.",
)

runner = Runner(agent=agent, session_service=InMemorySessionService())
response = await runner.run(user_id="user1", session_id="s1", new_message="Hello!")

for event in response:
    print(event.content)

[!TIP] For full documentation, guides, and API reference, visit orxhestra.com.

Features

  • Agent ensemble - LLM, ReAct, Sequential, Parallel, and Loop agents
  • Event streaming - Async event-driven architecture with real-time streaming
  • Composer - Conduct entire agent orchestras declaratively with YAML
  • Tools - Function tools, filesystem tools, agent-as-tool, shell, and long-running tool support
  • Planners - Choreograph task execution with PlanReAct and TaskPlanner strategies
  • Skills - Reusable, composable agent repertoires
  • MCP - Model Context Protocol integration for tool servers
  • A2A - Agent-to-Agent protocol for cross-service harmonization
  • Memory - Pluggable memory stores for persistent agent context
  • Tracing - Built-in support for Langfuse, LangSmith, and custom callbacks

Agents at a glance

Agent Description
LlmAgent Chat model agent with tools, instructions, and structured output
ReActAgent Reasoning + acting loop with automatic tool use
SequentialAgent Runs sub-agents in order
ParallelAgent Runs sub-agents concurrently
LoopAgent Repeats a sub-agent until exit condition
A2AAgent Connects to remote agents via A2A protocol

Composer

Define entire agent orchestras in a single YAML file — no Python wiring needed. Compose LLM agents, loops, pipelines, tools, and review cycles declaratively. The example below builds a coding agent that plans, implements with filesystem + shell access, and self-reviews in a loop:

defaults:
  model:
    provider: openai
    name: gpt-5.4

tools:
  exit:
    builtin: "exit_loop"
  filesystem:
    builtin: "filesystem"
  shell:
    builtin: "shell"

agents:
  planner:
    type: llm
    description: "Plans the implementation steps for the coder agent."
    instructions: |
      Output a numbered list of concrete steps the coder
      should execute. Each step must be an actionable file
      operation or shell command.

  coder:
    type: llm
    description: "Implements code changes with filesystem and shell access."
    instructions: |
      Follow the plan from the previous step exactly.
      Use filesystem tools to create files and shell to
      run commands. Never ask the user to do anything.
    tools:
      - filesystem
      - shell

  reviewer:
    type: llm
    description: "Reviews changes and approves or requests fixes."
    instructions: |
      Check files exist and look correct. If done, call
      exit_loop. Otherwise describe what needs fixing.
    tools:
      - exit

  dev_loop:
    type: loop
    agents: [coder, reviewer]
    max_iterations: 10

  coordinator:
    type: sequential
    agents: [planner, dev_loop]

main_agent: coordinator

runner:
  app_name: coding-agent
  session_service: memory
orxhestra compose.yaml

Docker

docker run -e OPENAI_API_KEY=$OPENAI_API_KEY \
  -v ./compose.yaml:/app/compose.yaml \
  nicolaimtlassen/orxhestra

Documentation


Acknowledgments

This project is built on the shoulders of several outstanding open-source projects and research efforts:

Special thanks to the open-source AI community for pushing the boundaries of what's possible with agent frameworks.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orxhestra-0.0.3.tar.gz (91.1 kB view details)

Uploaded Source

Built Distribution

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

orxhestra-0.0.3-py3-none-any.whl (102.0 kB view details)

Uploaded Python 3

File details

Details for the file orxhestra-0.0.3.tar.gz.

File metadata

  • Download URL: orxhestra-0.0.3.tar.gz
  • Upload date:
  • Size: 91.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for orxhestra-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d09a88edfa25d38495809c41048ce188da08980fd1168177c2c876bec2c78e0b
MD5 70bdc46ac8d65b2cd4ba388a81ed6ea9
BLAKE2b-256 e215cd58ab6e1f42bce4118a29c8588087172e72138a3036d6f95046440911a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for orxhestra-0.0.3.tar.gz:

Publisher: publish.yml on NicolaiLassen/orxhestra

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

File details

Details for the file orxhestra-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: orxhestra-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 102.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for orxhestra-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6c044461caaac0c8cb9f57665c53bc01c07c6df0028cb42c7538dc24d431b15c
MD5 7d4ccfca3f79310eafb380854774a9de
BLAKE2b-256 4bc9a38bd3e40c439089731e1bc631dcb8ce65c6087b60cc3a872cc831137b84

See more details on using hashes here.

Provenance

The following attestation bundles were made for orxhestra-0.0.3-py3-none-any.whl:

Publisher: publish.yml on NicolaiLassen/orxhestra

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