lloyal-agents API Reference
    Preparing search index...

    Function chunkResources

    • Split loaded resources into Chunk instances for reranking

      Uses native Markdown heading detection (via parseMarkdown) to produce section-level chunks. Falls back to blank-line paragraph splitting for resources with no headings (or fewer than 10 lines of content).

      Parameters

      Returns Chunk[]

      Flat array of chunks across all resources, ready for Reranker.tokenizeChunks