pub struct ReActConfig {
pub slot: SlotName,
pub max_iterations: usize,
pub budget_scope: BudgetScope,
pub permissions: BTreeMap<String, Permission>,
pub vision: VisionBudget,
pub max_request_bytes: BTreeMap<String, u64>,
}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.
vision: VisionBudgetThe per-turn image budget (ADR-066). Applies only to the unsent tail; the default (4 references, 4 MiB) needs no configuration.
max_request_bytes: BTreeMap<String, u64>Declared byte bounds per provider name (ADR-072): the loop renders
the request the send would use and folds old turns when it would
exceed the bound, instead of persisting and sending a body the
provider seam (ADR-068) would refuse. Absent = no byte gate, so a
deployment that declares no providers.<name>.max_request_bytes
behaves exactly as before.
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 ReActConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, Permission> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Permission)>>: Freeze,
*const LeafNode<String, u64> is !null: Freeze,
PhantomData<Box<(String, u64)>>: Freeze,
impl Move for ReActConfig
impl RefUnwindSafe for ReActConfig
impl Send for ReActConfig
impl Sync for ReActConfig
impl Unpin for ReActConfig
impl UnsafeUnpin for ReActConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Permission> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Permission)>>: UnsafeUnpin,
*const LeafNode<String, u64> is !null: UnsafeUnpin,
PhantomData<Box<(String, u64)>>: UnsafeUnpin,
impl UnwindSafe for ReActConfigwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Permission>: UnwindSafe,
BTreeMap<String, u64>: 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
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> ⓘ
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