Skip to main content

Module hook_runtime

Module hook_runtime 

Source
Expand description

Process-wide hook invocation mode (GH-952).

Host hooks (SessionStart context, session-init, observe, summarize) run under tight host budgets, so embedding network calls made from a hook process are capped to a short deadline. A capped call that times out degrades through the configured embedding fallback chain with an error log instead of stalling the hook.

Constants§

DEFAULT_HOOK_EMBEDDING_TIMEOUT_SECS
ENV_HOOK_EMBEDDING_TIMEOUT_SECS

Functions§

enter_hook_runtime_mode
Mark this process as a host hook invocation. One-way for the process lifetime: hook entrypoints are always dedicated short-lived processes.
hook_embedding_timeout_secs
The embedding network deadline cap for hook processes, in seconds.
hook_runtime_mode