pub enum InvalidArgsAction {
Reissue {
message: String,
},
Stop {
message: String,
},
}Expand description
What the runtime should do after it rejects an argument-invalid call.
Variants§
Reissue
Feed the message back as the tool result and keep the run going so the model can re-issue the call with complete arguments.
Stop
Feed the message back as the tool result and end the run.
For applications that prefer invalid calls to fail loudly instead of silently retrying.
Trait Implementations§
Source§impl Clone for InvalidArgsAction
impl Clone for InvalidArgsAction
Source§impl Debug for InvalidArgsAction
impl Debug for InvalidArgsAction
impl Eq for InvalidArgsAction
Source§impl PartialEq for InvalidArgsAction
impl PartialEq for InvalidArgsAction
impl StructuralPartialEq for InvalidArgsAction
Auto Trait Implementations§
impl Forget for InvalidArgsAction
impl Freeze for InvalidArgsAction
impl Move for InvalidArgsAction
impl RefUnwindSafe for InvalidArgsAction
impl Send for InvalidArgsAction
impl Sync for InvalidArgsAction
impl Unpin for InvalidArgsAction
impl UnsafeUnpin for InvalidArgsAction
impl UnwindSafe for InvalidArgsAction
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
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§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.