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

public record SequentialConfig(String source) extends Record
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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Builder twin for programmatic declarations.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Validates and normalizes the source name.
  • Method Summary

    Modifier and Type
    Method
    Description
    Starts a programmatic configuration using the annotation defaults.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Converts a declared use = SEQUENTIAL knowledge entry to the canonical runtime model.
    final int
    Returns a hash code value for this object.
    Returns the value of the source record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SequentialConfig

      public SequentialConfig(String source)
      Validates and normalizes the source name.
  • Method Details

    • from

      public static SequentialConfig from(KnowledgeEntry entry)
      Converts a declared use = SEQUENTIAL knowledge 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

      public static SequentialConfig.Builder builder()
      Starts a programmatic configuration using the annotation defaults.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component