UNPKG

langcode

Version:

A Plugin-Based Framework for Managing and Using LangChain

21 lines (20 loc) 573 B
import { AxiosRequestConfig, AxiosResponse, Method } from "axios"; import { PluginDescriptions } from "./plugin"; export type HttpInitConfig = {}; export type HttpRunArgs = { url: string; method?: Method; headers?: Record<string, string>; params?: Record<string, any>; data?: any; timeout?: number; }; export interface HttpExpose extends PluginDescriptions { response: AxiosResponse | null; config: AxiosRequestConfig | null; } export declare const HttpPluginTypes: { runArgs: HttpRunArgs; return: string; expose: HttpExpose; };