Interface BaseActionData<K>

interface BaseActionData<K> {
    action: ((content) => Promise<{
        data?: K;
        message: string;
    }>);
    client: OpenAI;
    context: string;
    examples: {
        content: string;
        role: Role;
    }[];
    maxDepth: number;
    model: string;
    schema: ZodType<any, ZodTypeDef, any>;
    type: string;
    verbose: boolean;
}

Type Parameters

  • K

Properties

action: ((content) => Promise<{
    data?: K;
    message: string;
}>)

Type declaration

    • (content): Promise<{
          data?: K;
          message: string;
      }>
    • Parameters

      • content: any

      Returns Promise<{
          data?: K;
          message: string;
      }>

client: OpenAI
context: string
examples: {
    content: string;
    role: Role;
}[]

Type declaration

  • content: string
  • role: Role
maxDepth: number
model: string
schema: ZodType<any, ZodTypeDef, any>
type: string
verbose: boolean

Generated using TypeDoc