Interface Question

All Known Implementing Classes:
Choice, Noul, Score

public sealed interface Question permits Noul, Choice, Score
A typed question evaluated against a state by a System One model. The server answers every question of a request in parallel against the same state, so questions are meant to be atomic and composed in code rather than bundled into one broad prompt.
Since:
2.1.0
Author:
Christian Tzolov
See Also:
  • Method Details

    • type

      QuestionType type()
      Returns:
      the primitive this question uses
    • typeName

      default String typeName()
      Returns:
      the wire discriminator, written as the type property
    • instructions

      @Nullable JsonContent instructions()
      Returns:
      what the model is being asked; text, a JSON object or a JSON array, or null when the criteria alone carry the question