pub struct HELRuleEngine { /* private fields */ }
Expand description
HEL Rule Engine for managing AI-to-AI communication rules
Implementations§
Source§impl HELRuleEngine
impl HELRuleEngine
Sourcepub fn set_protocol(&mut self, protocol: Arc<OdinProtocol>)
pub fn set_protocol(&mut self, protocol: Arc<OdinProtocol>)
Set the protocol instance
Sourcepub async fn remove_rule(&self, rule_id: &str) -> Result<bool>
pub async fn remove_rule(&self, rule_id: &str) -> Result<bool>
Remove a rule from the engine
Sourcepub async fn list_rules(&self) -> Vec<Rule>
pub async fn list_rules(&self) -> Vec<Rule>
List all rules
Sourcepub async fn execute_rules(
&self,
message: &OdinMessage,
) -> Result<Vec<RuleExecutionResult>>
pub async fn execute_rules( &self, message: &OdinMessage, ) -> Result<Vec<RuleExecutionResult>>
Execute rules against a message
Sourcepub async fn clear_rules(&self) -> Result<()>
pub async fn clear_rules(&self) -> Result<()>
Clear all rules
Trait Implementations§
Source§impl Debug for HELRuleEngine
impl Debug for HELRuleEngine
Auto Trait Implementations§
impl Freeze for HELRuleEngine
impl !RefUnwindSafe for HELRuleEngine
impl Send for HELRuleEngine
impl Sync for HELRuleEngine
impl Unpin for HELRuleEngine
impl !UnwindSafe for HELRuleEngine
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