Record Class DecisionRequest
java.lang.Object
java.lang.Record
ai.redouble.nucleo.harness.decision.DecisionRequest
- Record Components:
state- what the questions are about; text, or a structure rendered as textquestions- the questions by id, at least one, in the order asked
One request to a decision model: a state and the questions to answer about it, each under
an id the caller chose. The state is text, or a structure the wire renders as text (a map,
a list, a plain object), and it is read once for every question in the request; the
questions are answered independently of one another and the answers come back under the
same ids. An id is the caller's handle: it keys the wire request and its answers, and the
model is asked the question's instructions, nothing about the id.
- Since:
- 0.1 (2026-09-24)
- Author:
- Andrey Santrosyan
-
Constructor Summary
ConstructorsConstructorDescriptionDecisionRequest(Object state, Map<String, Question> questions) Creates an instance of aDecisionRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thequestionsrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DecisionRequest
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
state
-
questions
-