.NET API
NonTokenUsageRecord
Tracon.Abstractions.dllOne non-token item a workflow function node reported: the persistent record behind
GET /api/runs/{runId}/usage.
public sealed record NonTokenUsageRecord : IEquatable<NonTokenUsageRecord>- Inheritance
- object ← NonTokenUsageRecord
- Implements
- IEquatable<NonTokenUsageRecord>
- Inherited Members
- object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”A node reports with IWorkflowContext.ReportUsageAsync and every report is an
item. A retried node keeps the items of its failed attempts: the work was done and
the provider billed it.
Constructors
Section titled “Constructors”NonTokenUsageRecord()
Section titled “ NonTokenUsageRecord()”public NonTokenUsageRecord()Properties
Section titled “Properties”CreatedAt
Section titled “ CreatedAt”Gets the moment the item was reported (UTC).
public required DateTimeOffset CreatedAt { get; init; }Property Value
Section titled “Property Value”Gets the record id. A time-ordered UUID (v7).
public required Guid Id { get; init; }Property Value
Section titled “Property Value”NodeName
Section titled “ NodeName”Gets the name of the function node that reported the item, or null when the reporting code did not run inside a function node Tracon registered (a custom executor in a graph built in code, for example).
public string? NodeName { get; init; }Property Value
Section titled “Property Value”Gets the run the item belongs to.
public required Guid RunId { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Gets the EXPECTED tenant of the run. Defense in depth; when null no tenant check is made.
[JsonIgnore]public string? TenantId { get; init; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Write-side only, like ToolInvocationRecord.TenantId: it is the
WHERE guard of the insert, never a column, and is left out of the HTTP
contract.
Gets the measurement and its amount.
public required ToolCallUsage Usage { 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(NonTokenUsageRecord?)
Section titled “ Equals(NonTokenUsageRecord?)”public bool Equals(NonTokenUsageRecord? other)Parameters
Section titled “Parameters”other NonTokenUsageRecord?
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 ==(NonTokenUsageRecord?, NonTokenUsageRecord?)
Section titled “ operator ==(NonTokenUsageRecord?, NonTokenUsageRecord?)”public static bool operator ==(NonTokenUsageRecord? left, NonTokenUsageRecord? right)Parameters
Section titled “Parameters”left NonTokenUsageRecord?
right NonTokenUsageRecord?
Returns
Section titled “Returns”operator !=(NonTokenUsageRecord?, NonTokenUsageRecord?)
Section titled “ operator !=(NonTokenUsageRecord?, NonTokenUsageRecord?)”public static bool operator !=(NonTokenUsageRecord? left, NonTokenUsageRecord? right)Parameters
Section titled “Parameters”left NonTokenUsageRecord?
right NonTokenUsageRecord?