a2aproject / a2aproject/a2a-samples

in the demo/ui ; There is an error when running "uv run main.py"

未关闭
#551 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Jupyter Notebook
星标
1.8k
派生
751
PR 合并指标
30 天内没有已合并 PR

描述

### What happened?

in the demo/ui ;
when i am running “uv run main.py”
Display error message:
Traceback (most recent call last):
File "D:\myFile\a2a-samples-main\demo\ui\main.py", line 13, in
from components.api_key_dialog import api_key_dialog
File "D:\myFile\a2a-samples-main\demo\ui\components\api_key_dialog.py", line 5, in
from state.host_agent_service import UpdateApiKey
File "D:\myFile\a2a-samples-main\demo\ui\state\host_agent_service.py", line 9, in
from a2a.types import FileWithBytes, Message, Part, Role, Task, TaskState
ImportError: cannot import name 'FileWithBytes' from 'a2a.types' (d:\myFile\a2a-samples-main\.venv\Lib\site-packages\a2a\types\__init__.py)

### Relevant log output

```shell

```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。