Struct ResolutionRule
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§
§impl Clone for ResolutionRule
impl Clone for ResolutionRule
§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 more§impl Debug for ResolutionRule
impl Debug for ResolutionRule
§impl<'de> Deserialize<'de> for ResolutionRule
impl<'de> Deserialize<'de> for ResolutionRule
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResolutionRule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResolutionRule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for ResolutionRule
impl PartialEq for ResolutionRule
§impl Serialize for ResolutionRule
impl Serialize for ResolutionRule
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§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