@botonic/plugin-flow-builder
Version:
Use Flow Builder to show your contents
24 lines (23 loc) • 889 B
TypeScript
import { ActionRequest } from '@botonic/react';
import { FlowBuilderApi } from '../api';
import { HtSmartIntentNode } from '../content-fields/hubtype-fields/smart-intent';
export interface SmartIntentsInferenceParams {
bot_id: string;
text: string;
num_smart_intents_to_use?: number;
use_latest: boolean;
}
export interface SmartIntentsInferenceConfig {
useLatest: boolean;
numSmartIntentsToUse?: number;
}
export declare class SmartIntentsApi {
cmsApi: FlowBuilderApi;
currentRequest: ActionRequest;
smartIntentsConfig: SmartIntentsInferenceConfig;
flowId?: string | undefined;
constructor(cmsApi: FlowBuilderApi, currentRequest: ActionRequest, smartIntentsConfig: SmartIntentsInferenceConfig, flowId?: string | undefined);
getNodeByInput(): Promise<HtSmartIntentNode | undefined>;
private resolveUseLatest;
private getInference;
}