Skip to content

WebhookRunSummary

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A run’s webhook summary.

public sealed record WebhookRunSummary : IEquatable<WebhookRunSummary>

objectWebhookRunSummary

IEquatable<WebhookRunSummary>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

public WebhookRunSummary()

The name of the agent that ran.

public string? AgentName { get; init; }

string?

The total amount. null if pricing is undefined — not zero.

public decimal? Cost { get; init; }

decimal?

The amount’s currency.

public string? Currency { get; init; }

string?

The duration (milliseconds).

public long? DurationMs { get; init; }

long?

The error message. Populated on the run.failed event.

public string? Error { get; init; }

string?

The input tokens.

public long? InputTokens { get; init; }

long?

The identifier of the model used.

public string? ModelId { get; init; }

string?

The output tokens.

public long? OutputTokens { get; init; }

long?

The tree root’s identifier. Equal to itself for the root run.

public string? RootRunId { get; init; }

string?

The run identifier.

public required string RunId { get; init; }

string

The session identifier.

public string? SessionId { get; init; }

string?

The final status.

public string? Status { get; init; }

string?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(WebhookRunSummary? other)

other WebhookRunSummary?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(WebhookRunSummary?, WebhookRunSummary?)

Section titled “ operator ==(WebhookRunSummary?, WebhookRunSummary?)”
public static bool operator ==(WebhookRunSummary? left, WebhookRunSummary? right)

left WebhookRunSummary?

right WebhookRunSummary?

bool

operator !=(WebhookRunSummary?, WebhookRunSummary?)

Section titled “ operator !=(WebhookRunSummary?, WebhookRunSummary?)”
public static bool operator !=(WebhookRunSummary? left, WebhookRunSummary? right)

left WebhookRunSummary?

right WebhookRunSummary?

bool