Bind tool-like objects to this chat model.
bind_tools(
self,
tools: Sequence[dict[str, Any] | type | Callable[..., Any] | BaseTool],
*,
tool_choice: dict[str, Any] | str | bool | None = None,
strict: bool | None = None,
**kwargs: Any = {}
) -> Runnable[LanguageModelInput, AIMessage]| Name | Type | Description |
|---|---|---|
tools* | Sequence[dict[str, Any] | type | Callable[..., Any] | BaseTool] | A list of tool definitions to bind to this chat model. Can be a dictionary, pydantic model, callable, or BaseTool. Pydantic models, callables, and BaseTools will be automatically converted to their schema dictionary representation. |
tool_choice | dict[str, Any] | str | bool | None | Default: NoneWhich tool to require the model to call. Options are:
|
strict | bool | None | Default: NoneIf |
kwargs | Any | Default: {}Any additional parameters are passed directly to |