Bind tool-like objects to this chat model.
Overrides parent to use beta endpoint when strict=True.
bind_tools(
self,
tools: Sequence[dict[str, Any] | type | Callable | BaseTool],
*,
tool_choice: dict | str | bool | None = None,
strict: bool | None = None,
parallel_tool_calls: bool | None = None,
**kwargs: Any = {}
) -> Runnable[LanguageModelInput, AIMessage]| Name | Type | Description |
|---|---|---|
tools* | Sequence[dict[str, Any] | type | Callable | BaseTool] | A list of tool definitions to bind to this chat model. |
tool_choice | dict | str | bool | None | Default: NoneWhich tool to require the model to call. |
strict | bool | None | Default: NoneIf True, uses beta API for strict schema validation. |
parallel_tool_calls | bool | None | Default: NoneSet to |
**kwargs | Any | Default: {}Additional parameters passed to parent |