pub struct DiscoveredToolSession {
pub tool_id: String,
pub discovered_at: Instant,
pub ttl: Duration,
pub used: bool,
}Expand description
Per-session tracking of a discovered tool (Phase 34.3).
Fields§
§tool_id: StringThe tool’s unique identifier (server_id:tool_name).
discovered_at: InstantWhen this tool was discovered.
ttl: DurationHow long until this discovery expires.
used: boolWhether the agent has actually called this tool.
Implementations§
Source§impl DiscoveredToolSession
impl DiscoveredToolSession
Sourcepub fn is_expired(&self) -> bool
pub fn is_expired(&self) -> bool
Check whether this discovery has expired.
Trait Implementations§
Source§impl Clone for DiscoveredToolSession
impl Clone for DiscoveredToolSession
Source§fn clone(&self) -> DiscoveredToolSession
fn clone(&self) -> DiscoveredToolSession
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for DiscoveredToolSession
impl RefUnwindSafe for DiscoveredToolSession
impl Send for DiscoveredToolSession
impl Sync for DiscoveredToolSession
impl Unpin for DiscoveredToolSession
impl UnsafeUnpin for DiscoveredToolSession
impl UnwindSafe for DiscoveredToolSession
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