agno icon indicating copy to clipboard operation
agno copied to clipboard

[Bug] Team Agent Not Propagating Files to Sub-Agents

Open jesalg opened this issue 1 year ago • 0 comments

Description

The team agent is not correctly passing file attachments to its specialized sub-agents when processing user requests.

Steps to Reproduce

  1. Send a message to the agent with one or more file attachments
  2. The files can be of any type (images, documents, etc.)
  3. The agent will process the request but will not handle the files correctly
  4. 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

  1. Files should be properly passed through the team agent to the specialized agents
  2. The specialized agents should receive the files in their proper format
  3. Files should be processed according to their type (images, documents, etc.)

Actual Behavior

  1. Files are not being properly propagated to the specialized agents
  2. 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

  1. Investigate the team implementation to ensure proper file propagation
  2. Update the team agent to explicitly handle file passing to specialized agents
  3. Implement proper file handling across the entire agent hierarchy
  4. Add comprehensive testing for file handling scenarios

jesalg avatar Mar 25 '25 22:03 jesalg