pub struct CostEstimate {
pub cpu_ns: u64,
pub memory_bytes: u64,
pub disk_bytes: u64,
pub network_bytes: u64,
pub expensive: bool,
}Expand description
Estimated resource cost for a tool call.
Fields§
§cpu_ns: u64Estimated CPU time in nanoseconds (0 = unknown)
memory_bytes: u64Estimated memory touched in bytes (0 = unknown)
disk_bytes: u64Estimated disk I/O in bytes (0 = unknown)
network_bytes: u64Estimated network I/O in bytes (0 = unknown)
expensive: boolWhether this tool is expensive enough to skip in Alpha/Theta modes
Trait Implementations§
Source§impl Clone for CostEstimate
impl Clone for CostEstimate
Source§impl Debug for CostEstimate
impl Debug for CostEstimate
Source§impl Default for CostEstimate
impl Default for CostEstimate
Source§impl<'de> Deserialize<'de> for CostEstimate
impl<'de> Deserialize<'de> for CostEstimate
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 CostEstimate
impl RefUnwindSafe for CostEstimate
impl Send for CostEstimate
impl Sync for CostEstimate
impl Unpin for CostEstimate
impl UnsafeUnpin for CostEstimate
impl UnwindSafe for CostEstimate
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