fn main() -> hexser::HexResult<()> {
let graph_arc = hexser::HexGraph::current();
let pack =
match hexser::ai::AgentPack::from_graph_with_defaults(std::sync::Arc::as_ref(&graph_arc)) {
std::result::Result::Ok(p) => p,
std::result::Result::Err(e) => return std::result::Result::Err(e),
};
let json = match pack.to_json() {
std::result::Result::Ok(s) => s,
std::result::Result::Err(e) => {
return std::result::Result::Err(hexser::Hexserror::adapter("E_AI_PACK_SERIALIZE", &e));
}
};
std::println!("{}", json);
std::result::Result::Ok(())
}