pub enum ArgValidation {
Valid,
Invalid(String),
SchemaUnusable(String),
}Expand description
The outcome of checking one tool call’s arguments against its schema.
Variants§
Valid
The arguments satisfy the schema; dispatch the call.
Invalid(String)
The arguments violate the schema. Carries the complete refusal text
([error] invalid arguments for '<tool>': ...), ready to return as the
tool result. The [error] prefix is deliberate: it is already in the
dispatch layer’s no-effect prefix list, so a refused call is not
counted as work the agent did.
SchemaUnusable(String)
The schema itself would not compile, so nothing was checked. Carries the compile error for the caller to log; the call must still dispatch.
Trait Implementations§
Source§impl Clone for ArgValidation
impl Clone for ArgValidation
Source§fn clone(&self) -> ArgValidation
fn clone(&self) -> ArgValidation
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 ArgValidation
impl Debug for ArgValidation
impl Eq for ArgValidation
Source§impl PartialEq for ArgValidation
impl PartialEq for ArgValidation
impl StructuralPartialEq for ArgValidation
Auto Trait Implementations§
impl Freeze for ArgValidation
impl RefUnwindSafe for ArgValidation
impl Send for ArgValidation
impl Sync for ArgValidation
impl Unpin for ArgValidation
impl UnsafeUnpin for ArgValidation
impl UnwindSafe for ArgValidation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.