ChatGoogleGenerativeAI: **TypeError** when using @tool decorated methods to perform Tool Calling using Gimini. #26083
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
investigate
Flagged for investigation.
Checked other resources
Example Code
#Tool definitions
Error Message and Stack Trace (if applicable)
Description
I am trying to use ChatGoogleGenerativeAI for tool calling and Agentic AI implimentation.
When exicuting the below code I expect it to call search_web with appropriate arguments.
responce = llm_with_tools.invoke("Search for LangChain on DuckDuckGo")
But instead it give me the following error.
TypeError: Parameter to MergeFrom() must be instance of same class: expected google.cloud.aiplatform.v1beta1.FunctionDeclaration got FunctionDeclaration.
I am using langchain's @tool decorator to create these tools. I assume this should be compatible internally
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: