Package com.tnsai.rag
Record Class SequentialConfig
java.lang.Object
java.lang.Record
com.tnsai.rag.SequentialConfig
- Record Components:
source- exact, case-sensitive knowledge-source name
Immutable runtime configuration for ordered knowledge-unit consumption.
Annotation and programmatic declarations converge on this model. Cursor state is deliberately not part of the configuration; the optional intelligence runtime owns it per target identity and source.
- Since:
- 0.15.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder twin for programmatic declarations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SequentialConfig.Builderbuilder()Starts a programmatic configuration using the annotation defaults.final booleanIndicates whether some other object is "equal to" this one.static SequentialConfigfrom(KnowledgeEntry entry) Converts a declareduse = SEQUENTIALknowledge entry to the canonical runtime model.final inthashCode()Returns a hash code value for this object.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SequentialConfig
Validates and normalizes the source name.
-
-
Method Details
-
from
Converts a declareduse = SEQUENTIALknowledge entry to the canonical runtime model.- Parameters:
entry- the declared entry- Returns:
- the configuration reading that entry in order
- Throws:
IllegalArgumentException- if the entry's use is not SEQUENTIAL- Since:
- 0.18.0
-
builder
Starts a programmatic configuration using the annotation defaults. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-