AG2 + AgentSpec - Portable AI Agent Definitions | AG2 | AG2

Introducing the Universal Agent: your guide to AgentOS

AG2 + AgentSpec

Define portable agentic systems with AgentSpec. Build AG2 agents and multi-agent workflows using Oracle's open specification for AI agents.

AgentSpec Documentation AG2 Documentation

Documentation & Resources

AG2 + AgentSpec Integration

Official AG2 documentation for defining agents and workflows using the AgentSpec specification.



Specification
Open Agent Specification \ Oracle's open specification for defining agentic systems—standalone agents, workflows, and multi-agent compositions.
View specification](https://oracle.github.io/agent-spec/26.1.0/)

Why Use AG2 with AgentSpec

AgentSpec is a portable language for defining agentic systems. It provides building blocks for standalone agents and structured agentic workflows, as well as common patterns for composing them into multi-agent systems.

When combined with AG2's multi-agent orchestration framework, AgentSpec enables you to define your agent configurations in a standardized, vendor-neutral format. This makes your AG2 workflows more portable, maintainable, and interoperable with other agent frameworks.

AG2's flexible architecture aligns well with AgentSpec's declarative approach—you can define agent behaviors and workflows in AgentSpec, then execute them using AG2's powerful runtime capabilities.

AG2 Capabilities

What You Can Build

AgentSpec provides a standardized way to define and compose AG2 agents.

Portable Agent Definitions

Define AG2 agents using AgentSpec's portable language, making your agent configurations shareable and reusable across projects.

Structured Workflows

Use AgentSpec to define complex multi-agent workflows with clear structure, making AG2 agent orchestration more maintainable.

Vendor-Neutral Standard

AgentSpec provides a vendor-neutral way to define agents, ensuring your AG2 workflows aren't locked into proprietary formats.

Multi-Agent Composition

Compose standalone AG2 agents into sophisticated multi-agent systems using AgentSpec's building blocks.

Declarative Configuration

Define agent behaviors declaratively, separating configuration from implementation for cleaner AG2 codebases.

Interoperability

AgentSpec enables AG2 agents to interoperate with agents built on other frameworks that support the specification.

Get Started

Learn more about AgentSpec and how to define portable agent specifications for your AG2 workflows.

Explore AgentSpec Back to Ecosystem