I’m building a multi-agent pipeline in which the teams_agent calls other agents like:
rag_agent (which uses Azure Cognitive Search)
confluence_agent
I want to pass external parameters like country, department, index, and search_type specifically to the rag_agent, but these are coming through as empty inside the rag_agent, even though I’m sending them via **kwargs.
Teams Agent
└──> rag_agent (Azure Search)
└──> confluence_agent
Is there a preferred way to explicitly pass contextual parameters from a parent agent (e.g. teams_agent) down to the child agent (rag_agent)?
Hi @suridol, thanks for reaching out and supporting Agno. I’ve shared this with the team, we’re working through all requests one by one and will get back to you soon.
If it’s urgent, please let us know. We appreciate your patience!
What do you mean by that? when running the team, or when setting up the Agent?
Is there a preferred way to explicitly pass contextual parameters from a parent agent (e.g. teams_agent) down to the child agent (rag_agent)?
Specifying in the instructions of the Team what the RAG Agent needs as input should work well enough here, as if I’m understanding this correctly we just need to clarify what the expected input of an Agent is. You also have the team_session_state field, used to share context between the Team leader and all members, you could populate that and adjust the RAG Agent’s instructions to pay attention to that shared context.