pub struct ToolInputEnd {
pub id: StreamPartId,
pub tool_id: Option<WireId>,
pub name: Option<String>,
pub arguments: Option<Value>,
pub call_id: Option<String>,
pub signature: Option<String>,
pub additional_params: Option<Value>,
pub on_unparseable: UnparseableToolInput,
}Expand description
End of a streamed tool call’s input: the signal for the shared assembler
(RawStreamingChoice::ToolInputEnd) to finalize the call.
Optional fields are authoritative wire values that supersede the assembled
state — a wire whose completed item restates the call (OpenAI Responses
output_item.done) carries them; delta-only wires leave them None and
the assembled fragments are parsed instead.
Fields§
§id: StreamPartIdAssembly identity: the id the call’s fragments were emitted under.
tool_id: Option<WireId>Authoritative provider-issued tool id, when one exists (e.g. an id
that arrived after the call opened id-less). The durable handle;
absence is None, never an empty string.
name: Option<String>Authoritative tool name from the wire’s completed item.
arguments: Option<Value>Authoritative parsed arguments from the wire’s completed item.
call_id: Option<String>Provider call-correlation id (e.g. OpenAI Responses call_id).
signature: Option<String>Provider signature attached to the completed call.
additional_params: Option<Value>Provider-specific metadata attached to the completed call.
on_unparseable: UnparseableToolInputWire-family policy for assembled arguments that fail to parse.
Implementations§
Source§impl ToolInputEnd
impl ToolInputEnd
Sourcepub fn new(
id: impl Into<StreamPartId>,
on_unparseable: UnparseableToolInput,
) -> Self
pub fn new( id: impl Into<StreamPartId>, on_unparseable: UnparseableToolInput, ) -> Self
End the call identified by id, finalizing from assembled fragments
with the given unparseable-input policy.
Trait Implementations§
Source§impl Clone for ToolInputEnd
impl Clone for ToolInputEnd
Source§fn clone(&self) -> ToolInputEnd
fn clone(&self) -> ToolInputEnd
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ToolInputEnd
impl RefUnwindSafe for ToolInputEnd
impl Send for ToolInputEnd
impl Sync for ToolInputEnd
impl Unpin for ToolInputEnd
impl UnsafeUnpin for ToolInputEnd
impl UnwindSafe for ToolInputEnd
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,
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