What happened?
A bug happened!
When implementing the AgentExecutor and calling await twice on the complete method within the execute method, the client consumption gets stuck. The queue does not return the second complete result to the client.
Specifically, the issue occurs in the demo_agent_executor.py file where the execute() method is called twice using await:
async def execute(
self,
context: RequestContext,
event_queue: EventQueue,
) -> None:
await updater.add_artifact(
[Part(root=TextPart("hello! "))],
name='conversion_result',
)
await updater.complete()
await updater.complete()
Relevant log output
Code of Conduct