pub struct ToolRuntimeSnapshot { /* private fields */ }Expand description
Narrow, read-only configuration snapshot available during tool execution.
The snapshot deliberately excludes mutable conversation, task, note, message,
event, usage, and lifecycle state. Tools that need coordinated mutation use
dedicated handles such as crate::AgentContextHandle until narrower
capability-specific handles replace them.
Implementations§
Source§impl ToolRuntimeSnapshot
impl ToolRuntimeSnapshot
Sourcepub const fn model_config(&self) -> &ModelConfig
pub const fn model_config(&self) -> &ModelConfig
Return the model limits relevant to media-producing tools.
Sourcepub const fn tool_config(&self) -> &ToolConfig
pub const fn tool_config(&self) -> &ToolConfig
Return the SDK tool policy and resource limits.
Sourcepub const fn shell_environment(&self) -> &BTreeMap<String, String>
pub const fn shell_environment(&self) -> &BTreeMap<String, String>
Return the base environment variables configured for shell tools.
Trait Implementations§
Source§impl Clone for ToolRuntimeSnapshot
impl Clone for ToolRuntimeSnapshot
Source§fn clone(&self) -> ToolRuntimeSnapshot
fn clone(&self) -> ToolRuntimeSnapshot
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 ToolRuntimeSnapshot
impl Debug for ToolRuntimeSnapshot
Source§impl Default for ToolRuntimeSnapshot
impl Default for ToolRuntimeSnapshot
Source§fn default() -> ToolRuntimeSnapshot
fn default() -> ToolRuntimeSnapshot
Returns the “default value” for a type. Read more
impl Eq for ToolRuntimeSnapshot
Source§impl PartialEq for ToolRuntimeSnapshot
impl PartialEq for ToolRuntimeSnapshot
impl StructuralPartialEq for ToolRuntimeSnapshot
Auto Trait Implementations§
impl Freeze for ToolRuntimeSnapshot
impl RefUnwindSafe for ToolRuntimeSnapshot
impl Send for ToolRuntimeSnapshot
impl Sync for ToolRuntimeSnapshot
impl Unpin for ToolRuntimeSnapshot
impl UnsafeUnpin for ToolRuntimeSnapshot
impl UnwindSafe for ToolRuntimeSnapshot
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