pub enum ToolSpecError {
Show 13 variants
InvalidDescription,
InvalidSchema,
MissingEffects,
TooManyEffects,
InvalidTimeout,
UnsafeAutomaticRetry,
InvalidPromptHint,
InvalidLabel,
InvalidPromptSnippet,
InvalidPromptGuideline,
TooManyPromptGuidelines,
InvalidRenderer,
ModelProjection(ModelRequestError),
}Expand description
Error returned when constructing tool specifications.
Variants§
InvalidDescription
Description is empty, oversized, or contains a null character.
InvalidSchema
Input or output schema must be a bounded object schema.
MissingEffects
Tool must declare at least one effect.
TooManyEffects
Tool declares too many effects.
InvalidTimeout
Timeout is zero or above 24 hours.
UnsafeAutomaticRetry
Automatic retry is unsafe for non-idempotent execution.
InvalidPromptHint
Prompt hint is invalid.
InvalidLabel
Human-readable tool label is invalid.
InvalidPromptSnippet
Prompt snippet is invalid.
InvalidPromptGuideline
One prompt guideline is invalid.
TooManyPromptGuidelines
Prompt guideline collection exceeds documented bounds.
InvalidRenderer
Renderer selector is invalid.
ModelProjection(ModelRequestError)
Model projection rejected the tool definition.
Trait Implementations§
Source§impl Clone for ToolSpecError
impl Clone for ToolSpecError
Source§fn clone(&self) -> ToolSpecError
fn clone(&self) -> ToolSpecError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToolSpecError
impl Debug for ToolSpecError
Source§impl Display for ToolSpecError
impl Display for ToolSpecError
impl Eq for ToolSpecError
Source§impl Error for ToolSpecError
impl Error for ToolSpecError
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 ToolSpecError
impl PartialEq for ToolSpecError
impl StructuralPartialEq for ToolSpecError
Auto Trait Implementations§
impl Freeze for ToolSpecError
impl RefUnwindSafe for ToolSpecError
impl Send for ToolSpecError
impl Sync for ToolSpecError
impl Unpin for ToolSpecError
impl UnsafeUnpin for ToolSpecError
impl UnwindSafe for ToolSpecError
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