pub struct HumanInTheLoopAutoConfig {
pub allowed_tools: Vec<String>,
pub ask: Option<HumanInTheLoopAsk>,
}Expand description
What HumanInTheLoop::auto accepts (HumanInTheLoopAutoConfig): how the human is reached and
the calls that skip the decision entirely. The approval strategy is the mode’s to choose.
Fields§
§allowed_tools: Vec<String>Tools that run without approval, as in HumanInTheLoopConfig::allowed_tools.
ask: Option<HumanInTheLoopAsk>Collects answers inline, as in HumanInTheLoopConfig::ask.
Implementations§
Source§impl HumanInTheLoopAutoConfig
impl HumanInTheLoopAutoConfig
Sourcepub fn builder() -> HumanInTheLoopAutoConfigBuilder
pub fn builder() -> HumanInTheLoopAutoConfigBuilder
Create an instance of HumanInTheLoopAutoConfig using the builder syntax
Trait Implementations§
Source§impl Clone for HumanInTheLoopAutoConfig
impl Clone for HumanInTheLoopAutoConfig
Source§impl Debug for HumanInTheLoopAutoConfig
impl Debug for HumanInTheLoopAutoConfig
Source§impl Default for HumanInTheLoopAutoConfig
impl Default for HumanInTheLoopAutoConfig
Source§impl From<HumanInTheLoopAutoConfig> for HumanInTheLoopConfig
impl From<HumanInTheLoopAutoConfig> for HumanInTheLoopConfig
Source§fn from(config: HumanInTheLoopAutoConfig) -> Self
fn from(config: HumanInTheLoopAutoConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for HumanInTheLoopAutoConfig
impl !UnwindSafe for HumanInTheLoopAutoConfig
impl Freeze for HumanInTheLoopAutoConfig
impl Send for HumanInTheLoopAutoConfig
impl Sync for HumanInTheLoopAutoConfig
impl Unpin for HumanInTheLoopAutoConfig
impl UnsafeUnpin for HumanInTheLoopAutoConfig
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,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreCreates a shared type from an unshared type.