Skip to content

Python API

Generated from the docstrings at build time, one page per module. The names most programs need are importable from lpgcast itself:

Name What it is
LPGCaster, CastResult, EpisodeResult the pipeline over many episodes, and what it returns (cast)
Episode, read_episodes the input (episode)
load_schema a graflo schema or manifest from YAML or JSON (schema_io)
save_cast a cast on disk (output)
write_cast, load_connection, WriteReport (graflo's ContainerWriteReport) writing to a database through graflo's write_container (write)
Grounding where an assertion was read (ground)
JsonlQuarantineSink, MemoryQuarantineSink where left-out items go (sink)
LPGCastSettings, LLMSettings, CacheSettings settings (config)

The steps of a cast are modules of their own: select, prompt, extract, validate, repair and resolve. The model client is llm, and the benchmark bench.