pub struct AgentReviewDecision {
pub kind: AgentReviewDecisionKind,
pub findings: Vec<ReviewFinding>,
pub reason: Option<String>,
}Expand description
Strict structured response produced by an AgentReviewer.
Fields§
§kind: AgentReviewDecisionKindVerdict kind.
findings: Vec<ReviewFinding>Actionable findings. Required only for repair.
reason: Option<String>Permanent rejection explanation. Required only for reject.
Implementations§
Source§impl AgentReviewDecision
impl AgentReviewDecision
Sourcepub fn repair(findings: Vec<ReviewFinding>) -> Result<Self, WorkflowReviewError>
pub fn repair(findings: Vec<ReviewFinding>) -> Result<Self, WorkflowReviewError>
Creates a repair decision with actionable findings.
§Errors
Returns WorkflowReviewError::InvalidDecision for empty or invalid findings.
Sourcepub fn reject(reason: impl Into<String>) -> Result<Self, WorkflowReviewError>
pub fn reject(reason: impl Into<String>) -> Result<Self, WorkflowReviewError>
Creates a permanent rejection.
§Errors
Returns WorkflowReviewError::InvalidDecision for a blank or oversized reason.
Trait Implementations§
Source§impl Clone for AgentReviewDecision
impl Clone for AgentReviewDecision
Source§fn clone(&self) -> AgentReviewDecision
fn clone(&self) -> AgentReviewDecision
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 AgentReviewDecision
impl Debug for AgentReviewDecision
Source§impl<'de> Deserialize<'de> for AgentReviewDecision
impl<'de> Deserialize<'de> for AgentReviewDecision
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgentReviewDecision
Source§impl JsonSchema for AgentReviewDecision
impl JsonSchema for AgentReviewDecision
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AgentReviewDecision
impl PartialEq for AgentReviewDecision
Source§impl Serialize for AgentReviewDecision
impl Serialize for AgentReviewDecision
impl StructuralPartialEq for AgentReviewDecision
Auto Trait Implementations§
impl Freeze for AgentReviewDecision
impl RefUnwindSafe for AgentReviewDecision
impl Send for AgentReviewDecision
impl Sync for AgentReviewDecision
impl Unpin for AgentReviewDecision
impl UnsafeUnpin for AgentReviewDecision
impl UnwindSafe for AgentReviewDecision
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.