pub struct ReviewRubric { /* private fields */ }Expand description
Stable, versioned instructions applied by an AgentReviewer.
Implementations§
Source§impl ReviewRubric
impl ReviewRubric
Sourcepub fn new(
name: impl Into<String>,
version: impl Into<String>,
instructions: impl Into<String>,
) -> Result<Self, WorkflowReviewError>
pub fn new( name: impl Into<String>, version: impl Into<String>, instructions: impl Into<String>, ) -> Result<Self, WorkflowReviewError>
Creates a validated reviewer rubric.
§Errors
Returns WorkflowReviewError::InvalidConfiguration when the name or
version is not a stable identifier, or when instructions are blank or
exceed 16 KiB.
Sourcepub fn instructions(&self) -> &str
pub fn instructions(&self) -> &str
Returns the trusted reviewer instructions.
Trait Implementations§
Source§impl Clone for ReviewRubric
impl Clone for ReviewRubric
Source§fn clone(&self) -> ReviewRubric
fn clone(&self) -> ReviewRubric
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 ReviewRubric
impl Debug for ReviewRubric
Source§impl<'de> Deserialize<'de> for ReviewRubric
impl<'de> Deserialize<'de> for ReviewRubric
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 ReviewRubric
Source§impl PartialEq for ReviewRubric
impl PartialEq for ReviewRubric
Source§impl Serialize for ReviewRubric
impl Serialize for ReviewRubric
impl StructuralPartialEq for ReviewRubric
Auto Trait Implementations§
impl Freeze for ReviewRubric
impl RefUnwindSafe for ReviewRubric
impl Send for ReviewRubric
impl Sync for ReviewRubric
impl Unpin for ReviewRubric
impl UnsafeUnpin for ReviewRubric
impl UnwindSafe for ReviewRubric
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.