Skip to navigation

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 CategoryProfile {
    pub model_name: Option<String>,
    pub tool_call_id: Option<String>,
    pub subtype: Option<String>,
    pub tool_result_annotation: Option<JsonValue>,
    pub extra: HashMap<String, JsonValue>,
    pub annotated_request: Option<Box<AnnotatedLlmRequest>>,
    pub annotated_response: Option<Box<AnnotatedLlmResponse>>,
    pub time_to_first_chunk_seconds: Option<f64>,
}

Known category-specific fields and lossless extensions attached to an event.

Fields

model_name: Option<String>

Normalized model identifier for LLM events.

tool_call_id: Option<String>

LLM-provider correlation ID for Tool events.

subtype: Option<String>

Vendor subtype required when category == "custom".

tool_result_annotation: Option<JsonValue>

Normalized tool result annotation for successful tool end events.

extra: HashMap<String, JsonValue>

Unknown category-profile keys preserved from newer producers.

annotated_request: Option<Box<AnnotatedLlmRequest>>

Normalized request annotation for LLM start events.

annotated_response: Option<Box<AnnotatedLlmResponse>>

Normalized response annotation for LLM end events.

time_to_first_chunk_seconds: Option<f64>

Elapsed seconds from managed stream execution to its first received chunk.

Implementations

impl CategoryProfile

impl CategoryProfile

model_name

pub fn model_name(&self) -> &str

Returns the value of model_name, or the default value if model_name is unset.

tool_call_id

pub fn tool_call_id(&self) -> &str

Returns the value of tool_call_id, or the default value if tool_call_id is unset.

subtype

pub fn subtype(&self) -> &str

Returns the value of subtype, or the default value if subtype is unset.

time_to_first_chunk_seconds

pub fn time_to_first_chunk_seconds(&self) -> f64

Returns the value of time_to_first_chunk_seconds, or the default value if time_to_first_chunk_seconds is unset.

Trait Implementations

impl Clone for CategoryProfile

impl Clone for CategoryProfile

clone

fn clone(&self) -> CategoryProfile

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for CategoryProfile

impl Debug for CategoryProfile

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for CategoryProfile

impl Default for CategoryProfile

default

fn default() -> Self

impl Message for CategoryProfile

impl Message for CategoryProfile

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 CategoryProfile

impl Name for CategoryProfile

NAME

const NAME: &'static str = "CategoryProfile"

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 CategoryProfile

impl PartialEq for CategoryProfile

eq

fn eq(&self, other: &CategoryProfile) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl WireValue<CategoryProfile> for CategoryProfile

impl WireValue<CategoryProfile> for CategoryProfile

to_wire

fn to_wire(self) -> Result<CategoryProfile>

from_wire

fn from_wire(value: CategoryProfile) -> Result<Self>

impl StructuralPartialEq for CategoryProfile

impl StructuralPartialEq for CategoryProfile