pub enum ToolRegistryError {
UnknownTool,
DuplicateTool,
VersionConflict,
HostedToolNameMismatch,
NoSupportedToolRoute {
tool: ToolName,
model: ModelId,
},
HostedToolNotClientExecutable,
ModelProjection(ModelRequestError),
Schema(SchemaCompilationError),
InvalidArguments(SchemaValidationFailure),
Resources(ToolResourceError),
}Expand description
Registry validation, conflict, or resource failure.
Variants§
UnknownTool
No active tool has this name.
DuplicateTool
Same name/version is already registered.
VersionConflict
Same name has another active version.
HostedToolNameMismatch
A hosted binding does not use its kind’s stable tool name.
NoSupportedToolRoute
The selected model supports neither the hosted nor client route.
Fields
HostedToolNotClientExecutable
A provider-hosted-only tool was sent to the client execution boundary.
ModelProjection(ModelRequestError)
A projected model definition violates model request bounds.
Schema(SchemaCompilationError)
Input/output schema cannot compile.
InvalidArguments(SchemaValidationFailure)
Arguments violate the registered input schema.
Resources(ToolResourceError)
Resource resolution failed.
Trait Implementations§
Source§impl Debug for ToolRegistryError
impl Debug for ToolRegistryError
Source§impl Display for ToolRegistryError
impl Display for ToolRegistryError
impl Eq for ToolRegistryError
Source§impl Error for ToolRegistryError
impl Error for ToolRegistryError
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 From<SchemaCompilationError> for ToolRegistryError
impl From<SchemaCompilationError> for ToolRegistryError
Source§fn from(source: SchemaCompilationError) -> Self
fn from(source: SchemaCompilationError) -> Self
Converts to this type from the input type.
Source§impl From<ToolResourceError> for ToolRegistryError
impl From<ToolResourceError> for ToolRegistryError
Source§fn from(source: ToolResourceError) -> Self
fn from(source: ToolResourceError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ToolRegistryError
impl PartialEq for ToolRegistryError
impl StructuralPartialEq for ToolRegistryError
Auto Trait Implementations§
impl Freeze for ToolRegistryError
impl RefUnwindSafe for ToolRegistryError
impl Send for ToolRegistryError
impl Sync for ToolRegistryError
impl Unpin for ToolRegistryError
impl UnsafeUnpin for ToolRegistryError
impl UnwindSafe for ToolRegistryError
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