Struct Tool Call

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 ToolCall {
    pub id: String,
    pub call_type: String,
    pub function: FunctionCall,
}

A tool call requested by the assistant.

Fields

id: String

Unique identifier for this tool call.

call_type: String

The type of tool call (typically "function").

function: FunctionCall

The function to call.

Trait Implementations

impl Clone for ToolCall

impl Clone for ToolCall

clone

fn clone(&self) -> ToolCall

clone_from

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

impl Debug for ToolCall

impl Debug for ToolCall

fmt

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

impl<'de> Deserialize<'de> for ToolCall

impl<'de> Deserialize<'de> for ToolCall

deserialize

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

impl PartialEq for ToolCall

impl PartialEq for ToolCall

eq

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

ne

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

impl Serialize for ToolCall

impl Serialize for ToolCall

serialize

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

impl StructuralPartialEq for ToolCall

impl StructuralPartialEq for ToolCall