pub struct Budget {
pub tokens: Option<u64>,
pub cost_microusd: Option<u64>,
pub duration: Option<Duration>,
pub turns: Option<u64>,
pub tool_calls: Option<u64>,
pub delegations: Option<u64>,
}Expand description
Hard limits applied to a run tree.
Fields§
§tokens: Option<u64>Maximum model tokens.
cost_microusd: Option<u64>Maximum cost in micro-US-dollars.
duration: Option<Duration>Maximum wall-clock duration attributed to work.
turns: Option<u64>Maximum agent turns.
tool_calls: Option<u64>Maximum tool calls.
delegations: Option<u64>Maximum agent delegations.
Implementations§
Trait Implementations§
impl Copy for Budget
Source§impl<'de> Deserialize<'de> for Budget
impl<'de> Deserialize<'de> for Budget
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 Budget
impl StructuralPartialEq for Budget
Auto Trait Implementations§
impl Freeze for Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl UnwindSafe for Budget
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