Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Aug 2, 2024
1 parent ee4d2c2 commit 59a5f7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions libs/langchain-anthropic/src/output_parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class AnthropicToolsOutputParser<
if (typeof result === "string") {
try {
parsedResult = JSON.parse(result);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (e: any) {
throw new OutputParserException(
`Failed to parse. Text: "${JSON.stringify(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ test("llm token callbacks can handle tool calls", async () => {
expect(args).toEqual(JSON.parse(tokens));
});

test.only("streaming with structured output", async () => {
test("streaming with structured output", async () => {
const stream = await model
.withStructuredOutput(zodSchema)
.stream("weather in london");
Expand Down

0 comments on commit 59a5f7a

Please sign in to comment.