Bind tools to the model.
The strict mode is always in effect, if you need it disabled, please file
an issue.
bind_tools(
self,
tools: Sequence[Union[Dict[str, Any], Type, Callable, BaseTool]],
*,
tool_choice: Optional[Union[dict, str, Literal['auto', 'none', 'any', 'required'], bool]] = None,
**kwargs: Any = {}
) -> Runnable[LanguageModelInput, AIMessage]| Name | Type | Description |
|---|---|---|
tools* | list | A list of tools to bind to the model. |
tool_choice | Optional[Union[dict, str, Literal['auto', 'none', 'any', 'required'], bool]] | Default: NoneControl tool choice. Options:
Defaults to passing no value. |
**kwargs | Any | Default: {}Additional keyword arguments. |