pub struct ToolResources {
pub timeout_ms: u64,
pub max_concurrent: u32,
pub rate_limit_per_min: Option<u32>,
pub estimated_tokens: Option<u32>,
}Fields§
§timeout_ms: u64§max_concurrent: u32§rate_limit_per_min: Option<u32>Advisory only in v1 — NOT enforced by dispatch. The only
enforced concurrency control is max_concurrent (a per-tool
semaphore in the atd-runtime registry). Adopters needing real
per-minute rate limiting compose their own limiter (e.g. the
governor crate) outside dispatch. A future SP may make this
field enforced; adopters relying on advisory-only behaviour should
re-audit when that lands. See architecture §10.7.
estimated_tokens: Option<u32>Trait Implementations§
Source§impl Clone for ToolResources
impl Clone for ToolResources
Source§fn clone(&self) -> ToolResources
fn clone(&self) -> ToolResources
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 moreSource§impl Debug for ToolResources
impl Debug for ToolResources
Source§impl<'de> Deserialize<'de> for ToolResources
impl<'de> Deserialize<'de> for ToolResources
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 ToolResources
impl RefUnwindSafe for ToolResources
impl Send for ToolResources
impl Sync for ToolResources
impl Unpin for ToolResources
impl UnsafeUnpin for ToolResources
impl UnwindSafe for ToolResources
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