Struct Prompt Block
Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -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.
Referenced types: SpanId, u32, PromptRole, String, BlockContentType, ProvenanceLabel, SensitivityLabel, Option, TokenizationMetadata
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.
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
Referenced types: Clone, PromptBlock
clone
Referenced types: clone, PromptBlock
clone_from
Referenced types: clone_from
impl Debug for PromptBlock
Referenced types: Debug, PromptBlock
fmt
Referenced types: fmt, Formatter, Result
impl<'de> Deserialize<'de> for PromptBlock
Referenced types: Deserialize, PromptBlock
deserialize
Referenced types: deserialize, Result, Error, Deserializer
impl PartialEq for PromptBlock
Referenced types: PartialEq, PromptBlock
eq
Referenced types: eq, PromptBlock, bool
ne
Referenced types: ne, &Rhs, bool
impl Serialize for PromptBlock
Referenced types: Serialize, PromptBlock
serialize
Referenced types: serialize, Result, Ok, Error, Serializer
impl StructuralPartialEq for PromptBlock
Referenced types: StructuralPartialEq, PromptBlock