All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.justai.jaicf.activator.caila.slotfilling.CailaSlotFillingSettings.kt Maven / Gradle / Ivy

Go to download

JAICF-Kotlin Caila NLU Activator Adapter. Provides intent recognition and named entity extraction.

There is a newer version: 1.3.8
Show newest version
package com.justai.jaicf.activator.caila.slotfilling

/**
 * These settings are used in [CailaSlotFillingHelper] to specify when bot should end filling slots
 * and interrupt slot filling session.
 *
 * Slots are property of CailaIntent, required slots and prompts for then can be set in JAICP Web Interface.
 * If slot for intent is required, but no prompt is set, intent will not be activated.
 * Else if prompt is set, this prompt will be asked to client with no scenario changes.
 *
 * After client answered and filled all the slots, CailaIntentActivatorContext will contain filled slots.
 *
 * @see [com.justai.jaicf.activator.caila.CailaIntentActivatorContext]
 * @see [com.justai.jaicf.activator.caila.slotfilling.CailaSlotFillingHelper]
 * @see [com.justai.jaicf.slotfilling.SlotReactor]
 * @see [com.justai.jaicf.slotfilling.SlotFillingResult]
 *
 * @param maxSlotRetries specifies how many times client will be asked for slot.
 * @param stopOnAnyIntent specifies if slot filling session should be interrupted.
 * @param stopOnAnyIntentThreshold specifies threshold for intent interruption.
 * */
data class CailaSlotFillingSettings(
    val maxSlotRetries: Int,
    val stopOnAnyIntent: Boolean,
    val stopOnAnyIntentThreshold: Double
) {
    companion object {
        val DEFAULT = CailaSlotFillingSettings(2, false, 1.0)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy