@aige/core
Version:
AI Game Engine
16 lines (15 loc) • 549 B
TypeScript
import OpenAI from 'openai';
import Game from './game';
import { Tool } from './tools';
import { GameClientOptions, GameClientImageOptions } from './types';
export default class Client {
client: OpenAI;
model: string;
imageModel: string;
contextWindow: number;
game: Game;
tokens: number;
constructor(options: GameClientOptions | undefined, game: Game);
call(tool: Tool | Tool[], parameters: any): Promise<any>;
image(prompt: string, options?: GameClientImageOptions): Promise<OpenAI.Images.Image | undefined>;
}