nemo_relay.plugin
nemo_relay.plugin
nemo_relay.plugin
Generated from python/nemo_relay/plugin.pyi.
Module nemo_relay.plugin.
Generic plugin configuration and registration helpers.
ConfigDiagnostic(_ConfigDiagnosticRequired)One plugin validation diagnostic.
ConfigReport(TypedDict)Validation or activation report for a plugin config.
PluginContext(Protocol)Component-scoped registration context passed to custom plugin handlers.
register_subscriberRegister an infallible event subscriber for this component.
register_tool_sanitize_request_guardrailRegister a tool sanitize-request guardrail for this component.
register_tool_sanitize_response_guardrailRegister a tool sanitize-response guardrail for this component.
register_tool_conditional_execution_guardrailRegister a tool conditional-execution guardrail for this component.
register_llm_sanitize_request_guardrailRegister an LLM sanitize-request guardrail for this component.
register_llm_sanitize_response_guardrailRegister an LLM sanitize-response guardrail for this component.
register_llm_conditional_execution_guardrailRegister an LLM conditional-execution guardrail for this component.
register_llm_request_interceptRegister an LLM request intercept for this component.
register_llm_execution_interceptRegister an LLM execution intercept for this component.
register_llm_stream_execution_interceptRegister an LLM streaming execution intercept for this component.
register_tool_request_interceptRegister a tool request intercept for this component.
register_tool_execution_interceptRegister a tool execution intercept for this component.
Plugin(Protocol)Custom plugin callback contract.
validateValidate one component-local config object.
registerInstall middleware and subscribers for one component instance.
ConfigPolicyPolicy for unsupported plugin configuration.
ConfigPolicyCreate an instance.
to_dictSerialize this policy to the canonical JSON object shape.
ComponentSpecOne top-level custom plugin component.
ComponentSpecCreate an instance.
to_dictSerialize this component to the canonical JSON object shape.
PluginConfigCanonical plugin configuration document.
PluginConfigCreate an instance.
to_dictSerialize this config to the canonical JSON document shape.
validateValidate a plugin configuration without changing runtime state.
initializeValidate and activate a plugin configuration.
clearClear the active plugin configuration.
pluginContext manager for plugin initialization and cleanup.
reportReturn the last successful plugin report.
list_kindsList registered custom plugin kinds.
registerRegister a custom plugin implementation.
deregisterDeregister a custom plugin kind.
UnsupportedBehavior