#[non_exhaustive]pub enum ModelToolCapabilitiesError {
UnsupportedHasCapabilities,
ZeroDefinitions,
ZeroCallsPerResponse,
MissingAutoChoice,
}Expand description
Invalid model tool capability declaration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnsupportedHasCapabilities
Unsupported tool calling carried active tool fields.
ZeroDefinitions
A supported binding accepted no tool definitions.
ZeroCallsPerResponse
A supported binding could emit no tool call.
MissingAutoChoice
Tool calling lacked its baseline automatic selection mode.
Trait Implementations§
Source§impl Clone for ModelToolCapabilitiesError
impl Clone for ModelToolCapabilitiesError
Source§impl Debug for ModelToolCapabilitiesError
impl Debug for ModelToolCapabilitiesError
Source§impl Display for ModelToolCapabilitiesError
impl Display for ModelToolCapabilitiesError
impl Eq for ModelToolCapabilitiesError
Source§impl Error for ModelToolCapabilitiesError
impl Error for ModelToolCapabilitiesError
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()
impl StructuralPartialEq for ModelToolCapabilitiesError
Auto Trait Implementations§
impl Forget for ModelToolCapabilitiesError
impl Freeze for ModelToolCapabilitiesError
impl Move for ModelToolCapabilitiesError
impl RefUnwindSafe for ModelToolCapabilitiesError
impl Send for ModelToolCapabilitiesError
impl Sync for ModelToolCapabilitiesError
impl Unpin for ModelToolCapabilitiesError
impl UnsafeUnpin for ModelToolCapabilitiesError
impl UnwindSafe for ModelToolCapabilitiesError
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