Bind tools to the model. Returns a new model that shares the same response queue and call history.
bindTools(
tools: ToolSpec | StructuredTool<ToolSchemaBase, any, any, any, unknown>[]
): Runnable<BaseLanguageModelInput, AIMessageChunk<MessageStructure<MessageToolSet>>, BaseChatModelCallOptions>| Name | Type | Description |
|---|---|---|
tools* | ToolSpec | StructuredTool<ToolSchemaBase, any, any, any, unknown>[] | The tools to bind, as StructuredTool instances or plain ToolSpec objects. |