Ag2 Quickstart

Build a minimal AG2 `Agent` end to end — pick a model provider, set a prompt, call `agent.ask()`, then continue the conversation with `reply.ask()` (multi-turn). Use when the user is starting a new AG2 project, has no working `Agent` yet, or needs the multi-turn chaining pattern. Covers `OpenAIConfig`, `AnthropicConfig`, `GeminiConfig`, `OllamaConfig` etc., and env-var fallback for API keys.

ag2ai Updated 252 repo stars

File contents

ag2ai/ag2-skills commit c2c56bfe41

Frequently asked questions

npx get-skill add ag2ai/ag2-quickstart