8000 tasks/send、tasks/sendSubscribe、Capabilities.stream · google A2A · Discussion #398 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tasks/send、tasks/sendSubscribe、Capabilities.stream #398

Answered by vishalmysore
y-d-y asked this question in Q&A
Discussion options

You must be logged in to vote

As far as I undertand In the A2A protocol, the choice between tasks/send (for short-lived tasks) and tasks/sendSubscribe (for long-running or streaming tasks) is determined by the agentCard.capabilities.stream flag because streaming is a fundamental capability of an agent. If stream is true, it signals that the agent can maintain persistent connections and handle ongoing interactions, so sendSubscribe is used. If false, the agent only supports immediate, one-time responses, and send is used. This single flag simplifies client logic, ensures consistency, and reflects the agent’s infrastructure capabilities, avoiding the need for multiple capability fields or redundant checks.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by y-d-y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0