Skip to main content

register_hooks

Function register_hooks 

Source
pub fn register_hooks()
Expand description

Register the connector’s hooks into the engine. Every entry calls this at start-up, before the first tool call (cli::dispatch::run, next to proxy::register_shapers, and the lean-ctx-embed engine builder). Calling it again changes nothing: the first registration wins. Every hook here is bookkeeping or telemetry and decides no refusal, except the subscription-model token source (models_access): without it the proxy refuses the leanctx provider (fail closed). The sign-in probe answers a question: the managed cloud.require gate in the engine decides, and refuses when no probe is registered.