UNPKG

langcode

Version:

A Plugin-Based Framework for Managing and Using LangChain

19 lines (18 loc) 462 B
import { ChatOpenAI } from "@langchain/openai"; import { PluginDescriptions } from "./plugin"; export type OpenAIInitConfig = { apiKey: string; modelName?: string; temperature?: number; }; export type OpenAIRunArgs = { prompt: string; }; export interface OpenAIExpose extends PluginDescriptions { llm: ChatOpenAI | null; } export declare const OpenAIPluginTypes: { runArgs: OpenAIRunArgs; return: string; expose: OpenAIExpose; };