Skip to content

InboundTrigger

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

An inbound trigger definition: an external event that starts a queued run.

public sealed record InboundTrigger : IEquatable<InboundTrigger>

objectInboundTrigger

IEquatable<InboundTrigger>

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

A trigger is identified on the wire by TenantId + Name (POST /api/triggers/{tenantId}/{name}). The caller authenticates with an HMAC signature over the request body, the same WebhookSigner contract the outbound webhooks use, in the reverse direction.

SigningSecretConfigurationName is the configuration KEY’S NAME, never the secret’s value. The value is resolved from IConfiguration at request time and is never written to a database or a file.

public InboundTrigger()

The creation time (UTC).

public required DateTimeOffset CreatedAt { get; init; }

DateTimeOffset

Whether the trigger accepts requests. A disabled trigger rejects every request.

public bool Enabled { get; init; }

bool

The trigger identifier.

public Guid Id { get; init; }

Guid

The trigger name, unique within the tenant.

public required string Name { get; init; }

string

How the request body becomes the run’s message.

public InboundTriggerPayloadMode PayloadMode { get; init; }

InboundTriggerPayloadMode

The dotted path used when InboundTrigger.PayloadMode is InboundTriggerPayloadMode.Path; otherwise null.

public string? PayloadPath { get; init; }

string?

The configuration KEY NAME of the signing secret. Never the value itself.

public required string SigningSecretConfigurationName { get; init; }

string

The kind of target the trigger starts.

public required InboundTriggerTargetKind TargetKind { get; init; }

InboundTriggerTargetKind

The agent or workflow name to run.

public required string TargetName { get; init; }

string

The tenant the trigger belongs to.

public required string TenantId { get; init; }

string

The last-updated time (UTC).

public required DateTimeOffset UpdatedAt { get; init; }

DateTimeOffset

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(InboundTrigger? other)

other InboundTrigger?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(InboundTrigger?, InboundTrigger?)

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

left InboundTrigger?

right InboundTrigger?

bool

operator !=(InboundTrigger?, InboundTrigger?)

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

left InboundTrigger?

right InboundTrigger?

bool