pub struct HumanInTheLoopConfig {
pub allowed_tools: Vec<String>,
pub classifier: Option<ClassifierConfig>,
pub enable_trust: Option<bool>,
pub evaluate_trust: Option<Evaluate>,
pub evaluate: Option<Evaluate>,
pub ask: Option<HumanInTheLoopAsk>,
}Expand description
Settings of a HumanInTheLoop (HumanInTheLoopConfig).
Fields§
§allowed_tools: Vec<String>Tools that run without approval. * allows every tool; a ! prefix makes a tool always
require approval, even under * or trust. Listed tools skip the classifier.
classifier: Option<ClassifierConfig>Decides which other tool calls need approval. Unset, all of them do.
enable_trust: Option<bool>A trust answer (t/trust by default) approves the call and remembers the tool in app
state for the session. Defaults to false. With a classifier, a trusted tool is no longer
classified.
evaluate_trust: Option<Evaluate>Recognizes a trust answer; read only with enable_trust. Defaults to t/trust
(case-insensitive).
evaluate: Option<Evaluate>Recognizes an approval. Defaults to true or y/yes (case-insensitive).
ask: Option<HumanInTheLoopAsk>Collects answers inline. Unset, the agent stops with an interrupt and resumes with the answer.
Implementations§
Source§impl HumanInTheLoopConfig
impl HumanInTheLoopConfig
Sourcepub fn builder() -> HumanInTheLoopConfigBuilder
pub fn builder() -> HumanInTheLoopConfigBuilder
Create an instance of HumanInTheLoopConfig using the builder syntax
Trait Implementations§
Source§impl Clone for HumanInTheLoopConfig
impl Clone for HumanInTheLoopConfig
Source§impl Debug for HumanInTheLoopConfig
impl Debug for HumanInTheLoopConfig
Source§impl Default for HumanInTheLoopConfig
impl Default for HumanInTheLoopConfig
Source§impl From<HumanInTheLoopAutoConfig> for HumanInTheLoopConfig
impl From<HumanInTheLoopAutoConfig> for HumanInTheLoopConfig
Source§fn from(config: HumanInTheLoopAutoConfig) -> Self
fn from(config: HumanInTheLoopAutoConfig) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for HumanInTheLoopConfig
impl !UnwindSafe for HumanInTheLoopConfig
impl Freeze for HumanInTheLoopConfig
impl Send for HumanInTheLoopConfig
impl Sync for HumanInTheLoopConfig
impl Unpin for HumanInTheLoopConfig
impl UnsafeUnpin for HumanInTheLoopConfig
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> 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> ⓘ
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