build-with-ag2
Sample code and application showcases to get you going with AG2 (formally AutoGen)
File Explorer
- dependency_injection.md
- SKILL.md
- SKILL.md
- SKILL.md
- journal_companion.py
- long_doc_chat.py
- SKILL.md
- builtin_middleware.md
- SKILL.md
- SKILL.md
- safety_guard.py
- token_watchdog.py
- SKILL.md
- SKILL.md
- hello_agent.py
- multi_turn.py
- SKILL.md
- SKILL.md
- recipe_builder.py
- SKILL.md
- research_squad.py
- SKILL.md
- SKILL.md
- SKILL.md
- builtin_tools_matrix.md
- SKILL.md
- calc.py
- SKILL.md
- skills
- bug_report.yml
- config.yml
- feature_request.yml
- general_issue.yml
- external_link_template.md
- issue_pr_template.md
- lfs-check.yml
- pre-commit.yml
- ISSUE_TEMPLATE.md
- chat_message.dart
- chat_state.dart
- linkedin_post_item.dart
- x_post_item.dart
- chat_screen.dart
- message_bubble.dart
- surface_widget.dart
- main.dart
- Icon-192.png
- Icon-512.png
- Icon-maskable-192.png
- Icon-maskable-512.png
- favicon.png
- index.html
- manifest.json
- .gitignore
- .metadata
- analysis_options.yaml
- pubspec.lock
- pubspec.yaml
- AG2-square.png
- bottle-hero.png
- roadscape.png
- robot-blue.png
- .env.example
- backend.py
- README.md
- requirements.txt
- social_catalog.json
- background.png
- cloud.png
- roadscape.png
- Robot-MS-Aqua.png
- Robot-MS-Blue.png
- Robot-MS-Green.png
- Robot-MS-Grey.png
- Robot-MS-Orange.png
- Robot-MS-Pink.png
- Robot-MS-Red.png
- sun.png
- backend.py
- frontend.html
- README.md
- ag2-logo.svg
- favicondark.svg
- faviconlight.svg
- frontend.html
- main.py
- README.md
- requirements.txt
- server.py
- task.json
- background.png
- cloud.png
- roadscape.png
- Robot-MS-Aqua.png
- Robot-MS-Blue.png
- Robot-MS-Green.png
- Robot-MS-Grey.png
- Robot-MS-Orange.png
- Robot-MS-Pink.png
- Robot-MS-Red.png
- style.css
- sun.png
- backend.py
- frontend.html
- README.md
- README.md
- ep01_why_agents.ipynb
- ep02_first_agent.ipynb
- ep03_tools.ipynb
- ep04_task_delegation.ipynb
- ep05_live_agent.ipynb
- ep06_agent_harness.ipynb
- ep07_middleware.ipynb
- ep08_assembly_policies.ipynb
- ep09_structured_output.ipynb
- ep10_hub_intro.ipynb
- ep11_consulting.ipynb
- ep12_conversation.ipynb
- ep13_discussion.ipynb
- ep14_workflow.ipynb
- ep15_coordinator_pattern.ipynb
- ep16_choosing_patterns.ipynb
- ep17_real_app.ipynb
- ep18_research.ipynb
- ep19_knowledge_base.ipynb
- ep20_web_browsing.ipynb
- ep21_agent_ui.ipynb
- ep22_plain_html_frontend.ipynb
- ep23_mcp.ipynb
- ep24_telemetry.ipynb
- ep25_observers.ipynb
- ep26_security.ipynb
- ep27_testing.ipynb
- ep28_cost_optimization.ipynb
- ep29_deploy.ipynb
- ep30_redundancy.ipynb
- ep31_reasoning.ipynb
- ep32_events.ipynb
- ep33_migration_guide.ipynb
- ep34_whats_next.ipynb
- troubleshooting.md
- context_aware_routing.png
- escalation.png
- feedback_loop.png
- hierarchical.png
- organic.png
- redundant.png
- .env.example
- README.md
- requirements.txt
- .env.example
- main.py
- pyproject.toml
- README.md
- uv.lock
- .env.example
- .python-version
- main.py
- pyproject.toml
- README.md
- uv.lock
- .env.example
- house_prices_train.csv
- index.html
- main.py
- pyproject.toml
- README.html
- README.md
- utils.py
- cloud.png
- roadscape.png
- Robot-MS-Aqua.png
- Robot-MS-Blue.png
- Robot-MS-Green.png
- Robot-MS-Orange.png
- sun.png
- .env.example
- backend.py
- frontend.html
- pyproject.toml
- README.md
- uv.lock
- cloud.png
- roadscape.png
- Robot-MS-Aqua.png
- Robot-MS-Blue.png
- Robot-MS-Green.png
- Robot-MS-Orange.png
- sun.png
- titanic.csv
- .env.example
- backend.py
- frontend.html
- pyproject.toml
- README.md
- uv.lock
- __init__.py
- commentator.py
- detective.py
- eleanor.py
- suspect.py
- __init__.py
- blackwood_estate.py
- index.html
- mystery_dinner.css
- mystery_dinner.js
- __init__.py
- clock.py
- commentary.py
- config.py
- game_master.py
- memory.py
- server.py
- ag2_white.svg
- avatar_commentator.png
- avatar_detective.png
- favicon.png
- loc_country_manor.png
- loc_estate.png
- loc_penthouse.png
- loc_ski_chalet.png
- loc_yacht.png
- map_background.png
- ppl_accountant.png
- ppl_artist.png
- ppl_chef.png
- ppl_doctor.png
- ppl_driver.png
- ppl_gardener.png
- ppl_heir_1.png
- ppl_heir_2.png
- ppl_journalist_1.png
- ppl_journalist_2.png
- ppl_librarian.png
- ppl_maid.png
- ppl_pilot.png
- ppl_scientist.png
- tile_chalkboard.png
- tile_darkwood.png
- tile_partment.png
- .gitignore
- .pre-commit-config.yaml
- README.md
- requirements.txt
- .env.example
- main.py
- pyproject.toml
- README.md
- uv.lock
- README.md
- .env.example
- .gitignore
- gdrive_signin.py
- main.py
- pyproject.toml
- README.html
- README.md
- requirements.txt
- .env.example
- .gitignore
- .python-version
- backend.py
- frontend.py
- main.py
- pyproject.toml
- README.html
- README.md
- .gitignore
- main.py
- prompts.py
- README.md
- requirements.txt
- .env.example
- functions.py
- main.py
- mock_order_database.json
- mock_user_info.json
- prompts.py
- pyproject.toml
- README.html
- README.md
- .env.example
- .gitignore
- email_utils.py
- main.py
- pyproject.toml
- README.html
- README.md
- uv.lock
- .env.example
- .gitignore
- main.py
- pyproject.toml
- README.html
- README.md
- game-design-page.png
- game-designed.png
- agent_utils.py
- LICENSE
- main.py
- README.md
- requirements.txt
- __init__.py
- telemetry.py
- typing.py
- __init__.py
- agent.py
- fast_api_app.py
- __init__.py
- test_agent.py
- __init__.py
- pyproject.toml
- README.md
- favicon.svg
- favicondark.svg
- faviconlight.svg
- icons.svg
- ag2-logo-white.svg
- hero.png
- mascot-1.png
- mascot-2.png
- mascot-3.png
- mascot-4.png
- mascot-5.png
- react.svg
- vite.svg
- AgentTrace.jsx
- EvidenceFeed.jsx
- HITLPanel.jsx
- Markdown.jsx
- RCASynthesis.jsx
- StatusBadge.jsx
- TitleBar.jsx
- mockData.js
- backend.js
- BackendProvider.jsx
- mappers.js
- DashboardPage.jsx
- InvestigationPage.jsx
- MonitoringPage.jsx
- App.css
- App.jsx
- index.css
- main.jsx
- tokens.css
- .gitignore
- eslint.config.js
- index.html
- package-lock.json
- package.json
- README.md
- vite.config.js
- README.md
- server.py
- smoke_client.py
- .env.example
- mock_world.py
- mockup.html
- parallel_workflow.py
- README.md
- run_demo.py
- test_e2e_workflow.py
- test_parallel_workflow.py
- pyproject.toml
- README.md
- start.sh
- uv.lock
- ag2.svg
- Audio.js
- main.js
- chat.html
- .gitignore
- __init__.py
- LICENSE
- main.py
- OAI_CONFIG_LIST_sample
- README.md
- requirements.txt
- todo_utils.py
- main.py
- OAI_CONFIG_LIST_sample
- project-template.ipynb
- README.md
- requirements.txt
- .env.example
- main.py
- README.md
- requirements.txt
- attractions.json
- cities.json
- restaurants.json
- travel-planning-overview.png
- .env.example
- google_map_platforms.py
- main.py
- ontology.py
- pyproject.toml
- README.md
- requirements.txt
- .dockerignore
- agent.py
- cloudbuild.yaml
- deploy.sh
- Dockerfile
- Readme.md
- requirements.txt
- .env.example
- pattern_advanced_context_aware_routing.py
- pattern_advanced_escalation.py
- pattern_advanced_feedback_loop.py
- pattern_advanced_hierarchical.py
- pattern_advanced_organic.py
- pattern_advanced_pipeline.py
- pattern_advanced_redundant.py
- pattern_advanced_star.py
- pattern_advanced_triage_with_tasks.py
- pattern_basic_1_two_agent_chat.py
- pattern_basic_2_sequential_chat.py
- pattern_basic_3_nested_chat.py
- pattern_basic_4_group_chat.py
- pyproject.toml
- README.md
- .coveragerc
- .gitattributes
- .gitignore
- .pre-commit-config.yaml
- external_repo_guide.md
- LICENSE
- README.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
git clone
View Details ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
pip install
View Details ▼
pip install
Install Python packages.
pip install {{package1 package2 ...}}
Install one or more packages:
pip install {{package1 package2 ...}} {{[-U|--upgrade]}}
Upgrade all specified packages to the latest version, installing any that are not already present:
pip install {{package}}=={{version}}
Install a specific version of a package:
pre-commit
View Details ▼
pre-commit
Create Git hooks that run before commits.
pre-commit install
Install pre-commit into your Git hooks:
pre-commit run
Run pre-commit hooks on all staged files:
pre-commit run --all-files
Run pre-commit hooks on all files, staged or unstaged:
