Struct Response Tool Call
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub struct ResponseToolCall {
pub id: String,
pub name: String,
pub arguments: Json,
}
A tool call requested by the model in its response.
Unlike the request-side ToolCall (which stores arguments as a JSON string per OpenAI convention), response tool calls store arguments as parsed Json. Codecs parse OpenAI’s string arguments during decode; Anthropic’s input is already parsed JSON.
Fields
id: String
Unique identifier for this tool call.
name: String
The function/tool name.
arguments: Json
The arguments as parsed JSON (not a string).
Trait Implementations
impl Clone for ResponseToolCall
impl Clone for ResponseToolCall
clone
fn clone(&self) -> ResponseToolCall
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for ResponseToolCall
impl Debug for ResponseToolCall
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for ResponseToolCall
impl<'de> Deserialize<'de> for ResponseToolCall
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl PartialEq for ResponseToolCall
impl PartialEq for ResponseToolCall
eq
fn eq(&self, other: &ResponseToolCall) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for ResponseToolCall
impl Serialize for ResponseToolCall
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for ResponseToolCall
impl StructuralPartialEq for ResponseToolCall