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 c2c56bf 3 files · 10.1 KB Updated

File contents

ag2ai/ag2-skills/tree/main/skills/ag2-quickstart commit c2c56bfe41

Frequently asked questions

npx skillmds@latest add ag2ai/ag2-quickstart