API Reference#
Complete API documentation for Pantheon’s classes and modules.
Core Components:
Agent Module - Agent API
Team Module - Team API
Memory Module - Memory API
Utilities:
REPL Module - REPL API
Utils Module - Utility functions
Quick Reference#
Core Classes#
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 structure with unified agent architecture. |
Team that run agents in sequential order. |
|
Team that run agents in handoff & routines patterns like OpenAI's [Swarm framework](openai/swarm). |
|
Swarm team that has a central triage agent that decides which agent to handoff to. |
|
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()