com.justai.jaicf.channel.yandexalice.activator.AliceIntentActivatorContext.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yandex-alice Show documentation
Show all versions of yandex-alice Show documentation
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