Expand description
Session persistence — save/load colony graph and agent state.
Serializes the knowledge graph (nodes + edges) and agent state to JSON for persistence across sessions. Agents can be fully restored with their vocabulary, fitness history, and other internal state.
Structs§
- Graph
State - Serializable snapshot of the knowledge graph and agent state.
- Serialized
Edge - Serializable edge.
- Serialized
Node - Serializable node.
- Session
Metadata - Session metadata.
Functions§
- load_
session - Load a saved session from JSON.
- restore_
agents - Restore agents from a GraphState into a colony.
- 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.
- save_
session_ with_ agents - Save the colony’s knowledge graph and agent state to a JSON file.
- verify_
fidelity - Check if save/load preserves node and edge counts.