
Client for Jev API handling authentication, evaluating text or structured data, supporting Noul/Choice/Score questions, returning typed answers with probabilities and easy integration.
A Jev API client library for Kotlin.
KLibJev is a Kotlin Multiplatform client for accessing the Jev API. It handles authentication and supports evaluating text or structured
data with yes/no (Noul), multiple-choice (Choice), and scoring (Score) questions, and receive typed answers with probabilities.
Add the library to your Kotlin project:
dependencies {
implementation("org.jraf.klibjev:klibjev:$latest_version")
}Create a client with your Jev API key and call evaluate:
JevClient(JevClient.Configuration(apiKey = "YOUR_API_KEY")).use { client ->
val answers = client.evaluate(
State("Bonjour !"),
Noul(instructions = "Is this a greeting?"),
).getOrThrow().answers
println(answers)
}evaluate returns a Kotlin Result.
See the JVM sample for a more comprehensive example.
A Jev API client library for Kotlin.
KLibJev is a Kotlin Multiplatform client for accessing the Jev API. It handles authentication and supports evaluating text or structured
data with yes/no (Noul), multiple-choice (Choice), and scoring (Score) questions, and receive typed answers with probabilities.
Add the library to your Kotlin project:
dependencies {
implementation("org.jraf.klibjev:klibjev:$latest_version")
}Create a client with your Jev API key and call evaluate:
JevClient(JevClient.Configuration(apiKey = "YOUR_API_KEY")).use { client ->
val answers = client.evaluate(
State("Bonjour !"),
Noul(instructions = "Is this a greeting?"),
).getOrThrow().answers
println(answers)
}evaluate returns a Kotlin Result.
See the JVM sample for a more comprehensive example.