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 LlmContentToolResult {
    pub id: Option<String>,
    pub call_id: Option<String>,
    pub name: Option<String>,
    pub is_error: Option<bool>,
    pub payload: Option<LlmContentPayload>,
}

Owned complete tool result, excluded from default text.

Fields

id: Option<String>

Source item identifier, if present.

call_id: Option<String>

Corresponding call identifier, if present.

name: Option<String>

Legacy function name, if present.

is_error: Option<bool>

Explicit provider error flag, if present.

payload: Option<LlmContentPayload>

Required complete result payload.

Implementations

impl LlmContentToolResult

impl LlmContentToolResult

id

pub fn id(&self) -> &str

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

call_id

pub fn call_id(&self) -> &str

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

name

pub fn name(&self) -> &str

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

is_error

pub fn is_error(&self) -> bool

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

Trait Implementations

impl Clone for LlmContentToolResult

impl Clone for LlmContentToolResult

clone

fn clone(&self) -> LlmContentToolResult

clone_from

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

impl Debug for LlmContentToolResult

impl Debug for LlmContentToolResult

fmt

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

impl Default for LlmContentToolResult

impl Default for LlmContentToolResult

default

fn default() -> Self

impl Message for LlmContentToolResult

impl Message for LlmContentToolResult

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 LlmContentToolResult

impl Name for LlmContentToolResult

NAME

const NAME: &'static str = "LlmContentToolResult"

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 LlmContentToolResult

impl PartialEq for LlmContentToolResult

eq

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

ne

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

impl WireValue<LlmContentToolResult> for SnapshotToolResult

impl WireValue<LlmContentToolResult> for SnapshotToolResult

to_wire

fn to_wire(self) -> Result<LlmContentToolResult>

from_wire

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

impl StructuralPartialEq for LlmContentToolResult

impl StructuralPartialEq for LlmContentToolResult