pub struct ToolCallTracker { /* private fields */ }Expand description
Tracks tool calls to detect loops
Implementations§
Source§impl ToolCallTracker
impl ToolCallTracker
pub fn new() -> Self
Sourcepub fn record_call(
&mut self,
tool_name: &str,
args: &HashMap<String, JsonValue>,
result: &JsonValue,
)
pub fn record_call( &mut self, tool_name: &str, args: &HashMap<String, JsonValue>, result: &JsonValue, )
Record a tool call and its result
Trait Implementations§
Source§impl Clone for ToolCallTracker
impl Clone for ToolCallTracker
Source§fn clone(&self) -> ToolCallTracker
fn clone(&self) -> ToolCallTracker
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 moreSource§impl Debug for ToolCallTracker
impl Debug for ToolCallTracker
Source§impl Default for ToolCallTracker
impl Default for ToolCallTracker
Source§fn default() -> ToolCallTracker
fn default() -> ToolCallTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ToolCallTracker
impl RefUnwindSafe for ToolCallTracker
impl Send for ToolCallTracker
impl Sync for ToolCallTracker
impl Unpin for ToolCallTracker
impl UnwindSafe for ToolCallTracker
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