> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/relay/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Function initialize_plugins

> Configures the active global plugin components.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi`.

<pre />

Configures the active global plugin components.

Initialization validates the supplied config, replaces the active configuration, and rolls back partial registration on failure. If a previous configuration was active, the host attempts to restore it when the new activation fails.

## Parameters

* `config`: Plugin configuration to validate and activate.

## Returns

A plugin [`Result`](/reference/api/rust-library-reference/nemo-relay/plugin/type-result) containing the successful [`ConfigReport`](/reference/api/rust-library-reference/nemo-relay/plugin/struct-configreport).

## Errors

Returns an error when validation fails, when plugin registration fails, or when the previous configuration cannot be restored after a failed replace.

## Notes

Initialization is replace-with-rollback: the previous active configuration is removed before the new configuration is activated.