#[non_exhaustive]pub struct ApprovalRequest<'a> {
pub tool_use_id: &'a str,
pub tool_name: &'a str,
pub kind: Option<ToolKind>,
pub input: &'a Value,
}Expand description
The pre-dispatch view of one tool call — what the studied UIs render their permission prompts from (request args, not host-resolved detail).
#[non_exhaustive] so richer context can be added without breaking
downstream constructors — only the engine builds one.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tool_use_id: &'a strThe tool_use id (pairs the decision to the call).
tool_name: &'a strThe client-facing tool name the model called.
kind: Option<ToolKind>The registry’s cross-pack classification, when the tool is known — lets an approver auto-allow read-only kinds without knowing names.
input: &'a ValueThe raw arguments the model supplied.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ApprovalRequest<'a>
impl<'a> RefUnwindSafe for ApprovalRequest<'a>
impl<'a> Send for ApprovalRequest<'a>
impl<'a> Sync for ApprovalRequest<'a>
impl<'a> Unpin for ApprovalRequest<'a>
impl<'a> UnsafeUnpin for ApprovalRequest<'a>
impl<'a> UnwindSafe for ApprovalRequest<'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