pub struct ApprovalRequired {
pub tool_name: String,
pub args: Value,
pub reason: Option<String>,
pub tool_call_id: Option<String>,
}Expand description
Tool requires user approval before execution.
Fields§
§tool_name: StringTool name.
args: ValueTool arguments.
reason: Option<String>Reason approval is required.
tool_call_id: Option<String>Tool call ID.
Implementations§
Trait Implementations§
Source§impl Clone for ApprovalRequired
impl Clone for ApprovalRequired
Source§fn clone(&self) -> ApprovalRequired
fn clone(&self) -> ApprovalRequired
Returns a duplicate of the value. Read more
1.0.0 · 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 ApprovalRequired
impl Debug for ApprovalRequired
Source§impl<'de> Deserialize<'de> for ApprovalRequired
impl<'de> Deserialize<'de> for ApprovalRequired
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ApprovalRequired
impl Display for ApprovalRequired
Source§impl Error for ApprovalRequired
impl Error for ApprovalRequired
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 From<ApprovalRequired> for SerdesAiError
impl From<ApprovalRequired> for SerdesAiError
Source§fn from(source: ApprovalRequired) -> Self
fn from(source: ApprovalRequired) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ApprovalRequired
impl RefUnwindSafe for ApprovalRequired
impl Send for ApprovalRequired
impl Sync for ApprovalRequired
impl Unpin for ApprovalRequired
impl UnwindSafe for ApprovalRequired
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