pub struct VetRequest {
pub tool: String,
pub summary: String,
pub command: Option<String>,
pub path: Option<String>,
pub intent: Option<String>,
pub workdir: String,
pub turn: TurnId,
pub token: CancellationToken,
}Expand description
One action to vet, expressed in the classifier’s terms.
Fields§
§tool: String§summary: String§command: Option<String>§path: Option<String>§intent: Option<String>The user’s stated intent for the turn (latest user message), if known.
workdir: StringAbsolute working directory, for context.
turn: TurnId§token: CancellationTokenTurn cancellation — a Ctrl+C aborts the vet (which then fails safe).
Trait Implementations§
Source§impl Clone for VetRequest
impl Clone for VetRequest
Source§fn clone(&self) -> VetRequest
fn clone(&self) -> VetRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VetRequest
impl RefUnwindSafe for VetRequest
impl Send for VetRequest
impl Sync for VetRequest
impl Unpin for VetRequest
impl UnsafeUnpin for VetRequest
impl UnwindSafe for VetRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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