Function: someJsonlRecord()
Makaio Framework / ai-adapters-core/node / someJsonlRecord
Function: someJsonlRecord()
Section titled “Function: someJsonlRecord()”someJsonlRecord<
T>(filePath,predicate):Promise<boolean>
Defined in: ../../../adapters/core/src/log-importer/jsonl-parser.ts:292
Determine whether any parsed JSONL record matches a predicate.
Stops reading as soon as a matching record is found, which keeps discovery checks bounded even for very large log files.
Type Parameters
Section titled “Type Parameters”T
The expected type of each parsed record
Parameters
Section titled “Parameters”filePath
Section titled “filePath”string
Absolute path to the JSONL file
predicate
Section titled “predicate”(record) => boolean
Record matcher evaluated in file order
Returns
Section titled “Returns”Promise<boolean>
True on the first matching record, otherwise false