Struct Prompt Block
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub struct PromptBlock {
pub span_id: SpanId,
pub sequence_index: u32,
pub role: PromptRole,
pub content: String,
pub content_type: BlockContentType,
pub provenance: ProvenanceLabel,
pub sensitivity: SensitivityLabel,
pub token_metadata: 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
impl Clone for PromptBlock
clone
fn clone(&self) -> PromptBlock
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for PromptBlock
impl Debug for PromptBlock
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for PromptBlock
impl<'de> Deserialize<'de> for PromptBlock
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl PartialEq for PromptBlock
impl PartialEq for PromptBlock
eq
fn eq(&self, other: &PromptBlock) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for PromptBlock
impl Serialize for PromptBlock
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for PromptBlock
impl StructuralPartialEq for PromptBlock