Skip to main content

save_session_with_agents

Function save_session_with_agents 

Source
pub fn save_session_with_agents(
    colony: &Colony,
    path: &Path,
    files_indexed: &[String],
    agents: &[SerializedAgent],
) -> Result<()>
Expand description

Save the colony’s knowledge graph and agent state to a JSON file.

§Arguments

  • colony - The colony to save
  • path - Path to the output JSON file
  • files_indexed - List of files that were indexed
  • agents - Serialized agent states (use SerializableAgent::export_state())