-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Recreating the examples provided here with Gemini models are resulting in AttributeError: type object 'tuple' has no attribute 'raw_function'
and a warning Could not parse args for transfer_task_to_: name 'Optional' is not
defined
Steps to Reproduce
Use google gemini model instead of Chat openAI and run
Code (if applicable)
This is an example code
from agno.agent import Agent
from agno.models.google import Gemini
duckduckgo_agent = Agent(
name='DuckDuckGo Agent',
model=Gemini(api_key=GEMINI_API_KEY, id="gemini-2.0-flash"),
role='You are equipped with DuckDuckGo tools to help with searching business info on the web',
tools=[DuckDuckGoTools()],
show_tool_calls=True,
debug_mode=True
)
team_agent = Agent(
model=Gemini(api_key=GEMINI_API_KEY, id="gemini-2.0-flash"),
team=[duckduckgo_agent],
add_history_to_messages=True,
# add_transfer_instructions=True,
description=dedent('''
You are now connected to the **DuckDuckGo Agent**.
The **DuckDuckGo Agent** will help you fill in any missing information about businesses
'''),
instructions=[dedent('''
Use the DuckDuckGo Agent to fill any missing information about businesses.
''')],
# expected_output=expected_output,
markdown=True,
show_tool_calls=True,
reasoning=True,
debug_mode=True,
structured_outputs=True,
tool_choice="auto",
)
Screenshots or Logs (if applicable)
/myenv/lib/python3.12/site-packages/pydantic/_internal/_validate_call.py", line 153, in eq
(self.raw_function == other.raw_function)
^^^^^^^^^^^^^^^^^^
AttributeError: type object 'tuple' has no attribute 'raw_function'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working