Skip to main content

01 — Basic Readers

The simplest way to use file readers: set readers=True on the agent and pass files with run().

Full source

definable/examples/readers/01_basic_readers.py

02 — Custom Parser

Build a custom BaseParser for a specific file format. Register it with a ParserRegistry and it takes priority over built-in parsers for the same formats.

Full source

definable/examples/readers/02_custom_reader.py

03 — Standalone Usage

Use BaseReader without an agent for file processing pipelines.

Full source

definable/examples/readers/03_standalone_usage.py

04 — Provider Override

Replace the default PDF parser with a custom cloud-based parser. Shows the priority system where higher-priority registrations override built-in defaults.

Full source

definable/examples/readers/04_provider_override.py