You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Event consumer should stop on input_required (#167)
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:
```py
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)
```
0 commit comments