# convert_to_genai_function_declarations

> **Function** in `langchain_google_genai`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-genai/_function_utils/convert_to_genai_function_declarations)

Convert tools to google-genai `Tool` objects.

Each special tool type (`google_search`, `google_maps`, `url_context`, etc.) must
be in its own Tool object due to protobuf oneof constraints.

## Signature

```python
convert_to_genai_function_declarations(
    tools: _ToolsType,
) -> list[types.Tool]
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/982e4015b249de8b9ba1e787746d8cc1f6d6b790/libs/genai/langchain_google_genai/_function_utils.py#L209)