UNPKG

@aige/core

Version:
18 lines (17 loc) 469 B
import { ChatCompletionTool } from 'openai/resources'; import Client from '../client'; export interface Tool { schema: ChatCompletionTool; execute: (parameters: any) => any; } export declare const call: (client: Client, tool: Tool | Tool[]) => (parameters: any) => Promise<any>; export declare const tools: { create: Tool; action: Tool; name: Tool; class: Tool; inventory: Tool; summarize: Tool; chat: Tool; reputation: Tool; };