pub struct AcpUsage {
pub tool_name: String,
pub prompt_chars: usize,
pub response_chars: usize,
pub duration: Duration,
pub success: bool,
pub permission_requests: u32,
pub permissions_denied: u32,
}Expand description
Usage metrics from a single ACP agent invocation.
Fields§
§tool_name: StringName of the ACP agent tool that was invoked.
prompt_chars: usizeLength of the prompt sent (characters).
response_chars: usizeLength of the response received (characters).
duration: DurationWall-clock duration of the invocation.
success: boolWhether the invocation succeeded.
permission_requests: u32Number of permission requests received during this invocation.
permissions_denied: u32Number of permission requests that were denied.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AcpUsage
impl RefUnwindSafe for AcpUsage
impl Send for AcpUsage
impl Sync for AcpUsage
impl Unpin for AcpUsage
impl UnsafeUnpin for AcpUsage
impl UnwindSafe for AcpUsage
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