pub struct FlowBuilder { /* private fields */ }Expand description
Builder for a Flow using the cemented verbs.
Implementations§
Source§impl FlowBuilder
impl FlowBuilder
Sourcepub fn after(self, dep: impl Into<String>) -> Self
pub fn after(self, dep: impl Into<String>) -> Self
Add a dependency (call multiple times for multiple deps).
Sourcepub fn ground(self, template: impl Into<String>) -> Self
pub fn ground(self, template: impl Into<String>) -> Self
A grounding template projected while active — a curated, State-
interpolated fact line that pins the model to known values. {key}
interpolates a value; {key?yes:no} picks by truthiness. See
render_ground.
Sourcepub fn before(self, a: impl Into<String>, b: impl Into<String>) -> Self
pub fn before(self, a: impl Into<String>, b: impl Into<String>) -> Self
Ordering invariant: a before b.
Sourcepub fn ambient<I, S>(self, tools: I) -> Self
pub fn ambient<I, S>(self, tools: I) -> Self
Exempt cross-cutting tools from every step’s allow whitelist.
Flow-level, and order-independent with respect to .step(..). Use it for
tools that serve the conversation rather than any one step of it —
memory recall, escalation, logging. A tool named here still obeys
deny, once and never(..).until(..); see Flow::ambient.
let flow = Flow::new()
.ambient(["recall_context"])
.step("book")
.allow(["book_table"])
.done(Guard::called_ok("book_table"))
.build()
.unwrap();
assert_eq!(flow.ambient, ["recall_context"]);Sourcepub fn never(self, tool: impl Into<String>) -> NeverBuilder
pub fn never(self, tool: impl Into<String>) -> NeverBuilder
Forbid a tool until a guard holds (never(tool).until(guard)).
Trait Implementations§
Source§impl Default for FlowBuilder
impl Default for FlowBuilder
Source§fn default() -> FlowBuilder
fn default() -> FlowBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FlowBuilder
impl !RefUnwindSafe for FlowBuilder
impl Send for FlowBuilder
impl Sync for FlowBuilder
impl Unpin for FlowBuilder
impl !UnwindSafe for FlowBuilder
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