Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Master Issue: built-in tools cannot co-exist with FunctionDeclaration tools. #969

@Jacksunwei

Description

@Jacksunwei

Right now, the Gemini server is limited to only one type of tools among the following list:

  • Function declaration (mostly used for python function FunctionTool and other subclass of BaseTool)
  • Google Search (Gemini model built-in tool)
  • Vertex AI Search (Gemini model built-in tool)
  • BuiltInCodeExecutor (Gemini model built-in tool)
  • ...

Full list of built-in tools are at https://github.com/googleapis/python-genai/blob/main/google/genai/types.py#L2692

If your agent is using more than one type of tools, currently it is not supported.


Workaround options:

  1. Use a sub-agent that only carries the built-in tool
  2. Use AgentTool that only carries the built-in tool and store the response to state for other agents to use.

Sub-issues

Metadata

Metadata

Assignees

Labels

core[Component] This issue is related to the core interface and implementation

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions