ontocast.onto.unit_states¶
Dedicated state models for parallel unit loops.
UnitFactsState
¶
Bases: UnitState
Independent per-unit state for facts extraction and critique.
Source code in ontocast/onto/unit_states.py
get_content_unit_progress_string()
¶
update_facts()
¶
Apply facts_updates to content_unit.graph and clear the list.
Source code in ontocast/onto/unit_states.py
UnitOntologyState
¶
Bases: UnitState
Independent per-unit state for ontology improvement loop.
Source code in ontocast/onto/unit_states.py
all_updates
property
¶
All ontology updates produced by this unit (applied and pending).
get_content_unit_progress_string()
¶
model_post_init(__context)
¶
update_ontology()
¶
Apply ontology_updates to current_ontology and clear the list.
Source code in ontocast/onto/unit_states.py
UnitState
¶
Bases: BasePydanticModel
Common per-unit workflow state.
Source code in ontocast/onto/unit_states.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | |
clear_external_evidence()
¶
Reset evidence plan, retrieved hits, and rendered evidence block.
Source code in ontocast/onto/unit_states.py
clear_external_evidence_request(node)
¶
clear_failure()
¶
get_content_unit_progress_string()
¶
get_external_evidence_cache_entry(node)
¶
Return node-scoped evidence cache entry.
get_external_evidence_request(node)
¶
Return node-scoped search request, defaulting to disabled.
load_external_evidence_for_node(node)
¶
Load node-scoped evidence cache into active prompt fields.
Source code in ontocast/onto/unit_states.py
mark_external_evidence_used(node)
¶
Record that a workflow node consumed prepared external evidence.
set_external_evidence_cache_entry(node, entry)
¶
Persist node-scoped evidence plan/fetch result cache.