pub struct DecisionLoopConfig { /* private fields */ }Expand description
Stable configuration shared by all turns in one decision loop.
Implementations§
Source§impl DecisionLoopConfig
impl DecisionLoopConfig
Sourcepub fn new(
planning: PlanningContext,
adaptation: AdaptationLimits,
experience: ExperiencePolicy,
max_action_cycles: u32,
) -> Result<Self, DecisionLoopError>
pub fn new( planning: PlanningContext, adaptation: AdaptationLimits, experience: ExperiencePolicy, max_action_cycles: u32, ) -> Result<Self, DecisionLoopError>
Creates a configuration with positive action-cycle bounds.
Sourcepub fn planning(self) -> PlanningContext
pub fn planning(self) -> PlanningContext
Returns planner utility, budget, and risk policy.
Sourcepub fn adaptation(self) -> AdaptationLimits
pub fn adaptation(self) -> AdaptationLimits
Returns adaptive transition limits.
Sourcepub fn experience(self) -> ExperiencePolicy
pub fn experience(self) -> ExperiencePolicy
Returns experience suppression policy.
Sourcepub fn max_action_cycles(self) -> u32
pub fn max_action_cycles(self) -> u32
Returns the maximum number of emitted action executions.
Trait Implementations§
Source§impl Clone for DecisionLoopConfig
impl Clone for DecisionLoopConfig
Source§fn clone(&self) -> DecisionLoopConfig
fn clone(&self) -> DecisionLoopConfig
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 moreimpl Copy for DecisionLoopConfig
Source§impl Debug for DecisionLoopConfig
impl Debug for DecisionLoopConfig
Source§impl<'de> Deserialize<'de> for DecisionLoopConfig
impl<'de> Deserialize<'de> for DecisionLoopConfig
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DecisionLoopConfig
Source§impl PartialEq for DecisionLoopConfig
impl PartialEq for DecisionLoopConfig
Source§impl Serialize for DecisionLoopConfig
impl Serialize for DecisionLoopConfig
impl StructuralPartialEq for DecisionLoopConfig
Auto Trait Implementations§
impl Freeze for DecisionLoopConfig
impl RefUnwindSafe for DecisionLoopConfig
impl Send for DecisionLoopConfig
impl Sync for DecisionLoopConfig
impl Unpin for DecisionLoopConfig
impl UnsafeUnpin for DecisionLoopConfig
impl UnwindSafe for DecisionLoopConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more