pub struct WorkflowSteerer { /* private fields */ }Expand description
Configurable workflow steerer used by the agentic loop.
Implementations§
Source§impl WorkflowSteerer
impl WorkflowSteerer
pub fn builtin() -> Self
pub fn from_workflows(workflows: Vec<WorkflowConfig>) -> Self
pub fn load_from_dir(dir: &Path) -> Self
Sourcepub fn load_default() -> Self
pub fn load_default() -> Self
Load user workflows from ~/.newt/workflows/.
Sourcepub fn plan_update_hint(&self, text: &str) -> Option<String>
pub fn plan_update_hint(&self, text: &str) -> Option<String>
Render a workflow hint for a plan-update stall.
Sourcepub fn delegate_hint(&self, text: &str, crew_available: bool) -> Option<String>
pub fn delegate_hint(&self, text: &str, crew_available: bool) -> Option<String>
A short hint recommending crew/team delegation, when the matching
workflow configures one AND sub-agent dispatch is available this
session (crew_available). Never returned when crew_available is
false, regardless of workflow match — there is nothing to delegate to.
Sourcepub fn progress_horizon(&self, text: &str) -> Option<usize>
pub fn progress_horizon(&self, text: &str) -> Option<usize>
The matching workflow’s round-cap grace “recent progress” horizon override, if any.
Trait Implementations§
Source§impl Clone for WorkflowSteerer
impl Clone for WorkflowSteerer
Source§fn clone(&self) -> WorkflowSteerer
fn clone(&self) -> WorkflowSteerer
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 moreAuto Trait Implementations§
impl Freeze for WorkflowSteerer
impl RefUnwindSafe for WorkflowSteerer
impl Send for WorkflowSteerer
impl Sync for WorkflowSteerer
impl Unpin for WorkflowSteerer
impl UnsafeUnpin for WorkflowSteerer
impl UnwindSafe for WorkflowSteerer
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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