pub struct ApprovalPreview {
pub summary: String,
pub detail: Option<String>,
pub lexer: Option<&'static str>,
pub warning: Option<String>,
pub full: bool,
pub agent: Option<String>,
pub change: Option<FileChange>,
pub asker: Option<Box<Asker>>,
}Expand description
What the user is asked to approve.
Fields§
§summary: StringThe arguments as json.dumps, capped at [SUMMARY_LIMIT].
detail: Option<String>The tool’s own description of the effect, such as a unified diff.
lexer: Option<&'static str>What detail is written in (diff, bash, python), as Python’s lexer.
warning: Option<String>Beyond Python: a caution shown above the detail, for a write into agent86’s
own configuration or skills ([guarded_warning]).
full: boolBeyond Python: show the whole detail, never capped, because what is approved is all of it (a project specialty’s file, whose every line becomes prompt text).
agent: Option<String>Beyond Python: the specialist sub-agent asking (or, for a project specialty’s own approval, its name), so a surface can say who asks.
change: Option<FileChange>Beyond Python: the file text the call would change, before and after, for
a surface that shows a reviewable diff (an editor over ACP). Built from the
expanded call, then redacted, as detail is.
asker: Option<Box<Asker>>Beyond Python: the sub-agent the call comes from, with its card, worktree, and
spend so far, for a surface that shows who asks (an editor’s approval inbox).
None for the main agent’s calls.
Trait Implementations§
Source§impl Clone for ApprovalPreview
impl Clone for ApprovalPreview
Source§impl Debug for ApprovalPreview
impl Debug for ApprovalPreview
Source§impl PartialEq for ApprovalPreview
impl PartialEq for ApprovalPreview
impl StructuralPartialEq for ApprovalPreview
Auto Trait Implementations§
impl Forget for ApprovalPreview
impl Freeze for ApprovalPreview
impl Move for ApprovalPreview
impl RefUnwindSafe for ApprovalPreview
impl Send for ApprovalPreview
impl Sync for ApprovalPreview
impl Unpin for ApprovalPreview
impl UnsafeUnpin for ApprovalPreviewwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
*const Asker is !null: UnsafeUnpin,
PhantomData<Asker>: UnsafeUnpin,
impl UnwindSafe for ApprovalPreview
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
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more