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.

#[repr(i32)]pub enum LlmContentField {
Unspecified = 0,
Content = 1,
Message = 2,
ToolCalls = 3,
ToolCallItem = 4,
Output = 5,
Value = 6,
NativeContent = 7,
NativeRefusal = 8,
NativeToolCalls = 9,
}

Field relative to a normalized root.

Variants

Unspecified = 0

Unspecified = 0

Invalid for a concrete location.

Content = 1

Content = 1

Message content or standalone content itself.

Message = 2

Message = 2

Response message field.

ToolCalls = 3

ToolCalls = 3

Separate assistant/response tool-call array.

ToolCallItem = 4

ToolCallItem = 4

A top-level tool-call item itself.

Output = 5

Output = 5

A top-level tool-result output field.

Value = 6

Value = 6

Opaque native value field.

NativeContent = 7

NativeContent = 7

Recognized native message content at value.content.

NativeRefusal = 8

NativeRefusal = 8

Separate native Chat assistant refusal at value.refusal.

NativeToolCalls = 9

NativeToolCalls = 9

Native Chat assistant tool calls at value.tool_calls.

Implementations

impl LlmContentField

impl LlmContentField

is_valid

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of LlmContentField.

from_i32

pub fn from_i32(value: i32) -> Option<LlmContentField>

Converts an i32 to a LlmContentField, or None if value is not a valid variant.

impl LlmContentField

impl LlmContentField

as_str_name

pub fn as_str_name(&self) -> &'static str

String value of the enum field names used in the ProtoBuf definition.

The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.

from_str_name

pub fn from_str_name(value: &str) -> Option<Self>

Creates an enum from field names used in the ProtoBuf definition.

Trait Implementations

impl Clone for LlmContentField

impl Clone for LlmContentField

clone

fn clone(&self) -> LlmContentField

clone_from

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

impl Debug for LlmContentField

impl Debug for LlmContentField

fmt

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

impl Default for LlmContentField

impl Default for LlmContentField

default

fn default() -> LlmContentField

impl From<LlmContentField> for i32

impl From<LlmContentField> for i32

from

fn from(value: LlmContentField) -> i32

impl Hash for LlmContentField

impl Hash for LlmContentField

hash

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

hash_slice

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

impl Ord for LlmContentField

impl Ord for LlmContentField

cmp

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

max

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

min

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

clamp

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

impl PartialEq for LlmContentField

impl PartialEq for LlmContentField

eq

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

ne

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

impl PartialOrd for LlmContentField

impl PartialOrd for LlmContentField

partial_cmp

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

lt

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

le

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

gt

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

ge

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

impl TryFrom<i32> for LlmContentField

impl TryFrom<i32> for LlmContentField

Error

type Error = UnknownEnumValue

try_from

fn try_from(value: i32) -> Result<LlmContentField, UnknownEnumValue>

impl Copy for LlmContentField

impl Copy for LlmContentField

impl Eq for LlmContentField

impl Eq for LlmContentField

impl StructuralPartialEq for LlmContentField

impl StructuralPartialEq for LlmContentField