Type alias IntelligenceOptions

IntelligenceOptions: {
    functions?: {
        methods: {
            [key: string]: ((payload) => Promise<any>);
        };
        schema: ChatCompletionFunctions[];
    };
    key?: string;
    method?: ((payload) => Promise<any>);
    model?: string;
    service?: IntelligenceService;
    system?: string;
}

Represents the options for creating an Intelligence instance.

Type declaration

  • Optional functions?: {
        methods: {
            [key: string]: ((payload) => Promise<any>);
        };
        schema: ChatCompletionFunctions[];
    }

    The functions to use for the intelligence service (OpenAI only)

    • methods: {
          [key: string]: ((payload) => Promise<any>);
      }
      • [key: string]: ((payload) => Promise<any>)
          • (payload): Promise<any>
          • Parameters

            • payload: any

            Returns Promise<any>

    • schema: ChatCompletionFunctions[]
  • Optional key?: string

    The API key for the intelligence service

  • Optional method?: ((payload) => Promise<any>)
      • (payload): Promise<any>
      • The method to use for the custom intelligence service

        Parameters

        • payload: any

        Returns Promise<any>

  • Optional model?: string

    The model to use for the AI

  • Optional service?: IntelligenceService

    The type of intelligence service to use

  • Optional system?: string

    The system message to use in the chat