Bind functions (and other objects) to this chat model.
bind_functions(
self,
functions: Sequence[Union[Dict[str, Any], Type[BaseModel], Callable]],
function_call: Optional[str] = None,
**kwargs: Any = {}
) -> Runnable[LanguageModelInput, BaseMessage]| Name | Type | Description |
|---|---|---|
functions* | Sequence[Union[Dict[str, Any], Type[BaseModel], Callable]] | A list of function definitions to bind to this chat model. Can be a dictionary, pydantic model, or callable. Pydantic models and callables will be automatically converted to their schema dictionary representation. |
function_call | Optional[str] | Default: NoneWhich function to require the model to call. Must be the name of the single provided function or "auto" to automatically determine which function to call (if any). |
kwargs | Any | Default: {}Any additional parameters to pass to the
:class: |