Struct Tool Invocation

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -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 ToolInvocation {
    pub tool_name: String,
    pub value: Option<JsonEnvelope>,
    pub tool_call_id: Option<String>,
}

Fields

tool_name: String

value: Option<JsonEnvelope>

tool_call_id: Option<String>

Provider-issued tool-call correlation identifier recorded on the managed tool call. Unset when the call did not record one, and unset for invocations that are not tool execution intercepts.

Implementations

impl ToolInvocation

impl ToolInvocation

tool_call_id

pub fn tool_call_id(&self) -> &str

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

Trait Implementations

impl Clone for ToolInvocation

impl Clone for ToolInvocation

clone

fn clone(&self) -> ToolInvocation

clone_from

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

impl Debug for ToolInvocation

impl Debug for ToolInvocation

fmt

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

impl Default for ToolInvocation

impl Default for ToolInvocation

default

fn default() -> Self

impl Hash for ToolInvocation

impl Hash for ToolInvocation

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 Message for ToolInvocation

impl Message for ToolInvocation

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 PartialEq for ToolInvocation

impl PartialEq for ToolInvocation

eq

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

ne

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

impl Eq for ToolInvocation

impl Eq for ToolInvocation

impl StructuralPartialEq for ToolInvocation

impl StructuralPartialEq for ToolInvocation