diff --git a/libs/langchain-community/src/chat_models/bedrock/web.ts b/libs/langchain-community/src/chat_models/bedrock/web.ts index b3f0643d481e..0a2efa10ca9d 100644 --- a/libs/langchain-community/src/chat_models/bedrock/web.ts +++ b/libs/langchain-community/src/chat_models/bedrock/web.ts @@ -746,7 +746,7 @@ export class BedrockChat } override bindTools( - tools: this["ParsedCallOptions"]["tools"], + tools: (StructuredToolInterface | AnthropicTool | ToolDefinition)[], _kwargs?: Partial ): Runnable< BaseLanguageModelInput, diff --git a/libs/langchain-community/src/chat_models/tests/chatbedrock.int.test.ts b/libs/langchain-community/src/chat_models/tests/chatbedrock.int.test.ts index 073ce6afab63..284f9e473d08 100644 --- a/libs/langchain-community/src/chat_models/tests/chatbedrock.int.test.ts +++ b/libs/langchain-community/src/chat_models/tests/chatbedrock.int.test.ts @@ -411,7 +411,7 @@ test.skip("withStructuredOutput", async () => { expect(response.city.toLowerCase()).toBe("san francisco"); }); -test.skip(".bindTools", async () => { +test.skip(".bind tools", async () => { const weatherTool = z .object({ city: z.string().describe("The city to get the weather for"), diff --git a/libs/langchain-google-common/src/utils/zod_to_gemini_parameters.ts b/libs/langchain-google-common/src/utils/zod_to_gemini_parameters.ts index 2614a12ab2c6..be2ef1a93cdc 100644 --- a/libs/langchain-google-common/src/utils/zod_to_gemini_parameters.ts +++ b/libs/langchain-google-common/src/utils/zod_to_gemini_parameters.ts @@ -48,7 +48,6 @@ export function zodToGeminiParameters( // Gemini doesn't accept either the $schema or additionalProperties // attributes, so we need to explicitly remove them. // eslint-disable-next-line @typescript-eslint/no-explicit-any - // const jsonSchema = zodToJsonSchema(zodObj) as any; const jsonSchema = removeAdditionalProperties( zodToJsonSchema(zodObj) as GeminiJsonSchemaDirty ); @@ -64,7 +63,6 @@ export function jsonSchemaToGeminiParameters( // Gemini doesn't accept either the $schema or additionalProperties // attributes, so we need to explicitly remove them. // eslint-disable-next-line @typescript-eslint/no-explicit-any - // const jsonSchema = zodToJsonSchema(zodObj) as any; const jsonSchema = removeAdditionalProperties( schema as GeminiJsonSchemaDirty ); diff --git a/libs/langchain-google-genai/src/utils/zod_to_genai_parameters.ts b/libs/langchain-google-genai/src/utils/zod_to_genai_parameters.ts index d7efe1d4d9e1..cb562f86fba2 100644 --- a/libs/langchain-google-genai/src/utils/zod_to_genai_parameters.ts +++ b/libs/langchain-google-genai/src/utils/zod_to_genai_parameters.ts @@ -68,7 +68,6 @@ export function jsonSchemaToGeminiParameters( // Gemini doesn't accept either the $schema or additionalProperties // attributes, so we need to explicitly remove them. // eslint-disable-next-line @typescript-eslint/no-explicit-any - // const jsonSchema = zodToJsonSchema(zodObj) as any; const jsonSchema = removeAdditionalProperties( schema as GenerativeAIJsonSchemaDirty );