pub struct InvalidArgsCtx<'a> {
pub tool_name: &'a str,
pub missing_fields: Vec<String>,
pub raw_args: &'a str,
pub schema: Option<&'a Value>,
}Expand description
A tool call whose JSON arguments parse but omit fields the tool’s schema declares as required.
Distinct from ToolErrorAction: this describes a malformed call, not
a failed execution. The tool is never invoked, so ToolErrorRecovery is
not involved and no side effect happens.
Fields§
§tool_name: &'a strName of the tool the model tried to call.
missing_fields: Vec<String>Required fields absent from the arguments object.
raw_args: &'a strThe raw arguments JSON produced by the model.
schema: Option<&'a Value>The tool’s input schema as declared to the model.
Trait Implementations§
Source§impl<'a> Clone for InvalidArgsCtx<'a>
impl<'a> Clone for InvalidArgsCtx<'a>
Auto Trait Implementations§
impl<'a> Forget for InvalidArgsCtx<'a>
impl<'a> Freeze for InvalidArgsCtx<'a>
impl<'a> Move for InvalidArgsCtx<'a>
impl<'a> RefUnwindSafe for InvalidArgsCtx<'a>
impl<'a> Send for InvalidArgsCtx<'a>
impl<'a> Sync for InvalidArgsCtx<'a>
impl<'a> Unpin for InvalidArgsCtx<'a>
impl<'a> UnsafeUnpin for InvalidArgsCtx<'a>
impl<'a> UnwindSafe for InvalidArgsCtx<'a>
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