pub enum AssembleError {
MissingStart(usize),
InvalidJson {
index: usize,
source: Error,
},
}Expand description
A failure assembling streamed tool-call arguments.
Variants§
MissingStart(usize)
A fragment arrived for an index with no preceding ToolCallAssembler::begin.
InvalidJson
The accumulated argument buffer was not valid JSON.
Trait Implementations§
Source§impl Debug for AssembleError
impl Debug for AssembleError
Source§impl Display for AssembleError
impl Display for AssembleError
Source§impl Error for AssembleError
impl Error for AssembleError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for AssembleError
impl !UnwindSafe for AssembleError
impl Freeze for AssembleError
impl Send for AssembleError
impl Sync for AssembleError
impl Unpin for AssembleError
impl UnsafeUnpin for AssembleError
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
Mutably borrows from an owned value. Read more