> 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.

# Module variable_extractor

> Variable content detection and extraction from prompt blocks.

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

Variable content detection and extraction from prompt blocks.

## Structs

* [ExtractedVariable](/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/struct-extractedvariable): One extracted variable occurrence within a prompt block.
* [ExtractionResult](/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/struct-extractionresult): Variable extraction result for one prompt block.
* [VariablePattern](/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/struct-variablepattern): Regex-based pattern used to detect variable content.

## Enums

* [VariableCategory](/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/enum-variablecategory): Category assigned to an extracted variable.

## Functions

* [default\_variable\_patterns](/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/fn-default-variable-patterns): Return the default regex patterns used for variable extraction.
* [extract\_variables](/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/fn-extract-variables): Extract variables from one content string.
* [extract\_variables\_from\_blocks](/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/fn-extract-variables-from-blocks): Extract variables from a set of prompt blocks.