pub struct GateChain { /* private fields */ }Expand description
Composite of ordered gates (first Continue wins).
Implementations§
Source§impl GateChain
impl GateChain
Sourcepub fn from_agent(agent: &Agent) -> Self
pub fn from_agent(agent: &Agent) -> Self
Build default chain from agent definition (completion requirement if any).
Sourcepub fn evaluate(
&self,
agent: &Agent,
state: &dyn ConversationState,
retries_used: u32,
) -> GateDecision
pub fn evaluate( &self, agent: &Agent, state: &dyn ConversationState, retries_used: u32, ) -> GateDecision
Evaluate all gates.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GateChain
impl !UnwindSafe for GateChain
impl Freeze for GateChain
impl Send for GateChain
impl Sync for GateChain
impl Unpin for GateChain
impl UnsafeUnpin for GateChain
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