pub struct AgentReviewer { /* private fields */ }Expand description
LLM-backed reviewer using a strict structured Runifold Agent.
Implementations§
Source§impl AgentReviewer
impl AgentReviewer
Sourcepub fn new(
agent: Agent,
rubric: ReviewRubric,
) -> Result<Self, WorkflowReviewError>
pub fn new( agent: Agent, rubric: ReviewRubric, ) -> Result<Self, WorkflowReviewError>
Creates an Agent-backed reviewer and installs the trusted rubric as a system instruction.
§Errors
Returns WorkflowReviewError::InvalidConfiguration when the derived
terminal-review identity cannot be represented safely.
Sourcepub const fn rubric(&self) -> &ReviewRubric
pub const fn rubric(&self) -> &ReviewRubric
Returns the versioned reviewer rubric.
Sourcepub const fn agent(&self) -> &StructuredAgent<AgentReviewDecision>
pub const fn agent(&self) -> &StructuredAgent<AgentReviewDecision>
Returns the structured reviewer Agent.
Trait Implementations§
Source§impl Clone for AgentReviewer
impl Clone for AgentReviewer
Source§fn clone(&self) -> AgentReviewer
fn clone(&self) -> AgentReviewer
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 moreSource§impl Debug for AgentReviewer
impl Debug for AgentReviewer
Source§impl TerminalReviewer for AgentReviewer
impl TerminalReviewer for AgentReviewer
Source§fn descriptor(&self) -> &TerminalReviewerDescriptor
fn descriptor(&self) -> &TerminalReviewerDescriptor
Returns the stable identity persisted into Agent checkpoints.
Source§fn review_terminal<'a>(
&'a self,
request: TerminalReviewRequest,
run: &'a RunContext,
) -> TerminalReviewFuture<'a>
fn review_terminal<'a>( &'a self, request: TerminalReviewRequest, run: &'a RunContext, ) -> TerminalReviewFuture<'a>
Reviews a candidate inside an explicitly attenuated child run.
Source§impl WorkflowReviewer for AgentReviewer
impl WorkflowReviewer for AgentReviewer
Source§fn review<'a>(
&'a self,
request: WorkflowReviewRequest,
run: &'a RunContext,
) -> WorkflowReviewFuture<'a>
fn review<'a>( &'a self, request: WorkflowReviewRequest, run: &'a RunContext, ) -> WorkflowReviewFuture<'a>
Reviews one candidate without owning remediation or retry policy.
Auto Trait Implementations§
impl !RefUnwindSafe for AgentReviewer
impl !UnwindSafe for AgentReviewer
impl Freeze for AgentReviewer
impl Send for AgentReviewer
impl Sync for AgentReviewer
impl Unpin for AgentReviewer
impl UnsafeUnpin for AgentReviewer
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> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> TurnReviewer for Twhere
T: TerminalReviewer + ?Sized,
impl<T> TurnReviewer for Twhere
T: TerminalReviewer + ?Sized,
Source§fn turn_descriptor(&self) -> &TerminalReviewerDescriptor
fn turn_descriptor(&self) -> &TerminalReviewerDescriptor
Returns the stable identity persisted into Agent checkpoints.
Source§fn review_turn<'a>(
&'a self,
request: TurnReviewRequest,
run: &'a RunContext,
) -> Pin<Box<dyn Future<Output = Result<TerminalReviewVerdict, TerminalReviewError>> + Send + 'a>>
fn review_turn<'a>( &'a self, request: TurnReviewRequest, run: &'a RunContext, ) -> Pin<Box<dyn Future<Output = Result<TerminalReviewVerdict, TerminalReviewError>> + Send + 'a>>
Reviews one model response inside an explicitly attenuated child run.