pub enum ToolActionPreflight {
NoProposal,
Proposal(ActionProposal),
Outcome(ToolExecutionOutcome),
}Expand description
Result of a tool action preflight/proposal hook.
Mutating tools use this hook before runtime policy decides whether execution is allowed. Most tools return a proposal or no proposal. Tools may return a durable failed outcome for provider-supplied argument errors discovered during preflight, so the model receives actionable feedback instead of an infrastructure failure.
Variants§
NoProposal
The tool did not provide deterministic proposal evidence.
Proposal(ActionProposal)
The tool provided proposal evidence for policy review.
Outcome(ToolExecutionOutcome)
The tool preflight produced a durable tool outcome.
Trait Implementations§
Source§impl Clone for ToolActionPreflight
impl Clone for ToolActionPreflight
Source§impl Debug for ToolActionPreflight
impl Debug for ToolActionPreflight
impl Eq for ToolActionPreflight
Source§impl PartialEq for ToolActionPreflight
impl PartialEq for ToolActionPreflight
impl StructuralPartialEq for ToolActionPreflight
Auto Trait Implementations§
impl Forget for ToolActionPreflight
impl Freeze for ToolActionPreflightwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<WorkspacePatchChangeEvidence>: Freeze,
PhantomData<String>: Freeze,
*const ToolOutput is !null: Freeze,
PhantomData<ToolOutput>: Freeze,
PhantomData<UserImageInput>: Freeze,
&'static str: Freeze,
impl Move for ToolActionPreflight
impl RefUnwindSafe for ToolActionPreflight
impl Send for ToolActionPreflight
impl Sync for ToolActionPreflight
impl Unpin for ToolActionPreflight
impl UnsafeUnpin for ToolActionPreflightwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<WorkspacePatchChangeEvidence>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ToolOutput is !null: UnsafeUnpin,
PhantomData<ToolOutput>: UnsafeUnpin,
PhantomData<UserImageInput>: UnsafeUnpin,
&'static str: UnsafeUnpin,
impl UnwindSafe for ToolActionPreflightwhere
RawVecInner: UnwindSafe,
BoxRaw<ToolOutput>: UnwindSafe,
Arc<[u8]>: UnwindSafe,
&'static str: UnwindSafe,
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
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,
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.