pub struct ToolCallCompletion {
pub completed_at: DateTime<Utc>,
pub success: bool,
pub error: Option<String>,
}Expand description
Information about a completed tool call.
This structure contains the completion details for a tool invocation, including when it finished, whether it succeeded, and any error information.
§Fields
completed_at: Timestamp when the tool finished executionsuccess: Whether the tool executed successfullyerror: Error message if the tool failed, None on success
§Example
ⓘ
use bamboo_agent::agent::metrics::storage::ToolCallCompletion;
use chrono::Utc;
let completion = ToolCallCompletion {
completed_at: Utc::now(),
success: true,
error: None,
};Fields§
§completed_at: DateTime<Utc>Timestamp when the tool call completed
success: boolWhether the tool execution succeeded
error: Option<String>Error message if execution failed, None on success
Trait Implementations§
Source§impl Clone for ToolCallCompletion
impl Clone for ToolCallCompletion
Source§fn clone(&self) -> ToolCallCompletion
fn clone(&self) -> ToolCallCompletion
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 Freeze for ToolCallCompletion
impl RefUnwindSafe for ToolCallCompletion
impl Send for ToolCallCompletion
impl Sync for ToolCallCompletion
impl Unpin for ToolCallCompletion
impl UnsafeUnpin for ToolCallCompletion
impl UnwindSafe for ToolCallCompletion
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