Skip to content

ontocast.stategraph.routing

route_after_tag_or_chunk(state)

Route after tagging/summarization: ontology map-reduce vs facts-only.

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