pub enum UnparseableToolInput {
Drop,
EmptyObject,
Error,
Keep,
}Expand description
How the shared assembler treats an argument payload that does not parse as JSON when a streamed tool call’s input ends.
This is genuine wire-family policy, declared by the adapter on the end event rather than hand-rolled per provider.
Variants§
Drop
Drop the call silently: the input never fully arrived (the OpenAI-compatible end-of-stream flush of pending calls).
EmptyObject
Deliver the call with {} arguments: the wire superseded the call
mid-assembly (the OpenAI-compatible same-slot eviction path).
Error
Surface an in-band error item: the wire promised a complete block
(Anthropic content_block_stop, Bedrock contentBlockStop).
Keep
Leave the call open and emit nothing: the end was a completion probe (the OpenAI-compatible single-chunk immediate-emission path), and input that does not yet finalize may still be extended by later fragments and closed by a genuine flush.
Trait Implementations§
Source§impl Clone for UnparseableToolInput
impl Clone for UnparseableToolInput
Source§fn clone(&self) -> UnparseableToolInput
fn clone(&self) -> UnparseableToolInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for UnparseableToolInput
Source§impl Debug for UnparseableToolInput
impl Debug for UnparseableToolInput
impl Eq for UnparseableToolInput
Source§impl PartialEq for UnparseableToolInput
impl PartialEq for UnparseableToolInput
impl StructuralPartialEq for UnparseableToolInput
Auto Trait Implementations§
impl Freeze for UnparseableToolInput
impl RefUnwindSafe for UnparseableToolInput
impl Send for UnparseableToolInput
impl Sync for UnparseableToolInput
impl Unpin for UnparseableToolInput
impl UnsafeUnpin for UnparseableToolInput
impl UnwindSafe for UnparseableToolInput
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> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
impl<T> DebuggableStorage for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.