Struct Tool Call

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

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

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

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

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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::Ok, __S::Error>where
    __S: Serializer,

impl StructuralPartialEq for ToolCall

impl StructuralPartialEq for ToolCall