Interface CallableFunction<P, R>

A definition for a function callable by the LLM.

interface CallableFunction<P, R> {
    description: string;
    execute: ((args) => PromiseLike<R>);
    parameters: OpenAIFunctionParameters | P;
}

Type Parameters

  • P extends z.ZodTypeAny = any
  • R = any

Properties

description: string
execute: ((args) => PromiseLike<R>)

Type declaration

parameters: OpenAIFunctionParameters | P