Bind tool-like objects to this chat model.
Assumes model is compatible with Vertex tool-calling API.
bind_tools(
self,
tools: _ToolsType,
tool_config: _ToolConfigDict | None = None,
*,
tool_choice: _ToolChoiceType | bool | None = None,
**kwargs: Any = {}
) -> Runnable[LanguageModelInput, AIMessage]| Name | Type | Description |
|---|---|---|
tools* | _ToolsType | A list of tool definitions to bind to this chat model. Can be a Pydantic model, Pydantic models, Tools with Union types in their arguments are now supported and
converted to |
**kwargs | Any | Default: {}Any additional parameters to pass to the |