/** * Options for `platform.nlu.extract()`. * * Compatible with logic-executor `NeuroNluRecognitionRequest`. ScriptEngine forwards * all fields to nlu-engine `/nlu_engine`. Exclude fields (`entities_exclude`, * `intents_exclude`) are mapped to `entities_policy` / `intents_policy`. */ export interface NluExtractOptions { /** * Entity names to search — always forwarded to nlu-engine as a JSON array. * Prefer `['confirmation', 'check']`; comma-separated string is accepted for LE compat. */ entities?: string | string[] | null; /** Legacy compatibility field; mapped to exclude policy on nlu-engine. */ entities_exclude?: string | string[] | null; /** * Intent names to search — always forwarded to nlu-engine as a JSON array. * Prefer `['balance_check']`; comma-separated string is accepted for LE compat. */ intents?: string | string[] | null; /** Legacy compatibility field; mapped to exclude policy on nlu-engine. */ intents_exclude?: string | string[] | null; /** * Opaque NLU disambiguation context (not {@link import('./script-context').ScriptDialogContext}). * * Objects and arrays are JSON-stringified before sending. When omitted or `null`, * the runtime sends **no** NLU context (`null`) — there is no auto-fill from dialog * params or `flag`. Pass explicitly when needed (logic-executor scripts usually pass * `context.flag`). */ context?: string | unknown[] | Record | null; /** * BCP-47 / LE language for this call only (e.g. `es-ES`). * Default NLU language comes from the LE agent (`_nlu.language`), not `context.lang`. */ language?: string; /** Alias for {@link language}. */ lang?: string; /** Forwarded as `use_neuro_api`; nlu-engine may call remote NLU API when true. */ use_neuro_api?: boolean; /** Forwarded as `use_synonyms`; enables synonym expansion in nlu-engine. */ use_synonyms?: boolean; } export interface NluProbabilityValue { value: unknown; probability: number; } /** * logic-executor `NeuroNluRecognitionResult` method surface returned from * `platform.nlu.extract()` / `extract$()`. */ export interface NluInferResult { utterance(): string | null; context(): unknown; entity(entityName: string): unknown; intent(intentName: string): unknown; has_entity(entityName: string): boolean; has_intent(intentName: string): boolean; has_entities(): boolean; has_intents(): boolean; entities(): Record; intents(): Record; entity_with_probability(entityName: string): NluProbabilityValue | null; intent_with_probability(intentName: string): NluProbabilityValue | null; entities_with_probability(): Record; intents_with_probability(): Record; dump(): Record; dump_json(): string; } //# sourceMappingURL=nlu.d.ts.map