Expand description
Session persistence — save/load colony graph state.
Serializes the knowledge graph (nodes + edges) to JSON for persistence across sessions. Agent state is not serialized (agents are reconstructed from config on load).
Structs§
- Graph
State - Serializable snapshot of the knowledge graph.
- Serialized
Edge - Serializable edge.
- Serialized
Node - Serializable node.
- Session
Metadata - Session metadata.
Functions§
- load_
session - Load a saved session from JSON.
- restore_
into_ colony - Restore a graph state into a colony. Adds all nodes and edges from the saved state.
- save_
session - Save the colony’s knowledge graph to a JSON file.
- verify_
fidelity - Check if save/load preserves node and edge counts.