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

Method register_hook

core/src/agent_api/hook_control.rs:18–20  ·  view source on GitHub ↗
(&self, hook: crate::hooks::Hook)

Source from the content-addressed store, hash-verified

16 }
17
18 pub(super) fn register_hook(&self, hook: crate::hooks::Hook) {
19 self.session.hook_engine.register(hook);
20 }
21
22 pub(super) fn unregister_hook(&self, hook_id: &str) -> Option<crate::hooks::Hook> {
23 self.session.hook_engine.unregister(hook_id)

Callers

nothing calls this directly

Calls 1

registerMethod · 0.45

Tested by

no test coverage detected