AgentOps-AI / AgentOps-AI/agentops

Agno examples failing due to outdated APIs and missing dependencies

Đang mở
#1,266 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug documentation
Ngôn ngữ chính
Python
Star
5.8k
Fork
619
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Description

Several Agno example files in `examples/agno/` are failing to run due to outdated APIs and missing dependencies.

## Failing Examples

### 1. `agno_basic_agents.py`
**Error**: `Team.__init__() got an unexpected keyword argument 'mode'`
**Cause**: Example uses outdated Team API (Agno v1 API)
**Fix needed**: Update to use current Agno v2 Team API

### 2. `agno_research_team.py`
**Error**: `ImportError: 'ddgs' not installed`
**Cause**: Missing optional dependency
**Fix needed**: Either add `ddgs` to example dependencies or update example to use a different search tool

### 3. `agno_tool_integrations.py`
**Error**: `ImportError: 'ddgs' not installed`
**Cause**: Missing optional dependency
**Fix needed**: Either add `ddgs` to example dependencies or update example to use a different search tool

### 4. `agno_workflow_setup.py`
**Error**: `ImportError: cannot import name 'RunResponse' from 'agno.agent'`
**Cause**: Example uses outdated Agno API
**Fix needed**: Update imports to match current Agno v2 API

### 5. `agno_async_operations.py`
**Status**: Runs successfully but validation fails
**Issue**: "No LLM activity detected" - spans are created but token usage = 0
**Cause**: Possible telemetry/validation issue
**Fix needed**: Investigate why LLM token usage is not being captured

## Working Examples

- ✅ `test_async_streaming_team.py` - Works correctly (tests async streaming fix for #1262)

## Impact

These examples are likely referenced in documentation and used by developers learning to integrate AgentOps with Agno. Having broken examples creates a poor developer experience.

## Suggested Actions

1. Update examples to use Agno v2 API
2. Add missing dependencies to example requirements or update examples to avoid them
3. Investigate telemetry issue in async operations example
4. Add CI testing for examples to catch these issues earlier

## Environment

- Agno version: 2.0.11+
- AgentOps: latest (main branch)
- Python: 3.12.8

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.