pub struct AgentCostCap {
pub agent_id: String,
pub budget_caps: Vec<BudgetCap>,
pub token_cap: Option<TokenCap>,
}Expand description
Per-agent cost cap override.
Fields§
§agent_id: StringAgent identifier (matched against X-LLMTrace-Agent-ID header).
budget_caps: Vec<BudgetCap>Budget caps that override the defaults for this agent.
token_cap: Option<TokenCap>Token caps that override the defaults for this agent.
Trait Implementations§
Source§impl Clone for AgentCostCap
impl Clone for AgentCostCap
Source§fn clone(&self) -> AgentCostCap
fn clone(&self) -> AgentCostCap
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentCostCap
impl Debug for AgentCostCap
Source§impl<'de> Deserialize<'de> for AgentCostCap
impl<'de> Deserialize<'de> for AgentCostCap
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
Auto Trait Implementations§
impl Freeze for AgentCostCap
impl RefUnwindSafe for AgentCostCap
impl Send for AgentCostCap
impl Sync for AgentCostCap
impl Unpin for AgentCostCap
impl UnsafeUnpin for AgentCostCap
impl UnwindSafe for AgentCostCap
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