feat(go-adk): add per-call session isolation for Agent tools#2202
Draft
dimetron wants to merge 1 commit into
Draft
feat(go-adk): add per-call session isolation for Agent tools#2202dimetron wants to merge 1 commit into
dimetron wants to merge 1 commit into
Conversation
Add an isolateSessions flag to Agent tools so a declarative coordinator can fan out parallel, isolated sub-agent calls: when set, a fresh A2A context_id is minted per call instead of reusing one stable id for the tool's lifetime. Also replace the per-branch map[string]any tool return with a single typed remoteA2AResponse so subagent_session_id is reported on every outcome (success, input_required, failure, non-terminal, no-result). processResult now switches explicitly on the terminal task state and passes through child-provided structured failure fields with sub-agent task linkage. - v1alpha2 Tool.IsolateSessions (*bool, Agent-only via CEL) -> adk RemoteAgentConfig.IsolateSessions via the translator; Python config parity. - NewKAgentRemoteA2ATool takes a RemoteA2AToolConfig struct; isolated tools return an empty stamp id and add no subagentSessionIDs entry (UI links via the per-call id in the function_response instead). - Unit tests for contextIDForCall, every processResult branch, structured failure passthrough, and the translator wiring. Design: specs/a2a_sessions/EP_2153.md
ca06e9b to
bfded41
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an isolateSessions flag to Agent tools so a declarative coordinator can fan out parallel, isolated sub-agent calls: when set, a fresh A2A context_id is minted per call instead of reusing one stable id for the tool's lifetime.
Also replace the per-branch map[string]any tool return with a single typed remoteA2AResponse so subagent_session_id is reported on every outcome (success, input_required, failure, non-terminal, no-result). processResult now switches explicitly on the terminal task state and passes through child-provided structured failure fields with sub-agent task linkage.
Design: specs/a2a_sessions/EP_2153.md