Skip to content

.NET: [Hosting] Track and update A2A Task state after creation #5362

Description

@SergeyMenshykh

Today, A2A hosting functionality does not fully handle A2A Tasks. It creates a new task in Working state (if background mode is configured) and returns it, but never updates its state or content, so the task remains Working forever.

Two potential solutions are:

  1. Poll the underlying agent and update task state and content. Perform non-blocking polling (return the task immediately but keep polling and updating the task in the background) if context.Configuration?.ReturnImmediately; otherwise, perform blocking polling - not exiting/returning the method until the task is complete.
  2. Use streaming instead of polling.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

.NETUsage: [Issues, PRs], Target: .Neta2aUsage: [Issues, PRs], Target: A2A

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions