This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy at the same URL with .md appended. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

FileSource Pennington.Pipeline

Content sourced from a file on disk, tagged with a format key that selects its parser/renderer.

Properties

Format string
Format key (e.g. "markdown", "cook") selecting the parser and renderer.
IsMarkdown bool
True when Format is one of the built-in markdown dispatch keys (see MarkdownFormat).
Path FilePath
Absolute path to the source file.

Constructors

FileSource

#
public FileSource(FilePath Path, string Format)

Content sourced from a file on disk, tagged with a format key that selects its parser/renderer.

Parameters

Path FilePath
Absolute path to the source file.
Format string
Format key (e.g. "markdown", "cook") selecting the parser and renderer.

Pennington.Pipeline.FileSource

namespace Pennington.Pipeline;

/// Content sourced from a file on disk, tagged with a format key that selects its parser/renderer.
public record FileSource
{
    /// Content sourced from a file on disk, tagged with a format key that selects its parser/renderer.
    
public FileSource(FilePath Path, string Format)
; /// Format key (e.g. "markdown", "cook") selecting the parser and renderer.
public string Format { get; set; }
/// True when Format is one of the built-in markdown dispatch keys (see MarkdownFormat).
public bool IsMarkdown { get; }
/// Absolute path to the source file.
public FilePath Path { get; set; }
}