pub struct Reflection {
pub recent_logs: Vec<Cow<'static, str>>,
pub evaluation_fn: fn(&dyn Agent) -> Cow<'static, str>,
}Expand description
Introspection data that allows an agent to evaluate its own performance.
Fields§
§recent_logs: Vec<Cow<'static, str>>Rolling log of recent activities or observations.
evaluation_fn: fn(&dyn Agent) -> Cow<'static, str>A function that returns a natural-language assessment of the agent.
Trait Implementations§
Source§impl Clone for Reflection
impl Clone for Reflection
Source§impl Debug for Reflection
impl Debug for Reflection
Source§impl Default for Reflection
impl Default for Reflection
Source§impl PartialEq for Reflection
impl PartialEq for Reflection
Auto Trait Implementations§
impl Freeze for Reflection
impl RefUnwindSafe for Reflection
impl Send for Reflection
impl Sync for Reflection
impl Unpin for Reflection
impl UnsafeUnpin for Reflection
impl UnwindSafe for Reflection
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