pub struct ToolRequirements {
pub max_memory: Option<u64>,
pub max_execution_time: Option<Duration>,
pub required_capabilities: Vec<String>,
pub requires_network: bool,
pub requires_filesystem: bool,
}
Expand description
Tool resource requirements
Fields§
§max_memory: Option<u64>
Maximum memory usage in bytes
max_execution_time: Option<Duration>
Maximum execution time allowed for tool calls
required_capabilities: Vec<String>
Required capabilities that must be available
requires_network: bool
Whether this tool requires network access
requires_filesystem: bool
Whether this tool requires file system access
Trait Implementations§
Source§impl Clone for ToolRequirements
impl Clone for ToolRequirements
Source§fn clone(&self) -> ToolRequirements
fn clone(&self) -> ToolRequirements
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ToolRequirements
impl Debug for ToolRequirements
Auto Trait Implementations§
impl Freeze for ToolRequirements
impl RefUnwindSafe for ToolRequirements
impl Send for ToolRequirements
impl Sync for ToolRequirements
impl Unpin for ToolRequirements
impl UnwindSafe for ToolRequirements
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