Skip to content

Commit

Permalink
fix(core): Move type (#7246)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Nov 25, 2024
1 parent 53d8ff5 commit ca44bd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion langchain-core/src/tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
} from "../runnables/config.js";
import type { RunnableFunc, RunnableInterface } from "../runnables/base.js";
import { ToolCall, ToolMessage } from "../messages/tool.js";
import { ZodObjectAny } from "../types/zod.js";
import { MessageContent } from "../messages/base.js";
import { AsyncLocalStorageProviderSingleton } from "../singletons/index.js";
import { _isToolCall, ToolInputParsingException } from "./utils.js";
Expand All @@ -32,6 +31,9 @@ type ToolReturnType = any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type ContentAndArtifact = [MessageContent, any];

// eslint-disable-next-line @typescript-eslint/no-explicit-any
type ZodObjectAny = z.ZodObject<any, any, any, any>;

/**
* Parameters for the Tool classes.
*/
Expand Down
4 changes: 0 additions & 4 deletions langchain-core/src/types/zod.ts

This file was deleted.

0 comments on commit ca44bd7

Please sign in to comment.