Skip to main content

StopGate

Trait StopGate 

Source
pub trait StopGate: Send + Sync {
    // Required method
    fn evaluate(
        &self,
        agent: &Agent,
        state: &dyn ConversationState,
        retries_used: u32,
    ) -> GateDecision;
}
Expand description

Extensible stop-gate. Gates run in order; first non-GateDecision::Complete wins.

Required Methods§

Source

fn evaluate( &self, agent: &Agent, state: &dyn ConversationState, retries_used: u32, ) -> GateDecision

Evaluate after a final assistant message is appended.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§