Hello Everyone, I'm experimenting with a multiagen...
# questions
l
Hello Everyone, I'm experimenting with a multiagentic architecture using Agent SDK. I've tested agent delegation feature(recently merged in main branch) using gemini-2.5-flash. Everything is working well as expected. Hats-off to simonrosenberg and xingyaoww... Now I need to attach specific skills to sub-agents. Is there any recommended method to add skills to sub-agents? I'm familiar with attaching agent skills with AgentContext object. Is there a similar mechanism for sub-agents?
c
cc @strong-ice-84145 🤔 I think it is not currently supported; the current delegation feature is a bit simple (i.e., you delegate to the same type of agent as the parent) Maybe we can create an issue for this
s
@late-queen-51746 It is not supported yet. However if you already know what skill you want to add to your sub-agents , a temporary workaround would be hardcoding the AgentContext addition here ...
l
Hi Xiangyao, Simon, Thanks for the reply. I just went through the delegation implementation. Trying the temporary workaround Simon suggested. I would update you on the outcomes..
Hi @chilly-france-44439, @strong-ice-84145, I could successfully attach skills to the sub-agents. Used feature for passing arbitrary parameters to the Tool object to pass agent skill to the sub-agent. Made few modifications in the DelegateTool.create function(added parameter to pass agent context), DelegatorExecutor(added agent context there also), and in the get_default_agent too. Now the feature is working. I would like to contribute to the project. If this feature is of interest, I could raise an issue, attach a PR. (I'm new to opensource, less familiar with the ways. Please let me know which is the right method/place to discuss this.)
Here's the log
s
Hi @late-queen-51746 🙂 It would be awesome to have you onboard and contributing to the project! Let me make a general
Agent Delegation
issue and come back to you with sub-issues of interest 🙂