Skip to content

Commit

Permalink
chore: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Apr 8, 2024
1 parent b7e74e1 commit 9d040c8
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion langchain-core/src/language_models/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export abstract class BaseChatModel<

/**
* @deprecated Use .invoke() instead. Will be removed in 0.2.0.
*
*
* Generates chat based on the input messages.
* @param messages An array of arrays of BaseMessage instances.
* @param options The call options or an array of stop sequences.
Expand Down
2 changes: 1 addition & 1 deletion langchain-core/src/language_models/llms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export abstract class BaseLLM<

/**
* @deprecated Use .invoke() instead. Will be removed in 0.2.0.
*
*
* Run the LLM on the given prompts and input, handling caching.
*/
async generate(
Expand Down
2 changes: 1 addition & 1 deletion langchain-core/src/retrievers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export abstract class BaseRetriever<

/**
* @deprecated Use .invoke() instead. Will be removed in 0.2.0.
*
*
* Main method used to retrieve relevant documents. It takes a query
* string and an optional configuration object, and returns a promise that
* resolves to an array of `Document` objects. This method handles the
Expand Down
8 changes: 4 additions & 4 deletions langchain-core/src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export interface StructuredToolInterface<

/**
* @deprecated Use .invoke() instead. Will be removed in 0.2.0.
*
*
* Calls the tool with the provided argument, configuration, and tags. It
* parses the input according to the schema, handles any errors, and
* manages callbacks.
Expand Down Expand Up @@ -108,7 +108,7 @@ export abstract class StructuredTool<

/**
* @deprecated Use .invoke() instead. Will be removed in 0.2.0.
*
*
* Calls the tool with the provided argument, configuration, and tags. It
* parses the input according to the schema, handles any errors, and
* manages callbacks.
Expand Down Expand Up @@ -173,7 +173,7 @@ export abstract class StructuredTool<
export interface ToolInterface extends StructuredToolInterface {
/**
* @deprecated Use .invoke() instead. Will be removed in 0.2.0.
*
*
* Calls the tool with the provided argument and callbacks. It handles
* string inputs specifically.
* @param arg The input argument for the tool, which can be a string, undefined, or an input of the tool's schema.
Expand All @@ -200,7 +200,7 @@ export abstract class Tool extends StructuredTool {

/**
* @deprecated Use .invoke() instead. Will be removed in 0.2.0.
*
*
* Calls the tool with the provided argument and callbacks. It handles
* string inputs specifically.
* @param arg The input argument for the tool, which can be a string, undefined, or an input of the tool's schema.
Expand Down
12 changes: 6 additions & 6 deletions langchain/src/agents/tests/json.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ test("JsonGetValueTool, paths containing escaped characters", async () => {
"2"
);

expect(await jsonGetValueTool.invoke("/paths/~0~1IDSGenericFXCrossRate")).toBe(
"3"
);
expect(
await jsonGetValueTool.invoke("/paths/~0~1IDSGenericFXCrossRate")
).toBe("3");

expect(await jsonGetValueTool.invoke("/paths/~1~0IDSGenericFXCrossRate")).toBe(
"4"
);
expect(
await jsonGetValueTool.invoke("/paths/~1~0IDSGenericFXCrossRate")
).toBe("4");
});
4 changes: 3 additions & 1 deletion langchain/src/chains/router/tests/multi_prompt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ test("Test MultiPromptChain", async () => {
promptTemplates,
});

const { text: result } = await multiPromptChain.invoke({ input: "Test input" });
const { text: result } = await multiPromptChain.invoke({
input: "Test input",
});

expect(result).toEqual(`<from ${pickedPrompt}>`);
});

0 comments on commit 9d040c8

Please sign in to comment.