Skip to content

ontocast.stategraph.routing

route_after_chunk(state)

Route after chunking: ontology map-reduce vs facts-only.

Source code in ontocast/stategraph/routing.py
5
6
7
8
9
def route_after_chunk(state: AgentState) -> str:
    """Route after chunking: ontology map-reduce vs facts-only."""
    if not state.render_ontology:
        return WorkflowNode.RENDER_FACTS
    return WorkflowNode.RENDER_ONTOLOGY_UPDATE

route_after_ontology_consolidation(state)

Route after ontology stage to the ontology-only structural check.

Source code in ontocast/stategraph/routing.py
def route_after_ontology_consolidation(state: AgentState) -> str:
    """Route after ontology stage to the ontology-only structural check."""
    return WorkflowNode.STRUCTURAL_CHECK