Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AG2 Reference #602

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Thanks for checking out AgentOps. We're building tools to help developers like you make AI agents that actually work reliably. If you've ever tried to build an agent system, you know the pain - they're a nightmare to debug, impossible to monitor, and when something goes wrong... good luck figuring out why.

We created AgentOps to solve these headaches, and we'd love your help making it even better. Our SDK hooks into all the major Python frameworks (AutoGen, CrewAI, LangChain) and LLM providers (OpenAI, Anthropic, Cohere, etc.) to give you visibility into what your agents are actually doing.
We created AgentOps to solve these headaches, and we'd love your help making it even better. Our SDK hooks into all the major Python frameworks (AG2, CrewAI, LangChain) and LLM providers (OpenAI, Anthropic, Cohere, etc.) to give you visibility into what your agents are actually doing.

## How You Can Help

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ AgentOps helps developers build, evaluate, and monitor AI agents. From prototype
| 💸 **LLM Cost Management** | Track spend with LLM foundation model providers |
| 🧪 **Agent Benchmarking** | Test your agents against 1,000+ evals |
| 🔐 **Compliance and Security** | Detect common prompt injection and data exfiltration exploits |
| 🤝 **Framework Integrations** | Native Integrations with CrewAI, AutoGen, Camel AI, & LangChain |
| 🤝 **Framework Integrations** | Native Integrations with CrewAI, AG2(AutoGen), Camel AI, & LangChain |

## Quick Start ⌨️

