Struct Category Profile
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: Option, String, Value, BTreeMap, Arc, AnnotatedLlmRequest, AnnotatedLlmResponse, f64
Category-specific profile data.
Unknown wire keys are preserved in extra. LLM annotations are serialized under category_profile when a codec captures them.
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<Value>
Normalized tool result annotation for successful tool end events.
extra: BTreeMap<String, Value>
Unknown category-profile keys preserved from newer producers.
annotated_request: Option<Arc<AnnotatedLlmRequest>>
Normalized request annotation for LLM start events.
annotated_response: Option<Arc<AnnotatedLlmResponse>>
Normalized response annotation for LLM end events.
time_to_first_chunk: Option<f64>
Elapsed seconds from managed stream execution to its first received chunk.
Implementations
impl CategoryProfile
Referenced types: CategoryProfile
builder
Create a builder for building CategoryProfile. On the builder, call .model_name(...)(optional), .tool_call_id(...)(optional), .subtype(...)(optional), .tool_result_annotation(...)(optional), .extra(...)(optional), .annotated_request(...)(optional), .annotated_response(...)(optional), .time_to_first_chunk(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of CategoryProfile.
impl CategoryProfile
Referenced types: CategoryProfile
is_wire_empty
Referenced types: bool
Return true when the profile has no wire-serialized fields.
Returns
true when no profile fields would be serialized on the wire.
Trait Implementations
impl Clone for CategoryProfile
Referenced types: Clone, CategoryProfile
clone
Referenced types: clone, CategoryProfile
clone_from
Referenced types: clone_from
impl Debug for CategoryProfile
Referenced types: Debug, CategoryProfile
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl Default for CategoryProfile
Referenced types: Default, CategoryProfile
default
Referenced types: default, CategoryProfile
impl<'de> Deserialize<'de> for CategoryProfile
Referenced types: Deserialize, CategoryProfile
deserialize
Referenced types: deserialize, Result, CategoryProfile, Deserializer, Error
impl PartialEq for CategoryProfile
Referenced types: PartialEq, CategoryProfile
eq
Referenced types: eq, CategoryProfile, bool
ne
Referenced types: ne, &Rhs, bool
impl Serialize for CategoryProfile
Referenced types: Serialize, CategoryProfile
serialize
Referenced types: serialize, Result, Serializer, Ok, Error
impl StructuralPartialEq for CategoryProfile
Referenced types: StructuralPartialEq, CategoryProfile