a2aproject / a2aproject/a2a-samples

Streaming Problem in samples/python/agents/google_adk/task_manager.py

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

描述

Hi all,

It looks like there is an indentation issue in the task_manager.py file of the google_adk example. Currently, streaming only sends the response once the full message is completed, rather than streaming it in chunks.

As I'm not an expert in asyncio and streaming, it seems like the indentation in lines 158–191 might be the problem:

https://github.com/google/A2A/blob/b67527f2b4a7e7ce9e40bd003bbcf3d4b95367d6/samples/python/agents/google_adk/task_manager.py#L158

From my perspective, these lines should probably be indented by 4 more spaces.

Thanks in advance for your help!

贡献指南

打开贡献指南

调研方向

The issue points to a specific file, samples/python/agents/google_adk/task_manager.py, and lines 158–191. Start by examining the asyncio streaming logic there, focusing on the indentation. Run the example to see the current behavior, then adjust the indentation as suggested and test if the response now streams in chunks. Check for any existing tests or run the sample to verify the fix.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
backend
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
65/100

把新 issue 发到你的邮箱

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