bind_tools(
self,
tools: _ToolsType,
tool_config: _ToolConfigDict | None = None,
*,
tool_choice: _ToolChoiceType || Name | Type | Description |
|---|---|---|
tools* | _ToolsType | |
**kwargs | Any | Default: {} |
Bind tool-like objects to this chat model.
Assumes model is compatible with Vertex tool-calling API.
A list of tool definitions to bind to this chat model.
Can be a Pydantic model, Callable, or BaseTool.
Pydantic models, Callable, and BaseTool will be automatically
converted to their schema dictionary representation.
Tools with Union types in their arguments are now supported and
converted to anyOf schemas.
Any additional parameters to pass to the Runnable constructor.