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 enum NormalizedStreamEvent {
TextDelta {
text: String,
},
ToolCallStart {
id: String,
name: String,
},
ToolCallArgumentsDelta {
id: String,
delta: String,
},
Finish {
reason: Option<String>,
},
Usage {
usage: Value,
},
Error {
error: Value,
},
}

Referenced types: String, Option, Value

Provider-neutral incremental stream item used by cross-protocol transcoders.

Variants

TextDelta

TextDelta

Assistant text delta.

Fields

text: String

Newly generated text.

ToolCallStart

ToolCallStart

Start of a function tool call.

Fields

id: String

Stable tool-call identifier.

name: String

Function name.

ToolCallArgumentsDelta

ToolCallArgumentsDelta

Incremental JSON arguments for a function tool call.

Fields

id: String

Stable tool-call identifier.

delta: String

Newly generated argument bytes.

Finish

Finish

Provider-reported terminal reason.

Fields

reason: Option<String>

Normalized or provider-native finish label.

Usage

Usage

Incremental or terminal usage object.

Fields

usage: Value

Provider-neutral usage JSON.

Error

Error

Provider stream error payload.

Fields

error: Value

Structured provider error.

Trait Implementations

impl Clone for NormalizedStreamEvent

impl Clone for NormalizedStreamEvent

Referenced types: Clone, NormalizedStreamEvent

clone

fn clone(&self) -> NormalizedStreamEvent

Referenced types: clone, NormalizedStreamEvent

clone_from

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

Referenced types: clone_from

impl Debug for NormalizedStreamEvent

impl Debug for NormalizedStreamEvent

Referenced types: Debug, NormalizedStreamEvent

fmt

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

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

impl<'de> Deserialize<'de> for NormalizedStreamEvent

impl<'de> Deserialize<'de> for NormalizedStreamEvent

Referenced types: Deserialize, NormalizedStreamEvent

deserialize

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

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

impl PartialEq for NormalizedStreamEvent

impl PartialEq for NormalizedStreamEvent

Referenced types: PartialEq, NormalizedStreamEvent

eq

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

Referenced types: eq, NormalizedStreamEvent, bool

ne

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

Referenced types: ne, &Rhs, bool

impl Serialize for NormalizedStreamEvent

impl Serialize for NormalizedStreamEvent

Referenced types: Serialize, NormalizedStreamEvent

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 StructuralPartialEq for NormalizedStreamEvent

impl StructuralPartialEq for NormalizedStreamEvent

Referenced types: StructuralPartialEq, NormalizedStreamEvent