Bind tool-like objects to this chat model.
bind_tools(
self,
tools: Sequence[dict[str, Any] | type | Callable[..., Any] | BaseTool | GoogleTool],
tool_config: dict | ToolConfig | None = None,
*,
tool_choice: _ToolChoiceType | bool | None = None,
**kwargs: Any = {}
) -> Runnable[LanguageModelInput, AIMessage]| Name | Type | Description |
|---|---|---|
tools* | Sequence[dict[str, Any] | type | Callable[..., Any] | BaseTool | GoogleTool] | A list of tool definitions to bind to this chat model. Can be a pydantic model, Tools with Union types in their arguments are now supported and
converted to |
tool_config | dict | ToolConfig | None | Default: NoneOptional tool configuration for additional settings like
Can be used together with Example with Google Maps grounding |
tool_choice | _ToolChoiceType | bool | None | Default: NoneControl how the model uses tools. Options:
Can be used together with |
**kwargs | Any | Default: {}Any additional parameters to pass to the |