ToolUsage
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllA tool’s usage summary. Shown by the UI’s Tools screen.
public sealed record ToolUsage : IEquatable<ToolUsage>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”ToolUsage()
Section titled “ ToolUsage()”public ToolUsage()Properties
Section titled “Properties”AverageDurationMs
Section titled “ AverageDurationMs”The average duration (milliseconds). null if no call carries a duration.
public double? AverageDurationMs { get; init; }Property Value
Section titled “Property Value”ErrorRate
Section titled “ ErrorRate”The error rate among settled calls (0–1). null if there is no call.
public double? ErrorRate { get; }Property Value
Section titled “Property Value”FailedCalls
Section titled “ FailedCalls”The number of calls that errored.
public required long FailedCalls { get; init; }Property Value
Section titled “Property Value”LastCalledAt
Section titled “ LastCalledAt”The moment it was last called (UTC).
public DateTimeOffset? LastCalledAt { get; init; }Property Value
Section titled “Property Value”ToolName
Section titled “ ToolName”The tool name.
public required string ToolName { get; init; }Property Value
Section titled “Property Value”TotalCalls
Section titled “ TotalCalls”The total number of calls.
public required long TotalCalls { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(ToolUsage?)
Section titled “ Equals(ToolUsage?)”public bool Equals(ToolUsage? other)Parameters
Section titled “Parameters”other ToolUsage?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(ToolUsage?, ToolUsage?)
Section titled “ operator ==(ToolUsage?, ToolUsage?)”public static bool operator ==(ToolUsage? left, ToolUsage? right)Parameters
Section titled “Parameters”left ToolUsage?
right ToolUsage?
Returns
Section titled “Returns”operator !=(ToolUsage?, ToolUsage?)
Section titled “ operator !=(ToolUsage?, ToolUsage?)”public static bool operator !=(ToolUsage? left, ToolUsage? right)Parameters
Section titled “Parameters”left ToolUsage?
right ToolUsage?