Skip to content
AgentSchema network diagram showing connected agents and data flow

AgentSchema

A unified specification for building agents with ease. Code-first YAML format that's easy to read, understand, and integrate into existing repositories.

Get started with AgentSchema in your preferred language:

Terminal window
pip install agentschema
from agentschema import AgentDefinition
# Load from YAML file
agent = AgentDefinition.from_yaml_file("agent.yaml")
# Or create programmatically
agent = AgentDefinition(
name="my-assistant",
description="A helpful AI assistant",
model="gpt-4o",
instructions="You are a helpful assistant."
)
# Save to YAML
agent.to_yaml_file("agent.yaml")

Easy to Read & Understand

Simple YAML format that developers can quickly grasp and work with, making agent development accessible to everyone.

Easy Integration

Designed to be easily added to existing repositories without major restructuring or complex setup processes.

Platform Exchange Format

Serves as a unified exchange format between Microsoft Copilot Studio, Microsoft Foundry, and future platforms.

Unified Object Model

Creates a consistent agentic primitive object model that standardizes how agents are defined and structured.

Enterprise-Grade Quality

A joint collaboration between Microsoft Copilot Studio and Microsoft Foundry teams, ensuring production-ready reliability.

Modern Architecture

Built with modern development practices and incorporates advanced agentic features and capabilities.

📖 Object Model

Explore the complete AgentSchema object model with detailed documentation and examples.

View Documentation →

📦 Runtimes

Use our official runtime libraries to work with AgentSchema in TypeScript, Python, C#, or Go.

View Runtimes →

🚀 Examples

See AgentSchema in action with real-world examples including analyst, QnA, and travel agents.

Getting Started Guide →

🤝 Contributing

Help improve the specification by contributing to the AgentSchema project.

Contributing Guide →

⚙️ Code Generation

Generate your own runtime libraries with the TypeSpec emitter.

Emitter Guide →

AgentSchema bridges the gap across different agentic platforms, providing a standardized way to define and deploy agents regardless of your chosen environment. It incorporates advanced agentic capabilities while maintaining simplicity and readability, making it the ideal choice for modern agent development workflows.