pub struct ConstitutionRecommendation {
pub clauses: Vec<ConstitutionClause>,
pub rationale: Vec<String>,
}Expand description
Model advice about a constitution, before any human has looked at it.
Fields§
§clauses: Vec<ConstitutionClause>Proposed clauses. Always recorded as suggestions.
rationale: Vec<String>Bounded rationale lines, shown to the human during review. Advisory.
Implementations§
Source§impl ConstitutionRecommendation
impl ConstitutionRecommendation
Sourcepub fn from_untrusted_json(raw: &str) -> RecommendationParse
pub fn from_untrusted_json(raw: &str) -> RecommendationParse
Parse untrusted model output into a recommendation.
Reuses the same ingestion gate as UserConstitution::from_untrusted_json
— one parser, one sanitizer — and then discards everything except the
clause proposals, because a recommendation may not rewrite the user’s
existing prose fields behind their back.
Trait Implementations§
Source§impl Clone for ConstitutionRecommendation
impl Clone for ConstitutionRecommendation
Source§fn clone(&self) -> ConstitutionRecommendation
fn clone(&self) -> ConstitutionRecommendation
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 ConstitutionRecommendation
impl Debug for ConstitutionRecommendation
Source§impl Default for ConstitutionRecommendation
impl Default for ConstitutionRecommendation
Source§fn default() -> ConstitutionRecommendation
fn default() -> ConstitutionRecommendation
Returns the “default value” for a type. Read more
impl Eq for ConstitutionRecommendation
impl StructuralPartialEq for ConstitutionRecommendation
Auto Trait Implementations§
impl Freeze for ConstitutionRecommendation
impl RefUnwindSafe for ConstitutionRecommendation
impl Send for ConstitutionRecommendation
impl Sync for ConstitutionRecommendation
impl Unpin for ConstitutionRecommendation
impl UnsafeUnpin for ConstitutionRecommendation
impl UnwindSafe for ConstitutionRecommendation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.