Represents a solution.

Hierarchy

  • Solution

Constructors

  • Parameters

    • config: {
          resources?: ({
              description?: string;
              id?: string;
              name?: string;
              properties?: { model?: string; backstory?: string; datasetId?: string; skillsetId?: string; moderation?: boolean; privacy?: boolean; };
              slug?: string;
              type?: "bot";
          } | {
              description?: string;
              id?: string;
              name?: string;
              properties?: {};
              slug?: string;
              type?: "dataset";
          } | {
              description?: string;
              id?: string;
              name?: string;
              properties?: {};
              slug?: string;
              type?: "skillset";
          } | {
              description?: string;
              id?: string;
              name?: string;
              properties?: {};
              slug?: string;
              type?: "widgetIntegration";
          } | {
              description?: string;
              id?: string;
              name?: string;
              properties?: { url?: string; datasetId?: string; };
              slug?: string;
              type?: "sitemapIntegration";
          })[];
          version?: 1;
      }
      • Optional resources?: ({
            description?: string;
            id?: string;
            name?: string;
            properties?: { model?: string; backstory?: string; datasetId?: string; skillsetId?: string; moderation?: boolean; privacy?: boolean; };
            slug?: string;
            type?: "bot";
        } | {
            description?: string;
            id?: string;
            name?: string;
            properties?: {};
            slug?: string;
            type?: "dataset";
        } | {
            description?: string;
            id?: string;
            name?: string;
            properties?: {};
            slug?: string;
            type?: "skillset";
        } | {
            description?: string;
            id?: string;
            name?: string;
            properties?: {};
            slug?: string;
            type?: "widgetIntegration";
        } | {
            description?: string;
            id?: string;
            name?: string;
            properties?: { url?: string; datasetId?: string; };
            slug?: string;
            type?: "sitemapIntegration";
        })[]
      • Optional version?: 1

    Returns Solution

Accessors

Methods

  • Loads a solution from a configuration object or a file.

    Parameters

    • config: string | {
          resources?: ({
              description?: string;
              id?: string;
              name?: string;
              properties?: { model?: string; backstory?: string; datasetId?: string; skillsetId?: string; moderation?: boolean; privacy?: boolean; };
              slug?: string;
              type?: "bot";
          } | {
              description?: string;
              id?: string;
              name?: string;
              properties?: {};
              slug?: string;
              type?: "dataset";
          } | {
              description?: string;
              id?: string;
              name?: string;
              properties?: {};
              slug?: string;
              type?: "skillset";
          } | {
              description?: string;
              id?: string;
              name?: string;
              properties?: {};
              slug?: string;
              type?: "widgetIntegration";
          } | {
              description?: string;
              id?: string;
              name?: string;
              properties?: { url?: string; datasetId?: string; };
              slug?: string;
              type?: "sitemapIntegration";
          })[];
          version?: 1;
      }

    Returns Promise<Solution>

Generated using TypeDoc