pub struct ReActConfig {
pub slot: SlotName,
pub max_iterations: usize,
pub budget_scope: BudgetScope,
pub permissions: BTreeMap<String, Permission>,
}Expand description
Tuning for the built-in ReAct loop.
Fields§
§slot: SlotNameThe model slot the loop drives (resolved via the session’s slot bindings, ADR-006).
max_iterations: usizeMaximum provider turns per session (counted from the event stream,
so the budget survives episodes and restarts — the legacy scope).
With BudgetScope::PerEpisode (resident loops, ADR-024) the same
value bounds one episode instead.
budget_scope: BudgetScopeWhether the budget is lifetime-scoped (default) or per episode.
permissions: BTreeMap<String, Permission>Per-call tool permission table (ADR-015): tool name →
allow/deny. Absent = empty = allow-all, and with an empty
table the tool/call payload stays byte-identical to the legacy
shape (no provenance key at all). A non-empty table decides every
call — provenance rides the payload on allow, not only on deny.
Trait Implementations§
Source§impl Clone for ReActConfig
impl Clone for ReActConfig
Source§impl Debug for ReActConfig
impl Debug for ReActConfig
Auto Trait Implementations§
impl Forget for ReActConfig
impl Freeze for ReActConfig
impl Move for ReActConfig
impl RefUnwindSafe for ReActConfig
impl Send for ReActConfig
impl Sync for ReActConfig
impl Unpin for ReActConfig
impl UnsafeUnpin for ReActConfig
impl UnwindSafe for ReActConfig
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<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