Interface StandardActionData<K>

interface StandardActionData<K> {
    action: ((content) => Promise<{
        data?: K;
        message: string;
    }>);
    contextPath: string;
    examples: {
        content: string;
        role: Role;
    }[];
    schema: ZodType<any, ZodTypeDef, any>;
    type: string;
}

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;
      }>

contextPath: string
examples: {
    content: string;
    role: Role;
}[]

Type declaration

  • content: string
  • role: Role
schema: ZodType<any, ZodTypeDef, any>
type: string

Generated using TypeDoc