API Reference

API Reference#

Complete API documentation for Pantheon’s classes and modules.

Core Components:

Utilities:

Quick Reference#

Core Classes#

pantheon.agent.Agent

The Agent class is the core component of Pantheon, providing a flexible interface for creating AI-powered agents with tools, memory, and collaboration capabilities.

pantheon.team.PantheonTeam

Pantheon team structure with unified agent architecture.

pantheon.team.SequentialTeam

Team that run agents in sequential order.

pantheon.team.SwarmTeam

Team that run agents in handoff & routines patterns like OpenAI's [Swarm framework](openai/swarm).

pantheon.team.SwarmCenterTeam

Swarm team that has a central triage agent that decides which agent to handoff to.

pantheon.team.MoATeam

Team that run agents in a MoA (Mixture-of-Agents) pattern.

Basic Usage#

from pantheon.agent import Agent
from pantheon.team import SequentialTeam

# Create an agent
agent = Agent(
    name="my_agent",
    instructions="You are a helpful assistant."
)

# Use in a team
team = SequentialTeam([agent1, agent2])
await team.chat()