JevQuestion

org.llm4s.jev.JevQuestion
See theJevQuestion companion object
sealed trait JevQuestion

A typed question for Jev, TypeSafe's System One decision model.

Jev evaluates one state against a map of named questions and answers each with a typed answer: a JevQuestion.Noul with the probability of "yes", a JevQuestion.Choice with the selected option and a distribution over the options, a JevQuestion.Score with a score along ordered levels. See JevAnswer for the answers.

Wire format (https://docs.typesafe.ai/api.md): every question has a type and instructions; instructions and every criterion is a string, an object or an array (JSON structure is allowed so a question can carry the data it refers to). The limits the API documents are checked before a request is sent: at most JevQuestion.MaxChoiceOptions options in a Choice, between JevQuestion.MinScoreLevels and JevQuestion.MaxScoreLevels levels in a Score.

ujson.Value is the JSON type the rest of LLM4S's public API uses (tool parameters, HTTP responses). It is mutable: do not change a value after it has been handed to a question.

Attributes

Companion
object
Source
JevQuestion.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Choice
class Noul
class Score

Members list

Value members

Abstract methods

What the model should decide: a string, an object or an array.

What the model should decide: a string, an object or an array.

Attributes

Source
JevQuestion.scala