UNPKG

cucumber-ai

Version:

Write automated tests using natural language

13 lines (12 loc) 510 B
import { ChatCompletionMessage, ChatCompletionMessageParam, ChatCompletionTool } from "openai/resources/chat/completions/completions"; import { ResponseFormatJSONSchema } from "openai/src/resources/shared"; export interface LLMAskParams { messages: Array<ChatCompletionMessageParam>; tools?: Array<ChatCompletionTool>; schema?: ResponseFormatJSONSchema.JSONSchema; } export declare class LLM { private client; constructor(); ask(params: LLMAskParams): Promise<ChatCompletionMessage>; }