pub struct ResolutionRule {
pub condition: String,
pub priority: Vec<String>,
pub escalate_to: Option<String>,
pub max_authority: f64,
}Expand description
A resolution rule for when priorities conflict.
When an agent faces competing goals, resolution rules determine which goal takes precedence and when to escalate to humans.
Fields§
§condition: StringCondition that triggers this rule (e.g., “customer_sentiment < 0.3”)
priority: Vec<String>Ordered list of goal names to prioritize when condition matches
escalate_to: Option<String>Human role to escalate to (if any)
Maximum dollar value the agent can authorize under this rule
Trait Implementations§
Source§impl Clone for ResolutionRule
impl Clone for ResolutionRule
Source§fn clone(&self) -> ResolutionRule
fn clone(&self) -> ResolutionRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for ResolutionRule
impl ComposeSchema for ResolutionRule
Source§impl Debug for ResolutionRule
impl Debug for ResolutionRule
Source§impl<'de> Deserialize<'de> for ResolutionRule
impl<'de> Deserialize<'de> for ResolutionRule
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
Source§impl PartialEq for ResolutionRule
impl PartialEq for ResolutionRule
Source§impl Serialize for ResolutionRule
impl Serialize for ResolutionRule
Source§impl ToSchema for ResolutionRule
impl ToSchema for ResolutionRule
impl StructuralPartialEq for ResolutionRule
Auto Trait Implementations§
impl Freeze for ResolutionRule
impl RefUnwindSafe for ResolutionRule
impl Send for ResolutionRule
impl Sync for ResolutionRule
impl Unpin for ResolutionRule
impl UnwindSafe for ResolutionRule
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