agno
agno copied to clipboard
[Bug] Team Agent Not Propagating Files to Sub-Agents
Description
The team agent is not correctly passing file attachments to its specialized sub-agents when processing user requests.
Steps to Reproduce
- Send a message to the agent with one or more file attachments
- The files can be of any type (images, documents, etc.)
- The agent will process the request but will not handle the files correctly
- The specialized agents will not receive the files in their expected format
Agent Configuration
# Initialize the team agent with specialized sub-agents
agent = Team(
members=[...],
mode="route",
)
# Files are passed in this format
files = [
File(url="https://example.com/file.csv")
]
# Generate response with files
response = await self.team.arun(
user_input,
stream=False,
files=files if files else None,
)
Expected Behavior
- Files should be properly passed through the team agent to the specialized agents
- The specialized agents should receive the files in their proper format
- Files should be processed according to their type (images, documents, etc.)
Actual Behavior
- Files are not being properly propagated to the specialized agents
- The current workaround is to append file URLs to the user input text which works
Environment
- OS: Linux 6.13.7 (OrbStack)
- Agno Version: 1.2.4
- Python Version: 3.11
Possible Solutions
- Investigate the team implementation to ensure proper file propagation
- Update the team agent to explicitly handle file passing to specialized agents
- Implement proper file handling across the entire agent hierarchy
- Add comprehensive testing for file handling scenarios