agentops/examples/ag2
xiaoxue af7cdc0ffd 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
..
README.md 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
ag2_async_agent.ipynb 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
ag2_async_agent.py 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
groupchat.ipynb 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
groupchat.py 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
requirements.txt 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
tools_wikipedia_search.ipynb 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
tools_wikipedia_search.py 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00

README.md

AG2 Examples with AgentOps

This directory contains examples of using AG2 (AutoGen 2.0) with AgentOps instrumentation for various multi-agent conversation tasks.

Prerequisites

  • Python >= 3.10 < 3.13
  • Install required dependencies:
    pip install agentops ag2
    

Examples

1. Asynchronous Human Input

Example: async_human_input

This example demonstrates:

  • Asynchronous human input handling

2. Wikipedia Search Tool

Example: tools_wikipedia_search

This example demonstrates:

  • Wikipedia search tool integration

AgentOps Integration

These examples show how to use AgentOps to monitor and analyze your AI applications. AgentOps automatically instruments your AG2 calls to provide insights into performance, usage patterns, and model behavior.

To learn more about AgentOps, visit https://www.agentops.ai