def to_gemini_tools()

in aidial_adapter_vertexai/chat/tools.py [0:0]


    def to_gemini_tools(self) -> List[GeminiTool]:
        if not self.functions:
            return []

        return [
            GeminiTool(
                function_declarations=[
                    GeminiFunction(
                        name=func.name,
                        parameters=func.parameters
                        or {"type": "object", "properties": {}},
                        description=func.description,
                    )
                    for func in self.functions
                ]
            )
        ]