agsamantha/node_modules/langchain/dist/tools/convert_to_openai.d.ts

17 lines
714 B
TypeScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
import type { StructuredToolInterface } from "@langchain/core/tools";
import { convertToOpenAIFunction, convertToOpenAITool } from "@langchain/core/utils/function_calling";
export { convertToOpenAIFunction as formatToOpenAIFunction, convertToOpenAITool as formatToOpenAITool, };
export declare function formatToOpenAIAssistantTool(tool: StructuredToolInterface): {
type: string;
function: {
name: string;
description: string;
parameters: import("zod-to-json-schema").JsonSchema7Type & {
$schema?: string | undefined;
definitions?: {
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
} | undefined;
};
};
};