ontocast.onto.enum¶
FailureStage
¶
Bases: StrEnum
Enumeration of possible failure stages in the workflow.
Source code in ontocast/onto/enum.py
LLMGraphFormat
¶
Bases: StrEnum
Format used by the LLM when emitting RDF graph payloads.
jsonld(default): graph fields are compact JSON-LD objects embedded directly in the structured LLM response. Internally parsed back intoRDFGraph.turtle: graph fields are Turtle strings (legacy encoding, kept for providers whose structured output handles strings better than objects).
Source code in ontocast/onto/enum.py
OntologyAssemblyMode
¶
Bases: StrEnum
How per-unit ontology context was assembled for prompts.
Source code in ontocast/onto/enum.py
OntologyContextMode
¶
Bases: StrEnum
How per-unit ontology context is sourced before ontology/facts rendering.
Source code in ontocast/onto/enum.py
RenderMode
¶
RetrievalMetric
¶
Bases: StrEnum
Top-level keys of AgentState.retrieval_metrics.
These are wire names. The dict is serialized verbatim into
ProcessResultMetadata.retrieval_metrics on /process and
/process_unit and into the batch run manifest, so a member's value
may never change without a breaking release; the member name is free to.
Collecting them here replaces bare string literals scattered over three
modules, where a typo produced a silently missing metric and nothing
enumerated what a run should emit.
Only the flat top level is enumerated. The per-retrieval telemetry that
lands nested under :attr:PATCH_RETRIEVAL is the patch retriever's own
namespace with its own lifecycle, and flattening it here would assert a
structure that does not exist.
Source code in ontocast/onto/enum.py
SPARQLOperationType
¶
Bases: StrEnum
Enumeration of SPARQL operation types.
This enum is used across the system for type-safe SPARQL operations.
Source code in ontocast/onto/enum.py
SectionLabelSource
¶
Bases: StrEnum
How a chunk's section_label was decided.
Ordered from strongest to weakest evidence. The source is not bookkeeping:
the chunk-prepare cascade uses it to decide whether a label may still be
overwritten by a later tier, and forward-fill refuses to cross a span whose
source is :attr:OUTLINE_UNRESOLVED.
Source code in ontocast/onto/enum.py
Status
¶
VectorDistance
¶
Bases: StrEnum
Vector distance metric used when creating a vector collection.
Values match qdrant_client.http.models.Distance exactly, so existing
QDRANT_DISTANCE environment values keep working. Declaring it here
rather than importing Qdrant's enum keeps the Qdrant SDK off the import
path of :mod:ontocast.config, which every entry point loads.
Source code in ontocast/onto/enum.py
VectorStoreBackend
¶
Bases: StrEnum
Which vector store implementation backs ontology patch retrieval.
Two backends are supported: QDRANT (server) and LANCEDB (embedded),
each shipped as its own optional extra.
AUTO infers the backend from whichever connection setting is populated
-- Qdrant if QDRANT_URI is set, LanceDB if it is enabled, otherwise
NONE. NONE is the default for an unconfigured install: ontology
context then comes from a single working ontology, which is the default
:class:OntologyContextMode. Naming a backend explicitly makes the choice
fail loudly when its configuration is missing.
Source code in ontocast/onto/enum.py
WorkflowNode
¶
Bases: StrEnum
Enumeration of workflow nodes in the processing pipeline.