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

com.justai.jaicf.channel.yandexalice.activator.AliceIntentActivatorContext.kt Maven / Gradle / Ivy

Go to download

JAICF-Kotlin Yandex Alice Channel implementation. Enables JAICF-Kotlin integration with Alice.

The newest version!
package com.justai.jaicf.channel.yandexalice.activator

import com.justai.jaicf.activator.intent.IntentActivatorContext
import com.justai.jaicf.channel.yandexalice.api.Request
import com.justai.jaicf.context.ActivatorContext

class AliceIntentActivatorContext(
    intentName: String,
    intentSlots: Request.Nlu.Intent
): IntentActivatorContext(
    confidence = 1f,
    intent = intentName
) {
    val slots = intentSlots.slots
}

val ActivatorContext.alice
    get() = this as? AliceIntentActivatorContext




© 2015 - 2024 Weber Informatics LLC | Privacy Policy