Function register_tool_sanitize_response_guardrail
Function register_tool_sanitize_response_guardrail
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub fn register_tool_sanitize_response_guardrail(
name: &str,
priority: i32,
guardrail: ToolSanitizeFn,
) -> Result<()>
Register a global tool sanitize-response guardrail. The guardrail rewrites only the tool output recorded on emitted end events.
Parameters
name: Unique middleware name in the global registry.priority: Lower values run earlier in the chain.guardrail: Guardrail callback stored undername.
Returns
A Result that is Ok(()) when the guardrail was registered.
Errors
Returns FlowError::AlreadyExists when the name is already in use or an internal error if the runtime state cannot be updated.