Skip to content

Commit

Permalink
chore: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jun 12, 2024
1 parent 7c868e8 commit a9aa78e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libs/langchain-community/src/chat_models/bedrock/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ export class BedrockChat
}

override bindTools(
tools: this["ParsedCallOptions"]["tools"],
tools: (StructuredToolInterface | AnthropicTool | ToolDefinition)[],
_kwargs?: Partial<this["ParsedCallOptions"]>
): Runnable<
BaseLanguageModelInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand All @@ -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
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit a9aa78e

Please sign in to comment.