From a63a2dfd6bd5468ede39868db30cf1b1ffff6f7e Mon Sep 17 00:00:00 2001 From: Rohan170603 <163886014+Rohan170603@users.noreply.github.com> Date: Thu, 20 Aug 2026 12:22:08 +0530 Subject: [PATCH 1/2] docs: update AG2 integration to use ag2 package --- docs/v2/integrations/ag2.mdx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/v2/integrations/ag2.mdx b/docs/v2/integrations/ag2.mdx index 948c8be21..a646171d0 100755 --- a/docs/v2/integrations/ag2.mdx +++ b/docs/v2/integrations/ag2.mdx @@ -9,16 +9,19 @@ description: "Track and analyze your AG2 agents with AgentOps" ```bash pip - pip install agentops pyautogen + pip install agentops ag2 ``` ```bash poetry - poetry add agentops pyautogen + poetry add agentops ag2 ``` ```bash uv - uv pip install agentops pyautogen + uv pip install agentops ag2 ``` +> 📝 **Note:** `pyautogen` is deprecated. `ag2` is now the recommended package. +> The import syntax remains unchanged (`import autogen`). + ## Setting Up API Keys Before using AG2 with AgentOps, you need to set up your API keys. You can obtain: From b3d23fa3e4744466155e49c54b8567b05dff678f Mon Sep 17 00:00:00 2001 From: Rohan170603 <163886014+Rohan170603@users.noreply.github.com> Date: Thu, 20 Aug 2026 12:43:05 +0530 Subject: [PATCH 2/2] docs: update AG2 integration to use ag2 package --- docs/v2/integrations/ag2.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/v2/integrations/ag2.mdx b/docs/v2/integrations/ag2.mdx index a646171d0..2c3a5ce9c 100755 --- a/docs/v2/integrations/ag2.mdx +++ b/docs/v2/integrations/ag2.mdx @@ -19,8 +19,9 @@ description: "Track and analyze your AG2 agents with AgentOps" ``` -> 📝 **Note:** `pyautogen` is deprecated. `ag2` is now the recommended package. -> The import syntax remains unchanged (`import autogen`). +> ⚠️ **Important:** `pyautogen` is deprecated. `ag2` is now the recommended package. +> +> **API Migration:** The `ag2` package uses a different API than `pyautogen`. The examples below use the legacy `autogen` API and will be updated in a future version. For the current `ag2` API, see the [AG2 documentation](https://docs.ag2.ai/). ## Setting Up API Keys