Skip to content

Conversation

@kthota-g
Copy link
Contributor

@kthota-g kthota-g commented Jun 6, 2025

Event consumer currently only stops properly for streaming events. But for sync calls that transition to input_required state, the consumer doesn't treat them as final events and results in queue closed exception.

Example test:

task: Task= new_task(context.message)
result = await self.agent.invoke()
message = new_agent_text_message(result)
task.status = TaskStatus(state=TaskState.input_required, message=message)
event_queue.enqueue_event(task)

@kthota-g kthota-g requested a review from a team as a code owner June 6, 2025 18:18
@kthota-g kthota-g merged commit 51c2d8a into main Jun 6, 2025
6 checks passed
@kthota-g kthota-g deleted the kthota/input_required branch June 6, 2025 19:31
holtskinner pushed a commit that referenced this pull request Jun 9, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.2.6](v0.2.5...v0.2.6)
(2025-06-09)


### ⚠ BREAKING CHANGES

* Add FastAPI JSONRPC Application
([#104](#104))

### Features

* Add FastAPI JSONRPC Application
([#104](#104))
([0e66e1f](0e66e1f))
* Add gRPC server and client support
([#162](#162))
([a981605](a981605))
* add reject method to task_updater
([#147](#147))
([2a6ef10](2a6ef10))
* Add timestamp to `TaskStatus` updates on `TaskUpdater`
([#140](#140))
([0c9df12](0c9df12))
* **spec:** Add an optional iconUrl field to the AgentCard 🤖
([a1025f4](a1025f4))


### Bug Fixes

* Correctly adapt starlette BaseUser to A2A User
([#133](#133))
([88d45eb](88d45eb))
* Event consumer should stop on input_required
([#167](#167))
([51c2d8a](51c2d8a))
* Fix Release Version
([#161](#161))
([011d632](011d632))
* generate StrEnum types for enums
([#134](#134))
([0c49dab](0c49dab))
* library should released as 0.2.6
([d8187e8](d8187e8))
* remove error types from enqueable events
([#138](#138))
([511992f](511992f))
* **stream:** don't block event loop in EventQueue
([#151](#151))
([efd9080](efd9080))
* **task_updater:** fix potential duplicate artifact_id from default v…
([#156](#156))
([1f0a769](1f0a769))


### Documentation

* remove final and metadata fields from docstring
([#66](#66))
([3c50ee1](3c50ee1))
* Update Links to Documentation Site
([5e7d418](5e7d418))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
kabir pushed a commit to a2aproject/a2a-java that referenced this pull request Jan 13, 2026
# Description

Event consumer should stop on input_required task as fixed in the python
version a2aproject/a2a-python#167
cmtoan added a commit to cmtoan/a2a-java that referenced this pull request Jan 13, 2026
# Description

Event consumer should stop on input_required task as fixed in the python
version a2aproject/a2a-python#167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants