Constructors
constructor
- new Solution(config): Solution
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
Accessors
baseClient
- get baseClient(): ChatBotKit
Returns ChatBotKit
Methods
sync
- sync(): Promise<void>
Returns Promise<void>
Static
create
- create(name): Promise<void>
Returns Promise<void>
Static
delete
- delete(name): Promise<void>
Returns Promise<void>
Static
list
- list(): Promise<string[]>
Returns Promise<string[]>
Static
load
- load(config): Promise<Solution>
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>
Static
save
- save(name, solution): Promise<void>
Returns Promise<void>
Represents a solution.