googleapis / googleapis/python-aiplatform
Function AgentInfo.load_from_agent error when work on multiple agent
- 主要语言
- Python
- 星标
- 905
- 派生
- 465
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 44
描述
#### Environment details
- OS type and version:
- Python version: `3.10`
- pip version: `25.3`
- `google-cloud-aiplatform` version: `1.126.1`
#### Steps to reproduce
I'm following this guideline to evaluate the agent based on adk framework
https://docs.cloud.google.com/agent-builder/agent-engine/evaluate#run-agent-evaluation
But I get the error when implement with multiple agent system
```
File "/Users/Emotiv/ELLIA/.venv/lib/python3.10/site-packages/vertexai/_genai/types/evals.py", line 111, in load_from_agent
instruction=agent.instruction,
File "/Users/Emotiv/ELLIA/.venv/lib/python3.10/site-packages/pydantic/main.py", line 1026, in __getattr__
raise AttributeError(f'{type(self).__name__!r} object has no attribute {item!r}')
AttributeError: 'SequentialAgent' object has no attribute 'instruction'
```
I think this api does not support for multiple agent. Just for single agent at the moment.
贡献指南
调研方向
从 vertexai/_genai/types/evals.py 中的 AgentInfo.load_from_agent 开始,使用 SequentialAgent 重现文档化的 agent 评估流程。将那里访问的字段与 traceback 中显示的多 agent 对象进行比较;当评估流程能够处理多 agent 情况且不引发 AttributeError 时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- ai, machine-learning
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100