lloyal-agents API Reference
    Preparing search index...

    Interface ScoredChunk

    A single chunk scored by the Reranker against a query

    Returned as part of ScoredResult from reranker scoring. Contains the file location, heading, relevance score, and line range so downstream tools (e.g. ReadFileTool) can fetch the exact content.

    interface ScoredChunk {
        endLine: number;
        file: string;
        heading: string;
        score: number;
        startLine: number;
    }
    Index

    Properties

    endLine: number

    End line in the source file (1-indexed)

    file: string

    Source filename containing the chunk

    heading: string

    Section heading the chunk belongs to

    score: number

    Relevance score (higher = more relevant)

    startLine: number

    Start line in the source file (1-indexed)