@n8n/n8n-nodes-langchain
Version:
12 lines (11 loc) • 427 B
TypeScript
import type { Tool } from '@langchain/core/tools';
import type { Mocked } from 'vitest';
import { z } from 'zod';
export declare function createMockTool(toolName: string, opts?: {
description?: string;
invokeReturn?: unknown;
invokeError?: Error;
metadata?: Record<string, unknown>;
schema?: z.ZodTypeAny;
}): Mocked<Tool>;
export declare function createMockTools(toolNames: string[]): Array<Mocked<Tool>>;