pub struct AgentPolicy {
pub shell_stance: ShellStance,
pub token_ceiling: u64,
pub cost_ceiling_usd: f64,
pub allowed_skills: Vec<String>,
}Fields§
§shell_stance: ShellStance§token_ceiling: u64§cost_ceiling_usd: f64§allowed_skills: Vec<String>Implementations§
Source§impl AgentPolicy
impl AgentPolicy
pub fn permissive() -> Self
pub fn restrictive() -> Self
Trait Implementations§
Source§impl Clone for AgentPolicy
impl Clone for AgentPolicy
Source§fn clone(&self) -> AgentPolicy
fn clone(&self) -> AgentPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AgentPolicy
impl RefUnwindSafe for AgentPolicy
impl Send for AgentPolicy
impl Sync for AgentPolicy
impl Unpin for AgentPolicy
impl UnsafeUnpin for AgentPolicy
impl UnwindSafe for AgentPolicy
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