Create
The ag2 create command generates boilerplate for common AG2 patterns.
ag2 create project#
Scaffold a full project with directory structure, dependencies, and starter code.
Built-in templates: blank, research-team, rag-chatbot
This generates:
ag2 create agent#
Generate a single agent file with system message and optional tool wiring.
ag2 create tool#
Create a tool function with the @tool decorator and proper typing.
ag2 create team#
Generate a multi-agent team with a specified orchestration pattern.
Patterns: auto, round-robin, random
ag2 create artifact#
Scaffold a publishable artifact with artifact.json and the required directory structure.
Types: template, tool, dataset, agent, skills, bundle
This creates the structure needed for ag2 publish.