#[non_exhaustive]pub enum AgentToolsError {
DuplicateName {
name: CapabilityName,
},
TooMany {
max: usize,
observed: usize,
},
Retired {
name: CapabilityName,
},
}Expand description
Invalid agent tool collection.
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.
DuplicateName
Two descriptors would expose the same name to the model.
Fields
§
name: CapabilityNameColliding registry-local name.
TooMany
The collection exceeded its hard count ceiling.
Fields
Retired
A retired tool cannot enter a new executable definition.
Fields
§
name: CapabilityNameRetired model-visible name.
Trait Implementations§
Source§impl Clone for AgentToolsError
impl Clone for AgentToolsError
Source§impl Debug for AgentToolsError
impl Debug for AgentToolsError
Source§impl Display for AgentToolsError
impl Display for AgentToolsError
impl Eq for AgentToolsError
Source§impl Error for AgentToolsError
impl Error for AgentToolsError
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 AgentToolsError
impl PartialEq for AgentToolsError
impl StructuralPartialEq for AgentToolsError
Auto Trait Implementations§
impl Forget for AgentToolsError
impl Freeze for AgentToolsError
impl Move for AgentToolsError
impl RefUnwindSafe for AgentToolsError
impl Send for AgentToolsError
impl Sync for AgentToolsError
impl Unpin for AgentToolsError
impl UnsafeUnpin for AgentToolsError
impl UnwindSafe for AgentToolsError
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