pub struct RunLearning {
pub user_text: String,
pub persistence_allowed: bool,
pub intent_domains: Vec<String>,
pub tool_calls: Vec<String>,
pub errors: Vec<(String, bool)>,
pub first_error: Option<String>,
pub recovery_actions: Vec<String>,
pub completed_naturally: bool,
pub succeeded: Option<bool>,
}Expand description
What a finished run did, for learning.
Fields§
§user_text: String§persistence_allowed: boolFalse when the turn’s policy suppresses automatic memory: nothing is learned.
intent_domains: Vec<String>§tool_calls: Vec<String>"tool_name(summary)" per call, in order.
errors: Vec<(String, bool)>Each error, and whether the run recovered from it.
first_error: Option<String>The first error, for an error solution.
recovery_actions: Vec<String>§completed_naturally: bool§succeeded: Option<bool>The run’s own verdict on its task, when it has one: authoritative.
Implementations§
Source§impl RunLearning
impl RunLearning
Sourcepub fn task_success(&self) -> bool
pub fn task_success(&self) -> bool
Whether the run’s task succeeded: its typed verdict, else a natural completion with every error recovered. The words of the next user message are never a verdict on this task.
Trait Implementations§
Source§impl Clone for RunLearning
impl Clone for RunLearning
Source§impl Debug for RunLearning
impl Debug for RunLearning
Auto Trait Implementations§
impl Forget for RunLearning
impl Freeze for RunLearning
impl Move for RunLearning
impl RefUnwindSafe for RunLearning
impl Send for RunLearning
impl Sync for RunLearning
impl Unpin for RunLearning
impl UnsafeUnpin for RunLearning
impl UnwindSafe for RunLearning
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
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