Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions docs/v2/integrations/ag2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@ description: "Track and analyze your AG2 agents with AgentOps"

<CodeGroup>
```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
```
</CodeGroup>

> ⚠️ **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

Before using AG2 with AgentOps, you need to set up your API keys. You can obtain:
Expand Down