ontocast.agent.serialize¶
Serialization agent for OntoCast.
This module provides functionality for serializing the knowledge graph (ontology and facts) to the triple store.
Attributes¶
logger = logging.getLogger(__name__)
module-attribute
¶
Classes¶
Functions:¶
serialize(state, tools)
¶
Serialize the knowledge graph to the triple store.
This function: - Handles version management for updated ontologies - Tracks budget usage - Serializes both ontology and facts to the triple store
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
AgentState
|
Current agent state with ontology and facts |
required |
tools
|
ToolBox
|
ToolBox containing serialization tools |
required |
Returns:
| Type | Description |
|---|---|
AgentState
|
Updated agent state after serialization |