Struct LlmContent Snapshot
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.
pub struct LlmContentSnapshot {
pub parts: Vec<LlmContentEntry>,
pub text_parts: Vec<String>,
}
Complete owned response to one inspection; no host-side snapshot handle is retained.
Fields
parts: Vec<LlmContentEntry>
All selected typed parts, preserving their normalized field identities.
text_parts: Vec<String>
Authoritative eligible text/refusal/native-fallback strings selected by Rust. Empty list means absent text; a list containing an empty string means explicit empty text.
Trait Implementations
impl Clone for LlmContentSnapshot
impl Clone for LlmContentSnapshot
clone
fn clone(&self) -> LlmContentSnapshot
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for LlmContentSnapshot
impl Debug for LlmContentSnapshot
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for LlmContentSnapshot
impl Default for LlmContentSnapshot
default
fn default() -> Self
impl Message for LlmContentSnapshot
impl Message for LlmContentSnapshot
encoded_len
fn encoded_len(&self) -> usize
clear
fn clear(&mut self)
encode
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
encode_to_vec
fn encode_to_vec(&self) -> Vec<u8> where
Self: Sized,
encode_length_delimited
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
encode_length_delimited_to_vec
fn encode_length_delimited_to_vec(&self) -> Vec<u8> where
Self: Sized,
decode
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
decode_length_delimited
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
merge
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
merge_length_delimited
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
impl Name for LlmContentSnapshot
impl Name for LlmContentSnapshot
NAME
const NAME: &'static str = "LlmContentSnapshot"
PACKAGE
const PACKAGE: &'static str = "nvidia.nemo.relay.worker.v1"
full_name
fn full_name() -> String
type_url
fn type_url() -> String
impl PartialEq for LlmContentSnapshot
impl PartialEq for LlmContentSnapshot
eq
fn eq(&self, other: &LlmContentSnapshot) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl WireValue<LlmContentSnapshot> for ContentSnapshot
impl WireValue<LlmContentSnapshot> for ContentSnapshot
to_wire
fn to_wire(self) -> Result<LlmContentSnapshot>
from_wire
fn from_wire(value: LlmContentSnapshot) -> Result<Self>
impl StructuralPartialEq for LlmContentSnapshot
impl StructuralPartialEq for LlmContentSnapshot