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

# Struct Prompt Block

> A single addressable block within the Prompt IR.

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

<pre />

A single addressable block within the Prompt IR.

Each block carries provenance, sensitivity, and content type metadata along with an optional token count. Blocks are sequenced by `sequence_index` within the parent [`PromptIR`](/reference/api/rust-library-reference/nemo-relay-adaptive/acg/prompt_ir/struct-promptir).

## Fields

### `span_id: SpanId`

Stable span identifier for this block.

### `sequence_index: u32`

Zero-based index in the prompt sequence.

### `role: PromptRole`

Conversation role of this block.

### `content: String`

Raw content of the block.

### `content_type: BlockContentType`

Content type discriminant.

### `provenance: ProvenanceLabel`

Origin of the content.

### `sensitivity: SensitivityLabel`

Sensitivity classification (defaults to `Public`).

### `token_metadata: Option<TokenizationMetadata>`

Optional tokenization metadata.

## Trait Implementations

### `impl Clone for PromptBlock`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for PromptBlock`

<pre />

#### `fmt`

<pre />

### `impl<'de> Deserialize<'de> for PromptBlock`

<pre />

#### `deserialize`

<pre />

### `impl PartialEq for PromptBlock`

<pre />

#### `eq`

<pre />

#### `ne`

<pre />

### `impl Serialize for PromptBlock`

<pre />

#### `serialize`

<pre />

### `impl StructuralPartialEq for PromptBlock`

<pre />