Skip to main content

register

Function register 

Source
pub fn register(router: &mut Router, state: AgentsCatalogState)
Expand description

Register agents.list, agents.describe, agents.create, agents.delete onto router.

Why: the one place listing this namespace’s full surface, mirroring every other *::protocol::register in this crate. What: clones state once per method (cheap — PathBuf + &'static str) into a small adapter closure that forwards to the corresponding free function below. Test: tests::register_wires_all_three_methods, tests::register_wires_describe.