Table of Contents

Interface IDocumentParser

Namespace
Mythosia.Documents.Elements
Assembly
Mythosia.Documents.Abstractions.dll

Parses a document into a structured DoclingDocument representation.

public interface IDocumentParser

Methods

CanParse(string)

Returns true if the parser can handle the given source.

bool CanParse(string source)

Parameters

source string

Returns

bool

ParseAsync(string, CancellationToken)

Parses the document and returns a structured DoclingDocument.

Task<DoclingDocument> ParseAsync(string source, CancellationToken ct = default)

Parameters

source string
ct CancellationToken

Returns

Task<DoclingDocument>