pub trait ProposedAction: Send + Sync {
// Required methods
fn action_id(&self) -> &str;
fn agent_id(&self) -> &str;
fn proposed_at(&self) -> DateTime<Utc>;
fn state_deltas(&self) -> &[StateDelta];
fn priority(&self) -> ActionPriority;
}Expand description
Trait representing an action proposed by an agent for safety certification.
Object-safe: can be used as dyn ProposedAction.
Required Methods§
Sourcefn proposed_at(&self) -> DateTime<Utc>
fn proposed_at(&self) -> DateTime<Utc>
When the action was proposed.
Sourcefn state_deltas(&self) -> &[StateDelta]
fn state_deltas(&self) -> &[StateDelta]
State deltas this action would cause.
Sourcefn priority(&self) -> ActionPriority
fn priority(&self) -> ActionPriority
Priority level.