pub struct ToolContext { /* private fields */ }Expand description
Execution scope for one tool invocation.
Implementations§
Source§impl ToolContext
impl ToolContext
Sourcepub const fn invocation_id(&self) -> InvocationId
pub const fn invocation_id(&self) -> InvocationId
Returns the invocation identity.
Sourcepub const fn cancellation(&self) -> &CancellationToken
pub const fn cancellation(&self) -> &CancellationToken
Returns the hierarchical cancellation token.
Sourcepub fn artifact_store(&self) -> Option<&Arc<dyn ArtifactStore>>
pub fn artifact_store(&self) -> Option<&Arc<dyn ArtifactStore>>
Returns the configured artifact store for producing reference-only rich results.
Sourcepub const fn artifact_scope(&self) -> Option<&ArtifactScope>
pub const fn artifact_scope(&self) -> Option<&ArtifactScope>
Returns the mandatory isolation scope paired with the artifact store.
Trait Implementations§
Source§impl Clone for ToolContext
impl Clone for ToolContext
Source§fn clone(&self) -> ToolContext
fn clone(&self) -> ToolContext
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ToolContext
impl !UnwindSafe for ToolContext
impl Freeze for ToolContext
impl Send for ToolContext
impl Sync for ToolContext
impl Unpin for ToolContext
impl UnsafeUnpin for ToolContext
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