ag2
AG2 (formerly AutoGen): The Open-Source AgentOS.Join us at: https://discord.gg/sNGSwQME3x
File Explorer
- bug_report.yml
- config.yml
- feature_request.yml
- ai-slop-review.md
- ai-slop.md
- close-duplicate.md
- close-invalid.md
- close-wontfix.md
- duplicate-suspect.md
- extension-maintainer-ping.md
- extension-suggestion.md
- merge-conflict.md
- needs-cla.md
- needs-reproduction.md
- needs-template-issue.md
- needs-template-pr.md
- README.md
- redirect-question.md
- security-report.md
- stale-close.md
- stale-warning.md
- welcome-first-pr.md
- TRIAGE_AI_TASKS.md
- TRIAGE_POLICY.md
- build-mkdocs.yml
- deploy-website.yml
- lfs-check.yml
- llm-test.yml
- mkdocs-check-broken-links.yml
- pr-checks.yml
- pr_labeler.yaml
- python-package.yml
- test.yml
- type-check.yml
- zizmor.yml
- AI_POLICY.md
- codecov.yml
- CODEOWNERS
- dependabot.yml
- labeler.yml
- PULL_REQUEST_TEMPLATE.md
- SECURITY.md
- zizmor.yml
- __init__.py
- events.py
- history.py
- messages.py
- parts.py
- tools.py
- __init__.py
- _common.py
- _http.py
- grpc.py
- jsonrpc.py
- rest.py
- __init__.py
- _session.py
- card.py
- client.py
- config.py
- errors.py
- events.py
- executor.py
- extension.py
- push.py
- security.py
- server.py
- tasks.py
- testing.py
- __init__.py
- executor.py
- extension.py
- parts.py
- __init__.py
- ag_ui.py
- base.py
- rest.py
- basic_catalog.json
- basic_catalog_rules.txt
- client_capabilities.json
- client_data_model.json
- client_to_server.json
- client_to_server_list.json
- common_types.json
- README.md
- server_capabilities.json
- server_to_client.json
- server_to_client_list.json
- prompt_example.json
- prompt_message_types.md
- basic_catalog.json
- basic_catalog_rules.txt
- client_capabilities.json
- client_data_model.json
- client_to_server.json
- client_to_server_list.json
- common_types.json
- README.md
- server_capabilities.json
- server_to_client.json
- server_to_client_list.json
- prompt_example.json
- prompt_message_types.md
- basic_catalog.json
- client_capabilities.json
- client_data_model.json
- client_to_server.json
- client_to_server_list.json
- common_types.json
- README.md
- server_capabilities.json
- server_to_client.json
- server_to_client_list.json
- prompt_example.json
- prompt_message_types.md
- __init__.py
- _runtime.py
- _types.py
- actions.py
- capabilities.py
- constants.py
- dispatch.py
- events.py
- incoming.py
- middleware.py
- parser.py
- request.py
- schema_manager.py
- serialize.py
- server.py
- server_action.py
- __init__.py
- agent.py
- auth.py
- bridge.py
- client.py
- config.py
- dispatch.py
- elicitation.py
- events.py
- executor.py
- guard.py
- mappers.py
- permissions.py
- remote.py
- session.py
- sessions.py
- testing.py
- tool_gateway.py
- transport.py
- types.py
- __init__.py
- asgi.py
- events.py
- stream.py
- __init__.py
- anthropic_client.py
- config.py
- events.py
- files.py
- mappers.py
- __init__.py
- bedrock_client.py
- config.py
- mappers.py
- __init__.py
- config.py
- dashscope_client.py
- mappers.py
- __init__.py
- config.py
- events.py
- files.py
- gemini_client.py
- mappers.py
- __init__.py
- config.py
- files.py
- mappers.py
- mistral_client.py
- __init__.py
- config.py
- mappers.py
- ollama_client.py
- __init__.py
- config.py
- containers.py
- events.py
- files.py
- mappers.py
- openai_client.py
- openai_responses_client.py
- __init__.py
- config.py
- events.py
- files.py
- mappers.py
- xai_client.py
- __init__.py
- config.py
- files.py
- mappers.py
- zai_client.py
- __init__.py
- client.py
- config.py
- __init__.py
- suite.py
- task.py
- __init__.py
- budgets.py
- diff.py
- result.py
- store.py
- __init__.py
- _capture.py
- _settle.py
- evaluate.py
- runner.py
- variants.py
- __init__.py
- attribution.py
- correctness.py
- cost.py
- human_pairwise.py
- judge.py
- pairwise_judge.py
- threshold.py
- tools.py
- __init__.py
- _otel.py
- _otlp_json.py
- _spans.py
- tempo.py
- trace_source.py
- __init__.py
- _types.py
- events.py
- pairwise.py
- reporters.py
- scorer.py
- trace.py
- __init__.py
- _serialization.py
- alert.py
- base.py
- conditions.py
- input_events.py
- lifecycle.py
- sizing.py
- task_events.py
- tool_events.py
- types.py
- voice.py
- __init__.py
- environment.py
- sandbox.py
- __init__.py
- environment.py
- sandbox.py
- __init__.py
- client.py
- config.py
- errors.py
- executor.py
- mappers.py
- server.py
- testing.py
- __init__.py
- middleware.py
- types.py
- __init__.py
- environment.py
- sandbox.py
- __init__.py
- exa.py
- tinyfish.py
- xquik.py
- __init__.py
- __init__.py
- __init__.py
- api.py
- protocol.py
- types.py
- __init__.py
- base.py
- bootstrap.py
- config.py
- constants.py
- disk.py
- locked.py
- log.py
- memory.py
- polling.py
- redis.py
- sqlite.py
- __init__.py
- cascade.py
- elevenlabs.py
- gemini.py
- observer.py
- openai.py
- protocols.py
- realtime.py
- sound_device.py
- stt.py
- turn.py
- __init__.py
- _async.py
- errors.py
- executor.py
- info.py
- mappers.py
- prompts.py
- resources.py
- security.py
- server.py
- sessions.py
- testing.py
- tools.py
- __init__.py
- actions.py
- resources.py
- __init__.py
- approval.py
- __init__.py
- history_limiter.py
- llm_retry.py
- logging.py
- metrics.py
- telemetry.py
- token_limiter.py
- __init__.py
- base.py
- describe.py
- __init__.py
- base.py
- consulting.py
- conversation.py
- discussion.py
- workflow.py
- __init__.py
- channels.py
- context.py
- delegate.py
- peers.py
- say.py
- tasks.py
- __init__.py
- agent_client.py
- channel.py
- checkpoint.py
- handlers.py
- hub_client.py
- human_client.py
- inject.py
- network_client.py
- plugin.py
- skill_render.py
- task.py
- __init__.py
- _envelope_tracing.py
- arbiter.py
- audit.py
- core.py
- expectations.py
- layout.py
- listener.py
- sweepers.py
- telemetry.py
- __init__.py
- frames.py
- link.py
- local.py
- ws.py
- __init__.py
- base.py
- builtin.py
- __init__.py
- auth.py
- channel.py
- envelope.py
- errors.py
- handoff.py
- identity.py
- ids.py
- policies.py
- remote.py
- rule.py
- task_mirror.py
- transitions.py
- workflow_helpers.py
- __init__.py
- loop_detector.py
- observer.py
- token_monitor.py
- __init__.py
- alert.py
- conversation.py
- episodic_memory.py
- sliding_window.py
- token_budget.py
- working_memory.py
- __init__.py
- callable.py
- prompted.py
- proto.py
- schema.py
- __init__.py
- serializer.py
- storage.py
- stream.py
- __init__.py
- __init__.py
- _resolve.py
- code_execution.py
- file_search.py
- google_maps.py
- image_generation.py
- mcp_server.py
- memory.py
- retrieval.py
- shell.py
- skills.py
- tool_search.py
- web_fetch.py
- web_search.py
- x_search.py
- __init__.py
- base.py
- __init__.py
- tool.py
- __init__.py
- factory.py
- handler.py
- __init__.py
- client_tool.py
- function_tool.py
- toolkit.py
- __init__.py
- code.py
- shell.py
- __init__.py
- base.py
- environment.py
- factory.py
- filter.py
- local.py
- __init__.py
- duckduckgo.py
- perplexity.py
- tavily.py
- __init__.py
- tool.py
- __init__.py
- loader.py
- runtime.py
- __init__.py
- runtime.py
- skill.py
- __init__.py
- protocol.py
- __init__.py
- client.py
- config.py
- extractor.py
- lock.py
- toolkit.py
- __init__.py
- plugin.py
- skill_types.py
- toolkit.py
- __init__.py
- background.py
- persistent_stream.py
- run_task.py
- subagent_tool.py
- __init__.py
- toolkit.py
- types.py
- __init__.py
- filesystem.py
- __init__.py
- executor.py
- schemas.py
- tool.py
- types.py
- __init__.py
- _import_utils.py
- _replay.py
- _telemetry_consts.py
- agent.py
- aggregate.py
- annotations.py
- assembly.py
- compact.py
- context.py
- exceptions.py
- history.py
- hitl.py
- plugin.py
- py.typed
- spec.py
- stream.py
- task.py
- testing.py
- textual.py
- types.py
- usage.py
- utils.py
- version.py
- watch.py
- 0001-plugin-target-hierarchy.md
- 0002-tool-composite-hierarchy.md
- 0003-eval-run-api-takes-agent-instances.md
- 0004-events-publish-via-context-send.md
- 0005-skill-runtimes-own-io-plugin-composes-multiple-runtimes.md
- 0006-memory-skills-in-process-scripts-schema-in-content.md
- 0007-tool-dependency-provider-from-context.md
- 0008-agent-run-turn-is-scoped-to-its-context-manager.md
- 0009-agent-run-start-drives-in-background.md
- 0010-history-management-keys-on-conversational-not-transient.md
- 0010-network-tracing-bounded-traces-and-wal-traceparent.md
- 0011-history-sizing-uses-content-not-truncated-repr.md
- 0012-mistral-client-normalises-server-executed-tools.md
- 0013-middleware-describes-itself-or-reports-unknown.md
- agent-invocation.md
- CONTEXT-MAP.md
- skills.md
- __init__.py
- a2a_as_tool.py
- client_basic.py
- client_tool.py
- hitl.py
- multi_tenant.py
- push_notifications.py
- security.py
- server_basic.py
- server_multi_transport.py
- tasks_management.py
- __init__.py
- server_stdio.py
- __init__.py
- cascade_live_agent.py
- live_gemini.py
- live_interaction.py
- live_to_text_and_voice.py
- live_to_text_only.py
- live_tools_execution.py
- __init__.py
- client_demo.py
- client_http.py
- client_http_auth.py
- server_http.py
- server_http_auth.py
- server_resources.py
- server_stdio.py
- server_ui.py
- __init__.py
- daytona.py
- docker.py
- local.py
- __init__.py
- elevenlabs_stt_tts_streaming.py
- elevenlabs_stt_tts_sync.py
- stt.py
- stt_tts.py
- tts.py
- __init__.py
- LICENSE-CC
- LICENSE_original_MIT
- devcontainer.json.jinja
- generate-devcontainers.py
- generate-devcontainers.sh
- broken-links-check.sh
- docs_build_mkdocs.sh
- docs_serve_mkdocs.sh
- lint.sh
- pre-commit-license-check.py
- pre-commit-lint.sh
- pre-commit-mypy-run.sh
- show-coverage-report.sh
- test-docs.sh
- test-llm.sh
- test-skip-llm.sh
- test.sh
- __init__.py
- _helpers.py
- _http_server.py
- conftest.py
- test_card.py
- test_card_signing.py
- test_config.py
- test_dedup.py
- test_e2e_client_tools.py
- test_e2e_grpc.py
- test_e2e_hitl.py
- test_e2e_multi_turn.py
- test_e2e_rest.py
- test_e2e_text_only.py
- test_events_mapping.py
- test_events_observability.py
- test_extensions.py
- test_grpc_tls.py
- test_history_round_trip.py
- test_httpx_headers.py
- test_lifecycle.py
- test_messages_mapping.py
- test_protocol_version.py
- test_reconnect.py
- test_security.py
- test_shared_store.py
- test_tasks.py
- test_terminal_states.py
- __init__.py
- _helpers.py
- test_a2a_executor.py
- test_extension.py
- test_extension_e2e.py
- test_metadata.py
- test_parts.py
- __init__.py
- test_e2e_ag_ui.py
- test_e2e_rest.py
- test_rest.py
- __init__.py
- test_actions.py
- test_capabilities.py
- test_dispatch.py
- test_events.py
- test_inbound_event.py
- test_incoming.py
- test_middleware.py
- test_request.py
- test_response_parser.py
- test_runtime.py
- test_sanitize.py
- test_schema_manager.py
- test_serialize.py
- test_server_action_di.py
- __init__.py
- conftest.py
- test_agent_cancel.py
- test_agent_guard.py
- test_agent_hitl.py
- test_agent_initialize.py
- test_agent_lifecycle.py
- test_agent_mappers.py
- test_agent_prompt.py
- test_agent_sessions.py
- test_bridge.py
- test_client_e2e.py
- test_config.py
- test_elicitation.py
- test_elicitation_e2e.py
- test_events.py
- test_mappers.py
- test_permissions.py
- test_remote_config.py
- test_remote_e2e.py
- test_remote_transport.py
- test_session.py
- test_tool_gateway.py
- test_update_settling.py
- __init__.py
- test_adapter.py
- test_asgi.py
- test_empty_chunks.py
- test_mapper.py
- test_multimodal_input.py
- test_reasoning.py
- utils.py
- __init__.py
- test_concurrent_asks.py
- test_context_variables.py
- test_hitl.py
- test_hooks_di.py
- test_input.py
- test_knowledge_tool.py
- test_observer.py
- test_response_schema.py
- test_run.py
- test_sysprompt.py
- test_test_config.py
- test_tools_di.py
- test_usage.py
- __init__.py
- test_nlip_e2e.py
- __init__.py
- test_code_execution.py
- test_mcp_server.py
- test_memory.py
- test_shell.py
- test_skills.py
- test_tool_search_events.py
- test_tool_search_mapping.py
- test_tool_to_api.py
- test_unsupported.py
- test_web_fetch.py
- test_web_search.py
- __init__.py
- conftest.py
- test_anthropic_config.py
- test_anthropic_usage.py
- test_builtin_tool_events.py
- test_convert_messages.py
- test_files.py
- test_response_schema_to_api.py
- __init__.py
- test_tool_to_api.py
- test_unsupported.py
- __init__.py
- _helpers.py
- test_bedrock_client.py
- test_bedrock_config.py
- test_convert_messages.py
- test_response_schema.py
- test_usage.py
- __init__.py
- test_tool_to_api.py
- test_unsupported.py
- __init__.py
- test_convert_messages.py
- test_dashscope_config.py
- test_response_schema_to_api.py
- __init__.py
- test_code_execution.py
- test_file_search.py
- test_google_maps.py
- test_tool_config.py
- test_tool_to_api.py
- test_unsupported.py
- test_web_fetch.py
- test_web_search.py
- __init__.py
- conftest.py
- test_builtin_tool_events.py
- test_convert_messages.py
- test_empty_text_parts.py
- test_files.py
- test_gemini_config.py
- test_gemini_tool_config_request.py
- test_gemini_usage.py
- test_image_output.py
- test_response_schema_to_api.py
- test_tool_call_event.py
- test_tool_call_id.py
- __init__.py
- test_image_generation.py
- test_tool_to_api.py
- test_unsupported.py
- __init__.py
- _helpers.py
- conftest.py
- test_convert_messages.py
- test_files.py
- test_mistral_client.py
- test_mistral_config.py
- test_response_schema.py
- test_usage.py
- __init__.py
- test_tool_to_api.py
- test_unsupported.py
- __init__.py
- test_convert_messages.py
- test_ollama_config.py
- test_response_schema_to_api.py
- __init__.py
- test_code_execution.py
- test_file_search.py
- test_image_generation.py
- test_mcp_server.py
- test_shell.py
- test_skills_responses.py
- test_tool_search_responses_mapping.py
- test_tool_to_api.py
- test_unsupported.py
- test_web_search.py
- __init__.py
- conftest.py
- test_builtin_tool_events.py
- test_convert_messages.py
- test_files.py
- test_openai_client_tools.py
- test_openai_config.py
- test_openai_responses_client_options.py
- test_openai_responses_config.py
- test_openai_responses_usage.py
- test_openai_usage.py
- test_response_schema_to_api.py
- test_response_schema_to_responses_api.py
- test_responses_client_skills.py
- test_responses_client_store.py
- __init__.py
- test_code_execution.py
- test_mcp_server.py
- test_tool_to_api.py
- test_unsupported.py
- test_web_search.py
- test_x_search.py
- __init__.py
- test_convert_messages.py
- test_files.py
- test_response_schema_to_api.py
- test_xai_client.py
- test_xai_config.py
- test_xai_usage.py
- __init__.py
- test_retrieval.py
- test_tool_to_api.py
- test_unsupported.py
- test_web_search.py
- __init__.py
- _helpers.py
- conftest.py
- test_convert_messages.py
- test_files.py
- test_response_schema.py
- test_usage.py
- test_zai_client.py
- test_zai_config.py
- __init__.py
- _helpers.py
- conftest.py
- __init__.py
- test_dynamic_agent.py
- __init__.py
- test_suite.py
- __init__.py
- test_diff.py
- test_result.py
- test_store.py
- __init__.py
- test_eval_stream.py
- test_evaluate.py
- test_produce_evaluate.py
- test_run_pairwise.py
- test_runner.py
- test_smoke_weather.py
- test_variants.py
- weather_dataset.jsonl
- __init__.py
- test_agent_judge.py
- test_agent_judge_llm.py
- test_attribution.py
- test_builtin_scorers.py
- test_human_pairwise.py
- test_pairwise_judge.py
- test_threshold.py
- __init__.py
- test_otlp_json.py
- test_spans.py
- test_tempo.py
- test_trace_fidelity.py
- test_trace_source.py
- __init__.py
- test_evaluate_pairwise.py
- test_scorer_decorator.py
- test_trace.py
- __init__.py
- test_alert.py
- test_audio_input.py
- test_conditions.py
- test_conditions_repr.py
- test_document_input.py
- test_field.py
- test_image_input.py
- test_serialization.py
- test_sizing.py
- test_tool_events.py
- __init__.py
- test_daytona_environment.py
- test_daytona_sandbox.py
- __init__.py
- test_docker_environment.py
- test_docker_sandbox.py
- test_docker_shell.py
- __init__.py
- test_governance_middleware.py
- __init__.py
- test_tenki_environment.py
- test_tenki_sandbox.py
- __init__.py
- test_exa.py
- test_tinyfish.py
- test_xquik.py
- __init__.py
- conftest.py
- __init__.py
- __init__.py
- test_types.py
- test_uploaded_as_input.py
- __init__.py
- test_knowledge.py
- __init__.py
- test_cascade.py
- test_elevenlabs.py
- test_gemini_realtime_usage.py
- test_gemini_session_build.py
- test_openai_realtime_usage.py
- test_realtime_usage.py
- test_sound_device.py
- __init__.py
- _helpers.py
- test_content_mapping.py
- test_context_provider.py
- test_custom_tools.py
- test_e2e_structured.py
- test_e2e_text.py
- test_errors.py
- test_http.py
- test_progress.py
- test_prompts.py
- test_resources.py
- test_security.py
- test_server_info.py
- test_sessions.py
- __init__.py
- test_actions.py
- test_resources.py
- __init__.py
- test_metrics.py
- __init__.py
- test_approval.py
- test_history_limiter.py
- test_llm_retry.py
- test_token_limiter.py
- __init__.py
- test_telemetry.py
- __init__.py
- test_agent_turns.py
- test_conditional.py
- test_describe.py
- test_human_input.py
- test_llm_call.py
- test_tool_execution.py
- __init__.py
- _helpers.py
- test_adapter_edges.py
- test_adapter_tools.py
- test_at_least_once.py
- test_audit_and_lifecycle.py
- test_auth.py
- test_bridge_drives_workflow.py
- test_channel_inbox.py
- test_channel_pruning.py
- test_client_lifecycle.py
- test_consulting.py
- test_context_vars.py
- test_control_plane.py
- test_conversation.py
- test_discussion.py
- test_expectations.py
- test_expectations_boundary.py
- test_foundation.py
- test_hub_invariants.py
- test_hub_races.py
- test_hub_register_agent.py
- test_hub_telemetry.py
- test_human_client.py
- test_hydrate_robustness.py
- test_hydrate_scale.py
- test_observability.py
- test_observation.py
- test_packet_routing.py
- test_packet_with_context_update.py
- test_receive_loop_resilience.py
- test_reconnect.py
- test_remote.py
- test_rule_enforcement.py
- test_subclass_surface.py
- test_sweeper_and_registry.py
- test_task_durability.py
- test_tools.py
- test_transport_demux.py
- test_view_name_resolver.py
- test_workflow.py
- test_workflow_termination.py
- test_ws_transport.py
- __init__.py
- test_builtin.py
- test_lifecycle.py
- test_observer.py
- __init__.py
- __init__.py
- conftest.py
- test_reasoning_pairing.py
- test_sliding_window.py
- test_token_budget.py
- __init__.py
- conftest.py
- test_core_parity.py
- test_edge_cases.py
- test_extensibility.py
- test_harness.py
- test_observers.py
- test_subtasks.py
- __init__.py
- test_anthropic_integration.py
- test_network_coverage_smoke.py
- test_network_smoke.py
- test_session_smoke.py
- test_workflow_smoke.py
- __init__.py
- test_gemini_integration.py
- test_network_smoke.py
- test_session_smoke.py
- __init__.py
- test_network_smoke.py
- test_openai_integration.py
- __init__.py
- test_network_cross_process_smoke.py
- test_network_mixed_provider.py
- __init__.py
- test_callable.py
- test_prompted.py
- test_schema.py
- __init__.py
- helpers.py
- test_spec.py
- __init__.py
- test_redis_stream.py
- __init__.py
- test_iter.py
- test_stream.py
- test_transient.py
- __init__.py
- test_plugin.py
- __init__.py
- test_code_adapter.py
- test_shell_adapter.py
- __init__.py
- _helpers.py
- test_factory.py
- test_local_sandbox.py
- __init__.py
- test_duckduckgo.py
- test_perplexity.py
- test_tavily.py
- __init__.py
- conftest.py
- test_loader.py
- test_memory.py
- test_plugin.py
- test_skill_search.py
- test_toolkit.py
- __init__.py
- conftest.py
- test_agent_tools.py
- test_background.py
- test_client_tool.py
- test_defer_loading.py
- test_execution.py
- test_executor_builtin_passthrough.py
- test_filesystem.py
- test_local_shell.py
- test_mcp.py
- test_naming.py
- test_persistent_stream.py
- test_public_exports.py
- test_resolve.py
- test_sandbox_code.py
- test_skills.py
- test_task.py
- test_tool_search_integration.py
- test_tool_search_tool.py
- test_toolkit.py
- __init__.py
- _helpers.py
- AGENTS.md
- CLAUDE.md
- conftest.py
- test_agent_composition.py
- test_agent_resume.py
- test_aggregate.py
- test_alert_halt.py
- test_assembly.py
- test_compact.py
- test_history.py
- test_task.py
- test_usage.py
- test_watch.py
- test_watch_advanced.py
- ag2-beta-banner.webp
- agent-chat.png
- agent-history.png
- index.mdx
- live-agent-hero.png
- index.mdx
- n1-banner.webp
- n1-consulting.webp
- n1-conversation.webp
- n1-discussion.webp
- n1-mismatch.webp
- n1-primitives.webp
- n1-workflow.webp
- index.mdx
- n2-audience.webp
- n2-banner-animated.webp
- n2-centerpiece.webp
- n2-dial.webp
- n2-expectations.webp
- n2-transitions.webp
- index.mdx
- n3-audit.webp
- n3-banner-animated.webp
- n3-identity.webp
- n3-wal.webp
- index.mdx
- n4-auth.webp
- n4-banner.webp
- n4-reconnect.webp
- index.mdx
- banner.webp
- harness.webp
- index.mdx
- contributing.mdx
- contribution_policy.mdx
- documentation.mdx
- file-bug-report.mdx
- maintainer.mdx
- pre-commit.mdx
- Research.mdx
- setup-development-environment.mdx
- tests.mdx
- advanced.mdx
- card_signing.mdx
- client.mdx
- overview.mdx
- server.mdx
- tasks_and_push.mdx
- a2a.mdx
- actions.mdx
- capabilities.mdx
- overview.mdx
- server.mdx
- client.mdx
- server.mdx
- aggregation.mdx
- assembly.mdx
- compaction.mdx
- files.mdx
- knowledge_store.mdx
- observers.mdx
- stream.mdx
- watches.mdx
- backend-deepdive.mdx
- channels.mdx
- copilotkit-quickstart.mdx
- index.mdx
- 01_hello_agent.mdx
- 02_recipe_builder.mdx
- 03_travel_planner.mdx
- 04_token_watchdog.mdx
- 05_research_squad.mdx
- 06_journal_companion.mdx
- 07_long_doc_chat.mdx
- 08_safety_guard.mdx
- code_examples.mdx
- human_in_the_loop.mdx
- inject.mdx
- variables.mdx
- evaluation.mdx
- getting-started.mdx
- pairwise.mdx
- persistence.mdx
- runs.mdx
- scorers.mdx
- variants.mdx
- exa.mdx
- tinyfish.mdx
- xquik.mdx
- nlipagent.mdx
- tealtiger.mdx
- tenki.mdx
- live.mdx
- live_agent.mdx
- stt_tts.mdx
- image_generation.mdx
- inputs.mdx
- context_aware_routing.mdx
- coordinator.mdx
- escalation.mdx
- feedback_loop.mdx
- hierarchical.mdx
- pattern_cookbook.mdx
- pipeline.mdx
- redundant.mdx
- star.mdx
- triage_with_tasks.mdx
- adapters_overview.mdx
- agent_clients.mdx
- consulting.mdx
- context_variables.mdx
- conversation.mdx
- discussion.mdx
- distributed.mdx
- envelopes_and_events.mdx
- expectations_and_audit.mdx
- hub_and_identity.mdx
- human_client.mdx
- migration_from_group_chat.mdx
- network_assigned_tools.mdx
- overview.mdx
- quick_start.mdx
- task_observation.mdx
- termination.mdx
- views_and_skills.mdx
- workflow.mdx
- agent.mdx
- network.mdx
- approval_required.mdx
- builtin_tools.mdx
- code_execution.mdx
- common_toolkits.mdx
- local_shell.mdx
- mcp_servers.mdx
- mcp_ui.mdx
- tool_middleware.mdx
- toolkits.mdx
- tools.mdx
- agent_harness.mdx
- agents.mdx
- coding_with_ai.mdx
- depends.mdx
- metrics.mdx
- middleware.mdx
- model_configuration.mdx
- motivation.mdx
- quick-start.mdx
- resume.mdx
- skills.mdx
- structured_output.mdx
- subagents.mdx
- system_prompts.mdx
- tasks.mdx
- testing.mdx
- .gitignore
- ag2-white.svg
- ag2.svg
- favicon.svg
- __init__.py
- generate_mkdocs.py
- llms_txt.py
- notebook_processor.py
- process_notebooks.py
- utils.py
- gallery_items.yml
- people.yml
- ag2-widget-theme.js
- extra.js
- extra.css
- .gitignore
- index.md
- robots.txt
- __init__.py
- .gitkeep
- blue-bg.png
- bot-left-corner.png
- bot-right-corner.png
- button-shine.png
- city-horizon.png
- cloud.png
- conversation.png
- green-bg.png
- human.png
- intuitive.png
- purple-bg.png
- sun.png
- top-left-corner.png
- top-right-corner.png
- yellow-bg.png
- 404.html
- home.html
- main.html
- .gitignore
- docs.py
- expand_markdown.py
- generate_mkdocs.py
- generate_summary.py
- mkdocs.yml
- README.md
- update_releases.py
- ClientSideComponent.mdx
- GalleryPage.mdx
- GalleryItems.mdx
- client.mdx
- runmethodhelp.mdx
- agent-e.png
- autotx.png
- composio-autogen.png
- default.png
- robot.jpg
- TensionCode.png
- webagent.jpg
- x-force-ide-ui.png
- ag.ico
- ag.svg
- ag2.ico
- ag2.png
- ag2.svg
- auto.svg
- autogen.svg
- autogen_agentchat.png
- autogen_app.png
- autogen_app.svg
- chat_example.png
- conv.svg
- conv_2.svg
- cover.png
- create_gcp_svc.png
- ecosystem-composio.png
- extend.svg
- fast.svg
- favicon-dark.svg
- favicon.svg
- flaml.svg
- flaml_logo.ico
- flaml_logo_fill.svg
- homepage-hero-background-large.png
- homepage-hero-background.png
- logo.svg
- love.png
- .nojekyll
- index.mdx
- index.mdx
- index.mdx
- index.mdx
- index.mdx
- index.mdx
- index.mdx
- index.mdx
- index.mdx
- index.mdx
- index.mdx
- index.mdx
- index.mdx
- index.mdx
- index.mdx
- index.mdx
- index.mdx
- .gitignore
- AGENTS.md
- blogs_and_user_stories_authors.yml
- CLAUDE.md
- docusaurus.config.js
- mint-json-template.json.jinja
- process_notebooks.py
- README.md
- .gitattributes
- .gitignore
- .muffet-excluded-links.txt
- .pre-commit-config.yaml
- _typos.toml
- AGENTS.md
- announcements.md
- CITATION.cff
- CONTRIBUTING.md
- jog.yaml
- justfile
- LICENSE
- MAINTAINERS.md
- NOTICE.md
- OAI_CONFIG_LIST_sample
- pyproject.toml
- README.md
- TRANSPARENCY_FAQS.md
- uv.lock
# Installation Guide
pythonSetup Steps
pip install 'ag2[openai]'
Install the AG2 package with OpenAI support.
export OPENAI_API_KEY="<your-api-key>"
Set the OpenAI API key environment variable.
Key Commands
pip install 'ag2[openai]'
Install the AG2 package including OpenAI provider support.
# 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.
Release Timeline
Actively MaintainedCommand Glossary
Commands referenced in this DOCs, explained below.
write
View Details ▼
write
Write data to memory.
write memory
Write current configuration to memory:
write {{username}} {{terminal_id}}
Send a message to a given user on a given terminal ID:
write {{username}} {{terminal_id}}
Send a message to a given user on a given terminal ID:
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:
prek
View Details ▼
prek
Create Git hooks that run before commits.
prek install
Install prek into your Git hooks:
prek run
Run prek hooks on all staged files:
prek run {{[-a|--all-files]}}
Run prek hooks on all files, staged or unstaged:
