Skip to content

Commit

Permalink
remove bindTools generic
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jun 17, 2024
1 parent ca604e2 commit ca867ce
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions langchain-core/src/language_models/chat_models.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { z } from "zod";
import {
AIMessage,
type BaseMessage,
Expand Down Expand Up @@ -148,11 +147,8 @@ export abstract class BaseChatModel<
* specific tool schema.
* @param kwargs Any additional parameters to bind.
*/
bindTools?<
// eslint-disable-next-line @typescript-eslint/no-explicit-any
T extends z.ZodObject<any, any, any, any> = z.ZodObject<any, any, any, any>
>(
tools: (StructuredToolInterface<T> | Record<string, unknown>)[],
bindTools?(
tools: (StructuredToolInterface | Record<string, unknown>)[],
kwargs?: Partial<CallOptions>
): Runnable<BaseLanguageModelInput, OutputMessageType, CallOptions>;

Expand Down

0 comments on commit ca867ce

Please sign in to comment.