pub struct AdvisorGate { /* private fields */ }Expand description
Advisor review gate: executor turns pass through until the first terminal turn, which a stronger advisor reviews once per scope budget (APPROVE releases it, REDO feeds the plan back and re-invokes the executor).
Implementations§
Source§impl AdvisorGate
impl AdvisorGate
Trait Implementations§
Source§impl Algorithm for AdvisorGate
impl Algorithm for AdvisorGate
Source§fn name(&self) -> &str
fn name(&self) -> &str
Stable, low-cardinality name identifying this algorithm — the
algorithm attribute on every span, metric, and log line the crate
emits for its runs.Source§fn route<'async_trait>(
self: Arc<Self>,
driver: Driver,
request: Request,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
fn route<'async_trait>(
self: Arc<Self>,
driver: Driver,
request: Request,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
Run one request to completion: make model calls with
Driver::call_model,
publish Decisions with Driver::decide, and return the final Response.
The method an algorithm implements; run_stream drives it.Source§fn run_stream(self: Arc<Self>, request: Request) -> StepStream
fn run_stream(self: Arc<Self>, request: Request) -> StepStream
Auto Trait Implementations§
impl !Freeze for AdvisorGate
impl !RefUnwindSafe for AdvisorGate
impl Send for AdvisorGate
impl Sync for AdvisorGate
impl Unpin for AdvisorGate
impl UnsafeUnpin for AdvisorGate
impl UnwindSafe for AdvisorGate
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