Expand Down Expand Up @@ -171,11 +171,11 @@ pip install 'crewai[agentops]'
- [AgentOps integration example](https://docs.agentops.ai/v1/integrations/crewai)
- [Official CrewAI documentation](https://docs.crewai.com/how-to/AgentOps-Observability)

### AutoGen 🤖
With only two lines of code, add full observability and monitoring to Autogen agents. Set an `AGENTOPS_API_KEY` in your environment and call `agentops.init()`
### AG2 🤖
With only two lines of code, add full observability and monitoring to AG2 (formerly AutoGen) agents. Set an `AGENTOPS_API_KEY` in your environment and call `agentops.init()`

- [Autogen Observability Example](https://microsoft.github.io/autogen/docs/notebooks/agentchat_agentops)
- [Autogen - AgentOps Documentation](https://microsoft.github.io/autogen/docs/ecosystem/agentops)
- [AG2 Observability Example](https://docs.ag2.ai/notebooks/agentchat_agentops)
- [AG2 - AgentOps Documentation](https://docs.ag2.ai/docs/ecosystem/agentops)

### Camel AI 🐪

Expand Down
4 changes: 2 additions & 2 deletions docs/v1/examples/examples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ mode: "wide"
Track observations from Claude, Haiku and Sonnet series of models
</Card>

<Card title="AutoGen" icon="microsoft" href="/v1/integrations/autogen">
AutoGen multi-agent conversible workflow with tool usage
<Card title="AG2" icon={<img src="https://raw.githubusercontent.com/ag2ai/ag2/refs/heads/main/website/logo/ag2.svg" alt="AG2"/>} iconType="image" href="/v1/integrations/autogen">
AG2 (Formerly AutoGen) multi-agent conversible workflow with tool usage
</Card>

<Card title="CamelAI" icon={<img src="https://www.github.com/agentops-ai/agentops/blob/main/docs/images/external/camel/camel.png?raw=true" alt="CamelAI" />} iconType="image" href="/v1/examples/camel">
Expand Down
10 changes: 5 additions & 5 deletions docs/v1/integrations/autogen.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
title: Autogen
description: "Track your Autogen agents with AgentOps"
title: AG2
description: "Track your AG2 agents with AgentOps"
---

import CodeTooltip from '/snippets/add-code-tooltip.mdx'
import EnvTooltip from '/snippets/add-env-tooltip.mdx'

AgentOps and Autogen teamed up to make monitoring Autogen agents dead simple. Autogen has comprehensive [documentation](https://microsoft.github.io/autogen/docs) available as well as a great [quickstart](https://microsoft.github.io/autogen/docs/Getting-Started).
AgentOps and AG2 (Formerly AutoGen) teamed up to make monitoring AG2 agents dead simple. AG2 has comprehensive [documentation](https://docs.ag2.ai/docs/Home) available as well as a great [quickstart](https://docs.ag2.ai/docs/Getting-Started).

## Adding AgentOps to Autogen agents
## Adding AgentOps to AG2 agents

<Steps>
<Step title="Install the AgentOps SDK">
Expand All @@ -21,7 +21,7 @@ AgentOps and Autogen teamed up to make monitoring Autogen agents dead simple. Au
```
</CodeGroup>
</Step>
<Step title="Install Autogen">
<Step title="Install AG2">
<CodeGroup>
```bash pip
pip install pyautogen
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/usage/sdk-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Set the parent API key which has visibility over projects it is a parent of.
### `stop_instrumenting()`

Stops instrumenting LLM calls. This is typically used by agent frameworks (i.e., [CrewAI](/v1/integrations/crewai) and
[autogen](/v1/integrations/autogen)) to stop using AgentOps' auto-instrumentation of LLM libraries such as OpenAI. This
[ag2](/v1/integrations/autogen)) to stop using AgentOps' auto-instrumentation of LLM libraries such as OpenAI. This
allows these frameworks to use their own instrumenting or callback handler.


Expand Down
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ At a high level, AgentOps gives you the ability to monitor LLM calls, costs, lat
## Integrations
- [AI21](./ai21_examples/ai21_examples.ipynb)
- [Anthropic](./anthropic_examples/)-
- [Autogen](./autogen_examples/)
- [AG2](./autogen_examples/)
- [Cohere](./cohere_examples/cohere_example.ipynb)
- [Crew.ai](./crew_examples/)
- [Groq](./multi_agent_groq_example.ipynb)
Expand Down
2 changes: 1 addition & 1 deletion examples/autogen_examples/AgentChat.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"id": "bb6538d8-2a5d-4a99-b2c1-7130963e4f7b",
"metadata": {},
"source": [
"# AutoGen Chat Example\n",
"# AG2 Chat Example\n",
"<img src=\"https://raw.githubusercontent.com/AgentOps-AI/agentops/main/docs/images/external/autogen/autogen-integration.png?raw=true\" width=\"25%\"/>\n",
"\n",
"AgentOps automatically configures itself when it's initialized meaning your agent run data will be tracked and logged to your AgentOps dashboard right away."
Expand Down
7 changes: 3 additions & 4 deletions examples/autogen_examples/MathAgent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"id": "bb6538d8-2a5d-4a99-b2c1-7130963e4f7b",
"metadata": {},
"source": [
"# AutoGen Tool Example\n",
"# AG2 Tool Example\n",
"<img src=\"https://raw.githubusercontent.com/AgentOps-AI/agentops/main/docs/images/external/autogen/autogen-integration.png?raw=true\" width=\"25%\"/>\n",
"\n",
"To get started, you'll need to install the AgentOps package and [set an API key](app.agentops.ai).\n",
Expand Down Expand Up @@ -103,7 +103,7 @@
"id": "7858f0f6-9aca-4cdb-a514-9fbf7e353d50",
"metadata": {},
"source": [
"AutoGen will now start automatically tracking\n",
"AG2 will now start automatically tracking\n",
"\n",
"* LLM prompts and completions\n",
"* Token usage and costs\n",
Expand All @@ -119,7 +119,7 @@
"metadata": {},
"source": [
"# Tool Example\n",
"AgentOps tracks when Autogen agents use tools. You can find more information on this example in [tool-use.ipynb](https://github.com/microsoft/autogen/blob/main/website/docs/tutorial/tool-use.ipynb)"
"AgentOps tracks when AG2 agents use tools. You can find more information on this example in [tool-use.ipynb](https://docs.ag2.ai/docs/tutorial/tool-use#tool-use)"
]
},
{
Expand Down Expand Up @@ -235,4 +235,3 @@
"nbformat": 4,
"nbformat_minor": 5
}

6 changes: 3 additions & 3 deletions examples/demos/agentchat_agentops.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"id": "38182a5296dceb34",
"metadata": {},
"source": [
"## Adding AgentOps to an existing Autogen service.\n",
"## Adding AgentOps to an existing AG2 service.\n",
"To get started, you'll need to install the AgentOps package and set an API key.\n",
"\n",
"AgentOps automatically configures itself when it's initialized meaning your agent run data will be tracked and logged to your AgentOps account right away."
Expand Down Expand Up @@ -151,7 +151,7 @@
"id": "4dd8f461ccd9cbef",
"metadata": {},
"source": [
"Autogen will now start automatically tracking\n",
"AG2 will now start automatically tracking\n",
"- LLM prompts and completions\n",
"- Token usage and costs\n",
"- Agent names and actions\n",
Expand Down Expand Up @@ -218,7 +218,7 @@
"metadata": {},
"source": [
"# Tool Example\n",
"AgentOps also tracks when Autogen agents use tools. You can find more information on this example in [tool-use.ipynb](https://github.com/microsoft/autogen/blob/main/website/docs/tutorial/tool-use.ipynb)"
"AgentOps also tracks when AG2 agents use tools. You can find more information on this example in [tool-use.ipynb](https://docs.ag2.ai/docs/tutorial/tool-use#tool-use)"
]
},
{
Expand Down