Skip to content

ontocast.stategraph.routing

Classes

Functions:

route_after_tag_or_chunk(state)

Route after chunking: the home-ontology step and ontology map-reduce, or 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 chunking: the home-ontology step and ontology map-reduce, or facts only."""
    if not state.render_ontology:
        return WorkflowNode.RENDER_FACTS
    return WorkflowNode.RESOLVE_HOME_ONTOLOGY