#[non_exhaustive]pub struct BlockMeta {
pub provider_call_id: Option<String>,
pub source: Option<String>,
pub wire: Option<WireMeta>,
}Expand description
Envelope provenance. Fields are serde-additive so older records without them still deserialize.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.provider_call_id: Option<String>Provider-issued identifier (e.g. upstream call id).
source: Option<String>Origin tag (e.g. “user”, “provider:gpt-4o”, “host”). Optional provenance only: no renderer, validator, or runtime reads it and it does not affect rendering.
wire: Option<WireMeta>What the provider’s item carried beyond the facts in this block. Written by the model door, read only by the protocol renderer whose format matches; the kernel never interprets it.
Implementations§
Source§impl BlockMeta
impl BlockMeta
Sourcepub fn from_source(source: impl Into<String>) -> Self
pub fn from_source(source: impl Into<String>) -> Self
Metadata naming only where the block came from, such as "user".
Provenance only: no renderer, validator, or runtime reads it and it does
not affect rendering.
Sourcepub fn with_provider_call_id(self, provider_call_id: impl Into<String>) -> Self
pub fn with_provider_call_id(self, provider_call_id: impl Into<String>) -> Self
Sets the provider-issued call identifier.
Sourcepub fn with_source(self, source: impl Into<String>) -> Self
pub fn with_source(self, source: impl Into<String>) -> Self
Sets the origin tag. Provenance only: no renderer, validator, or runtime reads it and it does not affect rendering.