We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee847c6 + 5db7eb4 commit 1a3b37bCopy full SHA for 1a3b37b
pipelines/google/google_gemini.py
@@ -1413,8 +1413,10 @@ def _configure_generation(
1413
types.Tool(google_search=types.GoogleSearch())
1414
)
1415
1416
- if __tools__ is not None and __metadata__.get("function_calling") == "native":
1417
- for name, tool in __tools__.items():
+ params = __metadata__.get("params", {})
+ if __tools__ is not None and params.get("function_calling") == "native":
1418
+ for name, tool_def in __tools__.items():
1419
+ tool = self._create_tool(tool_def)
1420
self.log.debug(
1421
f"Adding tool '{name}' with signature {tool.__signature__}"
1422
0 commit comments