a2aproject / a2aproject/a2a-samples

[Bug]: ADK example returns inconsistent state

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

Mô tả

### What happened?

The Google ADK example agent sometimes returns status `completed` when it should return `input-required`. Attaching an example log where this occurred. Agent responds with text stating `Could you please provide the date, amount, and business justification/purpose for the plane ticket?` but status is set to `completed`

### Relevant log output

```shell
========= starting a new task ========

What do you want to send to the agent? (:q or quit to exit): can you reimburse me for my plane ticket
stream event => {"jsonrpc":"2.0","id":"55d1e4697a0c49da8eaf88314e441bc6","result":{"id":"dd6745735a954d13bfa2f0cf8ecd9bfe","status":{"state":"completed","message":{"role":"agent","parts":[{"type":"text","text":"Could you please provide the date, amount, and business justification/purpose for the plane ticket?\n"}]},"timestamp":"2025-04-14T12:02:43.554273"},"final":false}}
stream event => {"jsonrpc":"2.0","id":"55d1e4697a0c49da8eaf88314e441bc6","result":{"id":"dd6745735a954d13bfa2f0cf8ecd9bfe","artifact":{"parts":[{"type":"text","text":"Could you please provide the date, amount, and business justification/purpose for the plane ticket?\n"}],"index":0,"append":false}}}
stream event => {"jsonrpc":"2.0","id":"55d1e4697a0c49da8eaf88314e441bc6","result":{"id":"dd6745735a954d13bfa2f0cf8ecd9bfe","status":{"state":"completed","timestamp":"2025-04-14T12:02:43.554655"},"final":true}}
```

### Code of Conduct

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

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.