DecisionRequest

data class DecisionRequest(val state: JsonElement, val questions: Map<String, Question>)

What a DecisionModel is asked.

Throws

if there is no question.

Constructors

Link copied to clipboard
constructor(state: JsonElement, questions: Map<String, Question>)
constructor(state: String, questions: Map<String, Question>)

Asks questions about the text state.

Properties

Link copied to clipboard

the questions about state, each under a name of your choice. Its answer comes back under the same name.

Link copied to clipboard
val state: JsonElement

what the model judges: a text as a JsonPrimitive, or structured data such as a conversation or a record.