A2aAgentExecutor has no native way to emit TaskState.rejected on the server side
メンテナーはふだん 3 日以内に返信
@sanketpatil06 がすでに取り組んでいます。
2026年11月23日 から。
評価
調査の方向性
Start in google/adk/a2a/executor/a2a_agent_executor_impl.py around _handle_request and in google/adk/a2a/executor/task_result_aggregator.py where terminal states are tracked, then check google/adk/a2a/converters/to_adk_event.py to see how TS_REJECTED is already read on the client side. Settle on a server-side signal (exception type or event action flag) with the maintainers before coding. Done means a rejection maps to TS_REJECTED with priority above completed and distinct from failed, with tests covering both paths.
索引モデルが issue の本文から書いたものです。
説明
Environment
google-adk==2.15.0a2a-sdk==0.3.26- Python
3.12
Problem
In the A2A specification, TaskState.rejected (TASK_STATE_REJECTED in v1.0) represents a policy/business refusal distinct from a technical execution failure (failed).
In google-adk==2.15.0:
- The client converter (
google/adk/a2a/converters/to_adk_event.py:70) recognizes_compat.TS_REJECTEDin_TASK_RESPONSE_BOUNDARY_STATES. - On the server side,
A2aAgentExecutor(google/adk/a2a/executor/a2a_agent_executor_impl.py:266-297) andTaskResultAggregator(google/adk/a2a/executor/task_result_aggregator.py:55-60) only trackcanceled,failed,auth_required,input_required,working, andcompleted. There is no ADK primitive (tool return contract,EventActionsfield, or mapped exception) for an agent or tool exposed viato_a2a()to emitTaskState.rejected.
Without a workaround, policy refusals end up either as completed (if the tool returns a refusal dict and the LLM explains it in text) or as failed (if an uncaught exception is raised, which clients interpret as a transient error rather than a semantic rejection).
Workaround
- Record a rejection reason from the remote tool / callback (e.g. in session-scoped store or state).
- In an
ExecuteInterceptor.after_agentpassed toA2aAgentExecutorConfig, replace the terminalTS_COMPLETEDTaskStatusUpdateEventwith a newTaskStatusUpdateEventcarrying_compat.TS_REJECTED(final=True) and the refusal message.
Suggested Fix in ADK
Provide a native server-side signal in ADK mapped by TaskResultAggregator / A2aAgentExecutor to _compat.TS_REJECTED — for example:
- a dedicated exception type (e.g.
A2aTaskRejectedErroror policy rejection error) or anEventActions/ToolContextaction flag honored byTaskResultAggregatorandA2aAgentExecutor._handle_request(with priority abovecompletedand distinct fromfailed).
- 主要言語
- Python
- スター
- 22.3k
- フォーク
- 4.4k
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/adk-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
google/adk-python#8360 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
google/adk-python#8359 ·
メンテナーはふだん 3 日以内に返信
-
Can pin to litellm version be changed?対応中かも @llalitkumarrr が 10 日前に担当しました。 オープンmodels
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
google/adk-python#8129 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
OpenAPI tools ignore operation- and path-level server overrides対応中かも @sanketpatil06 が 14 日前に担当しました。 オープンtools
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
google/adk-python#8064 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
Two docstrings in openapi_tool document parameters the signatures do not accept対応中かも @surajksharma07 が 17 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
google/adk-python#8024 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
google/adk-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
vllm-project/vllm#70030 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
TigreGotico/tugaphone#408 ·
メンテナーはふだん 1 日以内に返信
-
t: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 3 日以内に返信
-
needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
Azure/azure-sdk-for-python#50155 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信