Package com.tnsai.intelligence.rag
Record Class TreeNavigator.Request
java.lang.Object
java.lang.Record
com.tnsai.intelligence.rag.TreeNavigator.Request
- Record Components:
query- the retrieval query being answeredmodel- exact provider model identifiercurrent- node the traversal is standing oncandidates- children ofcurrent, in index orderremainingVisits- how many further nodes the traversal may opencancellationToken- cooperative cancellation signal
- Enclosing interface:
TreeNavigator
public static record TreeNavigator.Request(String query, String model, TreeNavigator.Node current, List<TreeNavigator.Node> candidates, int remainingVisits, com.tnsai.cancellation.CancellationToken cancellationToken)
extends Record
Immutable input passed to a
TreeNavigator provider.-
Constructor Summary
ConstructorsConstructorDescriptionRequest(String query, String model, TreeNavigator.Node current, List<TreeNavigator.Node> candidates, int remainingVisits, com.tnsai.cancellation.CancellationToken cancellationToken) Creates a validated immutable request. -
Method Summary
Modifier and TypeMethodDescriptioncom.tnsai.cancellation.CancellationTokenReturns the value of thecancellationTokenrecord component.Returns the value of thecandidatesrecord component.current()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.query()Returns the value of thequeryrecord component.intReturns the value of theremainingVisitsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
current
Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-
candidates
Returns the value of thecandidatesrecord component.- Returns:
- the value of the
candidatesrecord component
-
remainingVisits
public int remainingVisits()Returns the value of theremainingVisitsrecord component.- Returns:
- the value of the
remainingVisitsrecord component
-
cancellationToken
public com.tnsai.cancellation.CancellationToken cancellationToken()Returns the value of thecancellationTokenrecord component.- Returns:
- the value of the
cancellationTokenrecord component
-