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 EventCategory(/* private fields */);

Semantic category carried by ATOF category.

This is intentionally string-backed so consumers can preserve category values from newer producers without failing deserialization.

Implementations

impl EventCategory

impl EventCategory

Referenced types: EventCategory

agent

pub fn agent() -> EventCategory

Referenced types: EventCategory

Top-level agent or workflow scope.

Returns

An EventCategory with the wire value agent.

function

pub fn function() -> EventCategory

Referenced types: EventCategory

Generic function or application step.

Returns

An EventCategory with the wire value function.

llm

pub fn llm() -> EventCategory

Referenced types: EventCategory

LLM call.

Returns

An EventCategory with the wire value llm.

tool

pub fn tool() -> EventCategory

Referenced types: EventCategory

Tool invocation.

Returns

An EventCategory with the wire value tool.

retriever

pub fn retriever() -> EventCategory

Referenced types: EventCategory

Retrieval step.

Returns

An EventCategory with the wire value retriever.

embedder

pub fn embedder() -> EventCategory

Referenced types: EventCategory

Embedding-generation step.

Returns

An EventCategory with the wire value embedder.

reranker

pub fn reranker() -> EventCategory

Referenced types: EventCategory

Result reranking step.

Returns

An EventCategory with the wire value reranker.

guardrail

pub fn guardrail() -> EventCategory

Referenced types: EventCategory

Guardrail or validation step.

Returns

An EventCategory with the wire value guardrail.

evaluator

pub fn evaluator() -> EventCategory

Referenced types: EventCategory

Evaluation or scoring step.

Returns

An EventCategory with the wire value evaluator.

custom

pub fn custom() -> EventCategory

Referenced types: EventCategory

Vendor-defined custom category.

Returns

An EventCategory with the wire value custom.

unknown

pub fn unknown() -> EventCategory

Referenced types: EventCategory

Unknown or unclassified work.

Returns

An EventCategory with the wire value unknown.

new

pub fn new(value: impl Into<String>) -> EventCategory

Referenced types: Into, String, EventCategory

Create a category from an arbitrary producer-provided string.

Parameters
  • value: Wire category value to preserve.
Returns

An EventCategory containing value.

as_str

pub fn as_str(&self) -> &str

Referenced types: str

Return the string form serialized on the wire.

Returns

The category value as a string slice.

to_scope_type

pub fn to_scope_type(&self) -> ScopeType

Referenced types: ScopeType

Convert this category to the closest legacy scope type for internal adapters that still need span-kind classification.

Returns

The closest matching ScopeType, or ScopeType::Unknown when the category has no legacy equivalent.

Trait Implementations

impl Clone for EventCategory

impl Clone for EventCategory

Referenced types: Clone, EventCategory

clone

fn clone(&self) -> EventCategory

Referenced types: clone, EventCategory

clone_from

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

Referenced types: clone_from

impl Debug for EventCategory

impl Debug for EventCategory

Referenced types: Debug, EventCategory

fmt

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

Referenced types: fmt, Formatter, Result, (), Error

impl<'de> Deserialize<'de> for EventCategory

impl<'de> Deserialize<'de> for EventCategory

Referenced types: Deserialize, EventCategory

deserialize

fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventCategory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,

Referenced types: deserialize, Result, EventCategory, Deserializer, Error

impl From<&EventCategory> for ScopeType

impl From<&EventCategory> for ScopeType

Referenced types: From, EventCategory, ScopeType

from

fn from(value: &EventCategory) -> ScopeType

Referenced types: from, EventCategory, ScopeType

impl From<ScopeType> for EventCategory

impl From<ScopeType> for EventCategory

Referenced types: From, ScopeType, EventCategory

from

fn from(value: ScopeType) -> EventCategory

Referenced types: from, ScopeType, EventCategory

impl Hash for EventCategory

impl Hash for EventCategory

Referenced types: Hash, EventCategory

hash

fn hash<__H>(&self, state: &mut __H)where
__H: Hasher,

Referenced types: hash, &mut __H, Hasher

hash_slice

fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Self: Sized,

Referenced types: hash_slice, &mut H, Hasher, Sized

impl Ord for EventCategory

impl Ord for EventCategory

Referenced types: Ord, EventCategory

cmp

fn cmp(&self, other: &EventCategory) -> Ordering

Referenced types: cmp, EventCategory, Ordering

max

fn max(self, other: Self) -> Selfwhere
Self: Sized,

Referenced types: max, Sized

min

fn min(self, other: Self) -> Selfwhere
Self: Sized,

Referenced types: min, Sized

clamp

fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized,

Referenced types: clamp, Sized

impl PartialEq for EventCategory

impl PartialEq for EventCategory

Referenced types: PartialEq, EventCategory

eq

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

Referenced types: eq, EventCategory, bool

ne

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

Referenced types: ne, &Rhs, bool

impl PartialOrd for EventCategory

impl PartialOrd for EventCategory

Referenced types: PartialOrd, EventCategory

partial_cmp

fn partial_cmp(&self, other: &EventCategory) -> Option<Ordering>

Referenced types: partial_cmp, EventCategory, Option, Ordering

lt

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

Referenced types: lt, &Rhs, bool

le

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

Referenced types: le, &Rhs, bool

gt

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

Referenced types: gt, &Rhs, bool

ge

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

Referenced types: ge, &Rhs, bool

impl Serialize for EventCategory

impl Serialize for EventCategory

Referenced types: Serialize, EventCategory

serialize

fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,

Referenced types: serialize, Result, Serializer, Ok, Error

impl WireValue<String> for EventCategory

impl WireValue<String> for EventCategory

Referenced types: String, EventCategory

to_wire

fn to_wire(self) -> Result<String, ConversionError>

Referenced types: Result, String

from_wire

fn from_wire(value: String) -> Result<EventCategory, ConversionError>

Referenced types: String, Result, EventCategory

impl Eq for EventCategory

impl Eq for EventCategory

Referenced types: Eq, EventCategory

impl StructuralPartialEq for EventCategory

impl StructuralPartialEq for EventCategory

Referenced types: StructuralPartialEq, EventCategory