pub struct IntentDef {
pub name: String,
pub goals: Vec<String>,
pub resolution_rules: Vec<ResolutionRule>,
pub autonomy_level: AutonomyLevel,
pub delegation_boundaries: DelegationBoundary,
pub alignment_signals: Vec<AlignmentSignal>,
pub drift_threshold: f64,
}Expand description
Intent definition – machine-readable organizational purpose.
An intent encodes what an organization wants an agent to achieve, how it should handle conflicts, and what boundaries it must respect.
Fields§
§name: StringUnique name for this intent (e.g., “customer_success”)
goals: Vec<String>Ordered list of goal names the agent should pursue
resolution_rules: Vec<ResolutionRule>Rules for resolving conflicting priorities
autonomy_level: AutonomyLevelHow much autonomy the agent has
delegation_boundaries: DelegationBoundaryWhat the agent can and cannot do
alignment_signals: Vec<AlignmentSignal>Data points that indicate successful alignment
drift_threshold: f64Threshold below which drift alert fires (0.0-1.0)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IntentDef
impl<'de> Deserialize<'de> for IntentDef
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 StructuralPartialEq for IntentDef
Auto Trait Implementations§
impl Freeze for IntentDef
impl RefUnwindSafe for IntentDef
impl Send for IntentDef
impl Sync for IntentDef
impl Unpin for IntentDef
impl UnwindSafe for IntentDef
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