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<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl From<Value> for FunctionCallArguments
impl From<Value> for FunctionCallArguments
Source§impl PartialEq for FunctionCallArguments
impl PartialEq for FunctionCallArguments
Source§impl Serialize for FunctionCallArguments
impl Serialize for FunctionCallArguments
impl StructuralPartialEq for FunctionCallArguments
Auto Trait Implementations§
impl Freeze for FunctionCallArguments
impl RefUnwindSafe for FunctionCallArguments
impl Send for FunctionCallArguments
impl Sync for FunctionCallArguments
impl Unpin for FunctionCallArguments
impl UnsafeUnpin for FunctionCallArguments
impl UnwindSafe for FunctionCallArguments
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more