Module registry
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
Global and scope-local middleware registration helpers. Middleware registry helpers for global and scope-local guardrails, intercepts, and subscribers.
Functions
- deregister_llm_conditional_execution_guardrail: Deregister a global LLM conditional-execution guardrail.
- deregister_llm_execution_intercept: Deregister a global LLM execution intercept.
- deregister_llm_request_intercept: Deregister a global LLM request intercept.
- deregister_llm_sanitize_request_guardrail: Deregister a global LLM sanitize-request guardrail.
- deregister_llm_sanitize_response_guardrail: Deregister a global LLM sanitize-response guardrail.
- deregister_llm_stream_execution_intercept: Deregister a global streaming LLM execution intercept.
- deregister_tool_conditional_execution_guardrail: Deregister a global tool conditional-execution guardrail.
- deregister_tool_execution_intercept: Deregister a global tool execution intercept.
- deregister_tool_request_intercept: Deregister a global tool request intercept.
- deregister_tool_sanitize_request_guardrail: Deregister a global tool sanitize-request guardrail.
- deregister_tool_sanitize_response_guardrail: Deregister a global tool sanitize-response guardrail.
- register_llm_conditional_execution_guardrail: Register a global LLM conditional-execution guardrail. The guardrail can block LLM execution before intercepts or the provider callback run.
- register_llm_execution_intercept: Register a global LLM execution intercept. Execution intercepts can wrap or replace the non-streaming provider callback.
- register_llm_request_intercept: Register a global LLM request intercept. Request intercepts can rewrite or annotate the outgoing LLM request.
- register_llm_sanitize_request_guardrail: Register a global LLM sanitize-request guardrail. The guardrail rewrites only the request payload recorded on emitted start events.
- register_llm_sanitize_response_guardrail: Register a global LLM sanitize-response guardrail. The guardrail rewrites only the response payload recorded on emitted end events.
- register_llm_stream_execution_intercept: Register a global streaming LLM execution intercept. Execution intercepts can wrap or replace the streaming provider callback.
- register_tool_conditional_execution_guardrail: Register a global tool conditional-execution guardrail. The guardrail can block tool execution before intercepts or the tool callback run.
- register_tool_execution_intercept: Register a global tool execution intercept. Execution intercepts can wrap or replace the tool callback.
- register_tool_request_intercept: Register a global tool request intercept. Request intercepts can rewrite tool arguments before execution.
- register_tool_sanitize_request_guardrail: Register a global tool sanitize-request guardrail. The guardrail rewrites only the tool input recorded on emitted start events.
- register_tool_sanitize_response_guardrail: Register a global tool sanitize-response guardrail. The guardrail rewrites only the tool output recorded on emitted end events.
- scope_deregister_llm_conditional_execution_guardrail: Deregister a scope-local LLM conditional-execution guardrail.
- scope_deregister_llm_execution_intercept: Deregister a scope-local LLM execution intercept.
- scope_deregister_llm_request_intercept: Deregister a scope-local LLM request intercept.
- scope_deregister_llm_sanitize_request_guardrail: Deregister a scope-local LLM sanitize-request guardrail.
- scope_deregister_llm_sanitize_response_guardrail: Deregister a scope-local LLM sanitize-response guardrail.
- scope_deregister_llm_stream_execution_intercept: Deregister a scope-local streaming LLM execution intercept.
- scope_deregister_tool_conditional_execution_guardrail: Deregister a scope-local tool conditional-execution guardrail.
- scope_deregister_tool_execution_intercept: Deregister a scope-local tool execution intercept.
- scope_deregister_tool_request_intercept: Deregister a scope-local tool request intercept.
- scope_deregister_tool_sanitize_request_guardrail: Deregister a scope-local tool sanitize-request guardrail.
- scope_deregister_tool_sanitize_response_guardrail: Deregister a scope-local tool sanitize-response guardrail.
- scope_register_llm_conditional_execution_guardrail: Register a scope-local LLM conditional-execution guardrail. The guardrail can block LLM execution inside the owning scope.
- scope_register_llm_execution_intercept: Register a scope-local LLM execution intercept. Execution intercepts can wrap or replace the non-streaming provider callback inside the owning scope.
- scope_register_llm_request_intercept: Register a scope-local LLM request intercept. Request intercepts can rewrite or annotate LLM requests inside the owning scope.
- scope_register_llm_sanitize_request_guardrail: Register a scope-local LLM sanitize-request guardrail. The guardrail rewrites only request payloads emitted under the owning scope.
- scope_register_llm_sanitize_response_guardrail: Register a scope-local LLM sanitize-response guardrail. The guardrail rewrites only response payloads emitted under the owning scope.
- scope_register_llm_stream_execution_intercept: Register a scope-local streaming LLM execution intercept. Execution intercepts can wrap or replace the streaming provider callback inside the owning scope.
- scope_register_tool_conditional_execution_guardrail: Register a scope-local tool conditional-execution guardrail. The guardrail can block tool execution inside the owning scope.
- scope_register_tool_execution_intercept: Register a scope-local tool execution intercept. Execution intercepts can wrap or replace the tool callback inside the owning scope.
- scope_register_tool_request_intercept: Register a scope-local tool request intercept. Request intercepts can rewrite tool arguments inside the owning scope.
- scope_register_tool_sanitize_request_guardrail: Register a scope-local tool sanitize-request guardrail. The guardrail rewrites only tool input emitted under the owning scope.
- scope_register_tool_sanitize_response_guardrail: Register a scope-local tool sanitize-response guardrail. The guardrail rewrites only tool output emitted under the owning scope.