Package com.tnsai.rag.files
Interface RecordInterpreter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Tells
IncrementalTextFilesRetriever what a record in an agent's files is: a note, a
message the agent was told or said, or something left out. The host that writes the files knows
its own wording; the retriever knows only the AgentRecordFormat grammar.
NONE reads every record as a note.
- Since:
- 0.18.6
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordWhat a record is. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionread(String file, String line, Optional<RecordParser.ParsedRecord> record) Reads the record a line starts.
-
Field Details
-
NONE
Reads every record as a note.
-
-
Method Details
-
read
RecordInterpreter.Reading read(String file, String line, Optional<RecordParser.ParsedRecord> record) Reads the record a line starts. In a.historyor.logfile that is a line that parses; in any other file every line starts a record of its own.- Parameters:
file- the file's path relative to the run folder, with/separatorsline- the record's first linerecord- the parsed line in a.historyor.logfile; empty in others- Returns:
- what the record is
-