pub struct SimpleRuntime {
pub phase: String,
pub intent: String,
pub inbox_count: usize,
pub has_otp: bool,
pub has_threat: bool,
pub skill_name: String,
}Expand description
Simple in-memory implementation of AgentRuntime. Populated from pipeline results, updated during execution.
Fields§
§phase: String§intent: String§inbox_count: usize§has_otp: bool§has_threat: bool§skill_name: StringTrait Implementations§
Source§impl AgentRuntime for SimpleRuntime
impl AgentRuntime for SimpleRuntime
Source§fn skill_name(&self) -> &str
fn skill_name(&self) -> &str
Currently selected skill name (from classifier).
Source§fn inbox_count(&self) -> usize
fn inbox_count(&self) -> usize
Number of inbox files in current trial.
Source§fn has_threat(&self) -> bool
fn has_threat(&self) -> bool
Whether any inbox file has injection/threat signals.
Source§fn threat_score(&self, _path: &str) -> f32
fn threat_score(&self, _path: &str) -> f32
Threat score for a specific file (0.0 = safe, 1.0 = attack).
Source§fn sender_trust(&self, _email: &str) -> SenderTrust
fn sender_trust(&self, _email: &str) -> SenderTrust
Sender trust level for an email address.
Source§fn context_summary(&self) -> String
fn context_summary(&self) -> String
Structured summary for think tool context injection.
Source§impl Default for SimpleRuntime
impl Default for SimpleRuntime
Source§fn default() -> SimpleRuntime
fn default() -> SimpleRuntime
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimpleRuntime
impl RefUnwindSafe for SimpleRuntime
impl Send for SimpleRuntime
impl Sync for SimpleRuntime
impl Unpin for SimpleRuntime
impl UnsafeUnpin for SimpleRuntime
impl UnwindSafe for SimpleRuntime
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