#[non_exhaustive]pub enum ToolExecutionSemanticsError {
InvalidIdempotency {
risk: ToolRisk,
idempotency: ToolIdempotency,
},
ReadOnlyRecoverySupport {
status_query: bool,
compensation: bool,
},
}Expand description
Invalid tool side-effect and recovery semantics.
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.
InvalidIdempotency
The idempotency mechanism does not match the declared risk class.
Fields
§
idempotency: ToolIdempotencyConflicting repeated-invocation mechanism.
ReadOnlyRecoverySupport
A read-only tool declared write-recovery behavior.
Trait Implementations§
Source§impl Clone for ToolExecutionSemanticsError
impl Clone for ToolExecutionSemanticsError
Source§impl Debug for ToolExecutionSemanticsError
impl Debug for ToolExecutionSemanticsError
impl Eq for ToolExecutionSemanticsError
Source§impl Error for ToolExecutionSemanticsError
impl Error for ToolExecutionSemanticsError
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 ToolExecutionSemanticsError
Auto Trait Implementations§
impl Forget for ToolExecutionSemanticsError
impl Freeze for ToolExecutionSemanticsError
impl Move for ToolExecutionSemanticsError
impl RefUnwindSafe for ToolExecutionSemanticsError
impl Send for ToolExecutionSemanticsError
impl Sync for ToolExecutionSemanticsError
impl Unpin for ToolExecutionSemanticsError
impl UnsafeUnpin for ToolExecutionSemanticsError
impl UnwindSafe for ToolExecutionSemanticsError
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