WebhookEventPayload
AgentPrism.Abstractions.dllThe JSON body of a webhook request.
public sealed record WebhookEventPayload : IEquatable<WebhookEventPayload>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<WebhookEventPayload>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”This payload carries only a summary:
identifier, status, agent, tokens, cost. Message content and model
responses never sit here. A recipient that needs content
calls GET {prefix}/api/runs/{id}.
The reason has two layers: (1) the payload goes to an external system and
must not carry sensitive data; (2) the same text is also stored in the
webhook_deliveries.payload column — if it carried content, the
database backup would carry sensitive data too.
Constructors
Section titled “Constructors”WebhookEventPayload()
Section titled “ WebhookEventPayload()”public WebhookEventPayload()Properties
Section titled “Properties”Approval
Section titled “ Approval”The approval summary. Populated on approval.pending and workflow.request.pending events.
public WebhookApprovalSummary? Approval { get; init; }Property Value
Section titled “Property Value”DeliveryId
Section titled “ DeliveryId”The delivery identifier. Filled in by the publisher.
public string? DeliveryId { get; init; }Property Value
Section titled “Property Value”The event name. Filled in by the publisher.
public string? Event { get; init; }Property Value
Section titled “Property Value”The job summary. Populated on job.* events.
public WebhookJobSummary? Job { get; init; }Property Value
Section titled “Property Value”OccurredAt
Section titled “ OccurredAt”The moment the event occurred (UTC). Filled in by the publisher.
public DateTimeOffset? OccurredAt { get; init; }Property Value
Section titled “Property Value”The quota summary. Populated on the quota.threshold event.
public WebhookQuotaSummary? Quota { get; init; }Property Value
Section titled “Property Value”The run summary. Populated on run.* events.
public WebhookRunSummary? Run { get; init; }Property Value
Section titled “Property Value”The score window summary. Populated on the run.score.low event.
public WebhookScoreSummary? Score { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”The tenant identifier. Filled in by the publisher.
public string? TenantId { 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(WebhookEventPayload?)
Section titled “ Equals(WebhookEventPayload?)”public bool Equals(WebhookEventPayload? other)Parameters
Section titled “Parameters”other WebhookEventPayload?
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 ==(WebhookEventPayload?, WebhookEventPayload?)
Section titled “ operator ==(WebhookEventPayload?, WebhookEventPayload?)”public static bool operator ==(WebhookEventPayload? left, WebhookEventPayload? right)Parameters
Section titled “Parameters”left WebhookEventPayload?
right WebhookEventPayload?
Returns
Section titled “Returns”operator !=(WebhookEventPayload?, WebhookEventPayload?)
Section titled “ operator !=(WebhookEventPayload?, WebhookEventPayload?)”public static bool operator !=(WebhookEventPayload? left, WebhookEventPayload? right)Parameters
Section titled “Parameters”left WebhookEventPayload?
right WebhookEventPayload?