a2aproject / a2aproject/a2a-samples

[Bug]: ADK example returns inconsistent state

Aperta
#46 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jupyter Notebook
Stelle
1.8k
Fork
751
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.