mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-07-16 04:02:55 -06:00
chore: Don't add prompt about parent agent when disallow_transfer_to_parent=True
Fixes https://github.com/google/adk-python/issues/844 PiperOrigin-RevId: 764116180
This commit is contained in:
parent
f4c7d788b0
commit
46282eeb0d
@ -98,11 +98,11 @@ question to that agent. When transferring, do not generate any text other than
|
|||||||
the function call.
|
the function call.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if agent.parent_agent:
|
if agent.parent_agent and not agent.disallow_transfer_to_parent:
|
||||||
si += f"""
|
si += f"""
|
||||||
Your parent agent is {agent.parent_agent.name}. If neither the other agents nor
|
Your parent agent is {agent.parent_agent.name}. If neither the other agents nor
|
||||||
you are best for answering the question according to the descriptions, transfer
|
you are best for answering the question according to the descriptions, transfer
|
||||||
to your parent agent. If you don't have parent agent, try answer by yourself.
|
to your parent agent.
|
||||||
"""
|
"""
|
||||||
return si
|
return si
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user