pub enum AssistantTurnInputError {
MissingToolUse {
id: ToolCallId,
},
DuplicateToolUse {
id: ToolCallId,
},
ExtraToolUse {
id: ToolCallId,
},
MismatchedToolName {
id: ToolCallId,
expected: ToolName,
actual: ToolName,
},
MismatchedToolArguments {
id: ToolCallId,
expected: RawJson,
actual: RawJson,
},
}Variants§
MissingToolUse
Fields
§
id: ToolCallIdDuplicateToolUse
Fields
§
id: ToolCallIdExtraToolUse
Fields
§
id: ToolCallIdMismatchedToolName
MismatchedToolArguments
Trait Implementations§
Source§impl Clone for AssistantTurnInputError
impl Clone for AssistantTurnInputError
Source§fn clone(&self) -> AssistantTurnInputError
fn clone(&self) -> AssistantTurnInputError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssistantTurnInputError
impl Debug for AssistantTurnInputError
Source§impl Display for AssistantTurnInputError
impl Display for AssistantTurnInputError
Source§impl Error for AssistantTurnInputError
impl Error for AssistantTurnInputError
1.30.0 · 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()
Source§impl PartialEq for AssistantTurnInputError
impl PartialEq for AssistantTurnInputError
impl Eq for AssistantTurnInputError
impl StructuralPartialEq for AssistantTurnInputError
Auto Trait Implementations§
impl Freeze for AssistantTurnInputError
impl RefUnwindSafe for AssistantTurnInputError
impl Send for AssistantTurnInputError
impl Sync for AssistantTurnInputError
impl Unpin for AssistantTurnInputError
impl UnsafeUnpin for AssistantTurnInputError
impl UnwindSafe for AssistantTurnInputError
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