File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
plugins/gemini/vision_agents/plugins/gemini Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -149,12 +149,16 @@ def _build_config(
149149
150150 # Add built-in tools if configured
151151 if self ._builtin_tools :
152- builtin_tool_objects = [tool .to_tool () for tool in self ._builtin_tools ]
152+ builtin_tool_objects : list [types .Tool ] = [
153+ tool .to_tool () for tool in self ._builtin_tools
154+ ]
153155 if config .tools is None :
154- config .tools = builtin_tool_objects
156+ config .tools = builtin_tool_objects # type: ignore[assignment]
155157 else :
156158 # Append to existing tools
157- config .tools = list (config .tools ) + builtin_tool_objects
159+ existing_tools = list (config .tools )
160+ existing_tools .extend (builtin_tool_objects )
161+ config .tools = existing_tools # type: ignore[assignment]
158162
159163 return config
160164
You can’t perform that action at this time.
0 commit comments