Skip to navigation

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -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,
}

Referenced types: String, 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 and Gemini generateContent args are already parsed JSON objects. OpenAI Responses custom tool input remains a JSON string without parsing.

Fields

id: String

Unique identifier for this tool call.

name: String

The function/tool name.

arguments: Value

Tool input as JSON. Function arguments are parsed; custom free-form input remains a JSON string.

Trait Implementations

impl Clone for ResponseToolCall

impl Clone for ResponseToolCall

Referenced types: Clone, ResponseToolCall

clone

fn clone(&self) -> ResponseToolCall

Referenced types: clone, ResponseToolCall

clone_from

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

Referenced types: clone_from

impl Debug for ResponseToolCall

impl Debug for ResponseToolCall

Referenced types: Debug, ResponseToolCall

fmt

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

Referenced types: fmt, Formatter, Result, (), Error

impl<'de> Deserialize<'de> for ResponseToolCall

impl<'de> Deserialize<'de> for ResponseToolCall

Referenced types: Deserialize, ResponseToolCall

deserialize

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

Referenced types: deserialize, Result, ResponseToolCall, Deserializer, Error

impl PartialEq for ResponseToolCall

impl PartialEq for ResponseToolCall

Referenced types: PartialEq, ResponseToolCall

eq

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

Referenced types: eq, ResponseToolCall, bool

ne

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

Referenced types: ne, &Rhs, bool

impl Serialize for ResponseToolCall

impl Serialize for ResponseToolCall

Referenced types: Serialize, ResponseToolCall

serialize

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

Referenced types: serialize, Result, Serializer, Ok, Error

impl WireValue<Box<ResponseToolCall>> for ResponseToolCall

impl WireValue<Box<ResponseToolCall>> for ResponseToolCall

Referenced types: WireValue, Box, ResponseToolCall, ResponseToolCall

to_wire

fn to_wire(self) -> Result<Box<ResponseToolCall>, ConversionError>

Referenced types: to_wire, Result, Box, ResponseToolCall, ConversionError

from_wire

fn from_wire(
value: Box<ResponseToolCall>,
) -> Result<ResponseToolCall, ConversionError>

Referenced types: from_wire, Box, ResponseToolCall, Result, ResponseToolCall, ConversionError

impl WireValue<ResponseToolCall> for ResponseToolCall

impl WireValue<ResponseToolCall> for ResponseToolCall

Referenced types: WireValue, ResponseToolCall, ResponseToolCall

to_wire

fn to_wire(self) -> Result<ResponseToolCall, ConversionError>

Referenced types: to_wire, Result, ResponseToolCall, ConversionError

from_wire

fn from_wire(
value: ResponseToolCall,
) -> Result<ResponseToolCall, ConversionError>

Referenced types: from_wire, ResponseToolCall, Result, ResponseToolCall, ConversionError

impl StructuralPartialEq for ResponseToolCall

impl StructuralPartialEq for ResponseToolCall

Referenced types: StructuralPartialEq, ResponseToolCall