Class BaseAction<K>

Type Parameters

  • K = void

Hierarchy (view full)

Constructors

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
contextId: string
history: Message[] = []
id: string
maxDepth: number
model: string
schema: ZodType<any, ZodTypeDef, any>
verbose: boolean

Accessors

Methods

  • Parameters

    • content: string

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

  • Parameters

    • __namedParameters: {
          content: string;
          id?: string;
          role: Role;
      }
      • content: string
      • Optional id?: string
      • role: Role

    Returns void

  • Parameters

    • __namedParameters: {
          content: string;
          id?: string;
          role: Role;
      }
      • content: string
      • Optional id?: string
      • role: Role

    Returns void

Generated using TypeDoc