pub struct AgentPolicy {
pub agent_id: AgentId,
pub budget_limit: MoneyV1,
pub allowed_models: Vec<String>,
pub allowed_providers: Vec<String>,
pub priority: u8,
}Expand description
Policy constraining one agent’s model and provider access.
Fields§
§agent_id: AgentId§budget_limit: MoneyV1§allowed_models: Vec<String>§allowed_providers: Vec<String>§priority: u8Trait Implementations§
Source§impl Clone for AgentPolicy
impl Clone for AgentPolicy
Source§impl Debug for AgentPolicy
impl Debug for AgentPolicy
Source§impl<'de> Deserialize<'de> for AgentPolicy
impl<'de> Deserialize<'de> for AgentPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgentPolicy
Source§impl PartialEq for AgentPolicy
impl PartialEq for AgentPolicy
Source§impl Serialize for AgentPolicy
impl Serialize for AgentPolicy
impl StructuralPartialEq for AgentPolicy
Auto Trait Implementations§
impl Forget for AgentPolicy
impl Freeze for AgentPolicy
impl Move for AgentPolicy
impl RefUnwindSafe for AgentPolicy
impl Send for AgentPolicywhere
RawVecInner: Send,
impl Sync for AgentPolicywhere
RawVecInner: Sync,
impl Unpin for AgentPolicy
impl UnsafeUnpin for AgentPolicywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for AgentPolicywhere
RawVecInner: UnwindSafe,
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