pub struct FunctionCallArguments(/* private fields */);Expand description
The wire form of a Responses function_call item’s arguments: the raw
string exactly as the provider sent it, parsed into JSON only at
consumption time.
The Responses wire genuinely emits arguments that are not valid JSON: a
turn cut by max_output_tokens mid-tool-call restates the call on
response.output_item.done (and in response.incomplete’s output[])
with the arguments truncated mid-JSON (e.g. "{\"") and item status
incomplete. Decoding the string eagerly (the old
json_utils::stringified_json field) rejected those frames wholesale, so
the stream classified them Corrupt instead of ending with a Length
terminal. Keeping the raw string makes the typed model accept what the
wire sends; whether a truncated call surfaces is decided by the settled
truncation policy at parse time (partial arguments never fabricate a
call).
Implementations§
Trait Implementations§
Source§impl Clone for FunctionCallArguments
impl Clone for FunctionCallArguments
Source§fn clone(&self) -> FunctionCallArguments
fn clone(&self) -> FunctionCallArguments
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FunctionCallArguments
impl Debug for FunctionCallArguments
Source§impl<'de> Deserialize<'de> for FunctionCallArguments
impl<'de> Deserialize<'de> for FunctionCallArguments
Source§fn deserialize<D>(
deserializer: D,
) -> Result<FunctionCallArguments, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<FunctionCallArguments, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl From<Value> for FunctionCallArguments
impl From<Value> for FunctionCallArguments
Source§fn from(value: Value) -> FunctionCallArguments
fn from(value: Value) -> FunctionCallArguments
Encode already-parsed arguments (Rig’s canonical tool-call form) in the wire’s stringified-JSON spelling.