ontocast.agent¶
Agent module for OntoCast.
This module provides a collection of agents that handle various aspects of ontology processing, including document conversion, text chunking, fact aggregation, and ontology management. Each agent is designed to perform a specific task in the ontology processing pipeline.
render_facts_fresh(state, tools)
async
¶
Render fresh facts from the current chunk into Turtle format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
UnitFactsState
|
The current unit facts state containing the chunk to render. |
required |
tools
|
AtomicToolBox
|
The toolbox instance providing utility functions. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
UnitFactsState |
UnitFactsState
|
Updated state with rendered facts. |
Source code in ontocast/agent/render_facts.py
render_ontology_fresh(state, tools)
async
¶
Render ontology triples into a human-readable format.
This function takes the triples from the current ontology and renders them into a more accessible format, making the ontological knowledge easier to understand.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
UnitOntologyState
|
The current agent state containing the ontology to render. |
required |
tools
|
AtomicToolBox
|
The toolbox instance providing utility functions. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
AgentState |
UnitOntologyState
|
Updated state with rendered triples. |
Source code in ontocast/agent/render_ontology.py
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 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | |