Replies: 2 comments
-
+1 I've posted some similar there: #61 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
-
To add here a specific case. I have an agent which is supposed to have |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello ADK Team and Community,
Context & Alignment with Tool Paradigm:
The ADK allows an
LlmAgent
(Agent A) to use another agent (Agent B) as a tool viaAgentTool
. This aligns with the tool paradigm where an LLM can invoke external capabilities. Typically, LLMs provide arguments to control a tool's specific action.The Problem:
AgentTool
Lacks Dynamic Instruction, Especially for Encapsulated AgentsCurrently, when Agent A invokes Agent B via
AgentTool
, Agent B acts based on its staticinstruction
and the session context provided by the framework. Agent A cannot directly pass dynamic, task-specific instructions to Agent B for that invocation.This limitation is particularly acute when Agent B is configured for strong encapsulation using
include_contents='none'
. In this mode:instruction
and any input passed in the current turn.The workaround of passing task details via shared
state
is indirect, couples agents implicitly, requires Agent B to be aware of specific state keys which undermines clean separation.Proposal: Explicit Prompt Injection - Enabling Guided Encapsulation
We propose allowing Agent A's LLM to optionally generate an explicit prompt as part of the
AgentTool
invocation. The ADK framework would pass this dynamic prompt to Agent B for that specific execution.Benefits:
include_contents='none'
).AgentTool
functionality more closely with the expected control of regular tools.We believe this is crucial for building robust and modular multi-agent systems with well-encapsulated components.
What are your thoughts?
Beta Was this translation helpful? Give feedback.
All reactions