Struct Response Tool Call
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 ResponseToolCall {
pub id: String,
pub name: String,
pub arguments: Value,
}
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: Value
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<(), Error>
impl<'de> Deserialize<'de> for ResponseToolCall
impl<'de> Deserialize<'de> for ResponseToolCall
deserialize
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResponseToolCall, <__D as Deserializer<'de>>::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 as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ResponseToolCall
impl StructuralPartialEq for ResponseToolCall