Bind tools to the chat model.
bind_tools(
self,
tools: Sequence[Union[Dict[str, Any], Type[BaseModel], Callable, BaseTool]],
tool_choice: Optional[Union[str, Literal['auto', 'none']]] = None,
**kwargs: Any = {}
) -> Runnable[LanguageModelInput, AIMessage]| Name | Type | Description |
|---|---|---|
tools* | Sequence[Union[Dict[str, Any], Type[BaseModel], Callable, BaseTool]] | Tools to bind to the model |
tool_choice | Optional[Union[str, Literal['auto', 'none']]] | Default: NoneWhich tool to require ('auto', 'none', or specific tool name) |
**kwargs | Any | Default: {}Additional parameters to pass to the chat model |