pub struct BehaviorTracker { /* private fields */ }Expand description
Tracks call sequences per session.
Implementations§
Source§impl BehaviorTracker
impl BehaviorTracker
Sourcepub async fn record_call(
&self,
session_id: Uuid,
tool_name: String,
method: String,
operation_type: OperationType,
)
pub async fn record_call( &self, session_id: Uuid, tool_name: String, method: String, operation_type: OperationType, )
Record a tool call for a session.
Sourcepub async fn get_records(&self, session_id: Uuid) -> Vec<CallRecord>
pub async fn get_records(&self, session_id: Uuid) -> Vec<CallRecord>
Get all call records for a session.
Sourcepub async fn clear_session(&self, session_id: Uuid)
pub async fn clear_session(&self, session_id: Uuid)
Remove records for a session (called on session close/cleanup).
Trait Implementations§
Source§impl Clone for BehaviorTracker
impl Clone for BehaviorTracker
Source§fn clone(&self) -> BehaviorTracker
fn clone(&self) -> BehaviorTracker
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 BehaviorTracker
impl !RefUnwindSafe for BehaviorTracker
impl Send for BehaviorTracker
impl Sync for BehaviorTracker
impl Unpin for BehaviorTracker
impl UnsafeUnpin for BehaviorTracker
impl !UnwindSafe for BehaviorTracker
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