Skip to main content

Overview

Orbits are the top-level orchestration constructs in OrbitAI that bring together agents, tasks, and processes into cohesive, executable workflows. An orbit manages the complete lifecycle of multi-agent execution, from initialization through task distribution to result aggregation.

Orchestration

Coordinates multiple agents and tasks

Lifecycle Management

Manages execution from start to finish

LLM Integration

Automatic LLM provider setup

Memory Systems

Shared and agent-specific memory

Context Flow

Manages data flow between tasks

Telemetry

Comprehensive metrics and monitoring

What is an Orbit?

An Orbit is a complete workflow system that:
  • Manages agents: Configures and coordinates AI agents
  • Executes tasks: Runs tasks according to process type
  • Handles state: Tracks execution progress and results
  • Provides infrastructure: LLM providers, memory, tools, knowledge bases
  • Monitors performance: Collects metrics and usage data
  • Ensures reliability: Error handling and recovery mechanisms
Think of an Orbit as a “project” or “workflow instance” that contains everything needed to execute a multi-agent system.

Key Characteristics

Orbits encapsulate all necessary components—agents, tasks, LLM providers, memory, and tools—making them portable and reusable.
Execution follows one of three process types (Sequential, Hierarchical, Flow-Based), providing predictable orchestration patterns.
Maintains execution context that flows through tasks, enabling agents to build upon previous work and share information.
Provides comprehensive visibility into execution through verbose logging, metrics, and telemetry integration.

Orbit Lifecycle

Understanding the orbit lifecycle helps you manage execution and handle edge cases effectively.

Lifecycle States

Phase: Orbit construction and setupActivities:
  • Validate required parameters
  • Create internal components
  • Setup LLM manager
  • Initialize memory systems
  • Register tools with ToolsHandler
  • Prepare knowledge bases
  • Validate agent configurations
  • Validate task configurations
Code Example:
Common Errors:
  • Missing required parameters
  • Invalid agent configurations
  • LLM provider setup failures
  • Tool registration issues
Initialization errors are thrown immediately—catch and handle them before attempting execution.

Parameters and Configuration

Core Parameters

These three parameters are the minimum required to create a functioning orbit.

Creating and Configuring Orbits

Basic Creation

1

Define Agents

Create agents with appropriate roles and capabilities:
2

Define Tasks

Create tasks with clear descriptions and expected outputs:
3

Create Orbit

Bring agents and tasks together:
4

Execute

Start the orbit and get results:

Advanced Configuration

Configure specific LLM providers:

Execution Process

Execution Flow

Characteristics:
  • Strict linear execution
  • Each task waits for previous
  • Context builds sequentially
  • Predictable timing

Execution Context

The execution context flows through tasks:
Context Flow Example:

Inputs and Interpolation

OrbitInput

Provide dynamic inputs to orbits:

Variable Interpolation

Reference previous task outputs:
Variable Format:
  • {task_0_output} - First task
  • {task_1_output} - Second task
  • {task_N_output} - Nth task
Reference orbit-level inputs:
Use conditional values:
Conditional interpolation is processed before task execution.

Outputs

OrbitOutput Structure

Accessing Results

Monitoring and Telemetry

Real-Time Monitoring

Metrics Collection

Error Handling

Error Types

Configuration Errors

When: During orbit creation
Common Causes:
  • Missing required parameters
  • Invalid agent configurations
  • Empty agents or tasks arrays

Execution Errors

When: During orbit.start()
Common Causes:
  • Task execution failures
  • Agent errors
  • Tool failures
  • Timeout exceeded

LLM Errors

When: LLM provider issues
Common Causes:
  • Rate limits
  • API key issues
  • Provider unavailability
  • Token limits exceeded

Resource Errors

When: Resource constraints
Common Causes:
  • Memory constraints
  • Timeout limits
  • Disk space issues

Error Recovery Strategies

Best Practices

Orbit Design

Appropriate Scope

Do: Create focused orbits for specific workflows
Don’t: Create monolithic orbits

Agent Specialization

Do: Assign specialized agents to relevant tasks
Don’t: Use generic agents for everything

Memory Management

Do: Enable memory only when needed

Error Boundaries

Do: Implement proper error handling
Don’t: Ignore errors

Performance Optimization

1

Choose Appropriate Process

2

Optimize Task Granularity

3

Configure Concurrency

4

Monitor and Tune

Troubleshooting

Symptoms: Errors during Orbit.create()Common Causes:
  • Missing required parameters
  • Invalid agent/task configurations
  • LLM provider setup failure
Solutions:
Symptoms: Orbit starts but tasks don’t runCommon Causes:
  • Agent assignment issues
  • Missing tools
  • LLM provider not configured
Solutions:
Symptoms: {variable} appears literally in outputsCommon Causes:
  • Missing context declaration
  • Wrong variable names
  • Inputs not provided
Solutions:
Symptoms: Memory consumption growing excessivelyCommon Causes:
  • Memory enabled unnecessarily
  • Large outputs accumulating
  • Knowledge bases loaded but not needed
Solutions:
Symptoms: Orbit takes much longer than expectedCommon Causes:
  • Sequential execution when parallel possible
  • Large context windows
  • Inefficient tool usage
  • No concurrency limits set
Solutions:
Symptoms: Different outputs for same inputsCommon Causes:
  • High temperature settings
  • Non-deterministic tools
  • Memory state differences
  • Random LLM sampling
Solutions:

Next Steps

Agents

Configure agents for orbits

Tasks

Define tasks for execution

Processes

Choose the right process type

Examples

See complete orbit examples
For additional support, consult the GitHub Discussions or check the Issue Tracker.