Expand description
Deterministic extraction and scripting policy for Index documents.
This crate consumes the Index Document Model. It does not parse HTML, render terminal UI, or execute local commands.
Structs§
- Citation
- A stable external citation/reference extracted from a document link.
- Extraction
Limits - Limits applied to extraction output.
- Pipe
Command - A command that can receive extracted document output from the host app.
Enums§
- Extract
Format - Supported document extraction formats.
- Extraction
Error - Extraction failure.
- Json
Schema Error - Result of validating the deterministic document JSON shape.
- Pipe
Decision - Policy decision for a
:pipecommand. - Pipe
Denied Reason - Reason a pipe command was denied.
Constants§
- DEFAULT_
MAX_ EXTRACTION_ BYTES - Default maximum extraction output size in bytes.
Functions§
- classify_
pipe_ command - Classifies a
:pipecommand without executing it. - export_
section_ markdown - Exports the first section whose heading or section title matches as Markdown.
- extract_
citations - Extracts external HTTP(S) citations and references in document order.
- extract_
citations_ tsv - Extracts external citations as deterministic TSV.
- extract_
document - Extracts a document in the requested format.
- extract_
json - Extracts a document as deterministic JSON.
- extract_
links - Extracts document links as stable numeric addresses.
- extract_
markdown - Extracts a document as deterministic Markdown.
- try_
extract_ document - Extracts a document and rejects oversized output deterministically.
- validate_
document_ json_ schema - Validates the stable JSON shape emitted by
extract_json.