> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.nvidia.com/nemo/relay/v0.9.4/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/llms.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-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker`. 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. > Variable content detection and extraction from prompt blocks. ## Docs - [Struct Extracted Variable](https://docs.nvidia.com/nemo/relay/v0.9.4/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/struct-extractedvariable.md): One extracted variable occurrence within a prompt block. - [Struct Extraction Result](https://docs.nvidia.com/nemo/relay/v0.9.4/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/struct-extractionresult.md): Variable extraction result for one prompt block. - [Struct Variable Pattern](https://docs.nvidia.com/nemo/relay/v0.9.4/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/struct-variablepattern.md): Regex-based pattern used to detect variable content. - [Enum Variable Category](https://docs.nvidia.com/nemo/relay/v0.9.4/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/enum-variablecategory.md): Category assigned to an extracted variable. - [Function default_variable_patterns](https://docs.nvidia.com/nemo/relay/v0.9.4/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/fn-default-variable-patterns.md): Return the default regex patterns used for variable extraction. - [Function extract_variables](https://docs.nvidia.com/nemo/relay/v0.9.4/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/fn-extract-variables.md): Extract variables from one content string. - [Function extract_variables_from_blocks](https://docs.nvidia.com/nemo/relay/v0.9.4/reference/api/rust-library-reference/nemo-relay-adaptive/acg/variable_extractor/fn-extract-variables-from-blocks.md): Extract variables from a set of prompt blocks.