MCPcopy Create free account
hub / github.com/AI45Lab/Code / command_registry

Method command_registry

core/src/agent_api.rs:620–622  ·  view source on GitHub ↗

Get a snapshot of command entries (name, description, optional usage). Acquires the command registry lock briefly and returns owned data.

(&self)

Source from the content-addressed store, hash-verified

618 ///
619 /// Acquires the command registry lock briefly and returns owned data.
620 pub fn command_registry(&self) -> std::sync::MutexGuard<'_, CommandRegistry> {
621 session_commands::registry(self)
622 }
623
624 /// Register a custom slash command.
625 ///

Callers 2

list_commandsMethod · 0.80
list_commandsMethod · 0.80

Calls 1

registryFunction · 0.85

Tested by

no test coverage detected