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

Function register

core/src/agent_api/session_commands.rs:19–21  ·  view source on GitHub ↗
(session: &AgentSession, cmd: Arc<dyn SlashCommand>)

Source from the content-addressed store, hash-verified

17}
18
19pub(super) fn register(session: &AgentSession, cmd: Arc<dyn SlashCommand>) {
20 registry(session).register(cmd);
21}
22
23pub(super) fn dispatch(
24 session: &AgentSession,

Callers 1

register_commandMethod · 0.85

Calls 2

registryFunction · 0.85
registerMethod · 0.45

Tested by

no test coverage detected