WorkflowPendingRequest
AgentPrism.Abstractions.dllRepresents human input awaited by a workflow run.
public sealed record WorkflowPendingRequest : IEquatable<WorkflowPendingRequest>Inheritance
Section titled “Inheritance”object ← WorkflowPendingRequest
Implements
Section titled “Implements”IEquatable<WorkflowPendingRequest>
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”Pending requests are not stored in a separate table; they are read from the run’s RunEventType.WorkflowRequest events. The event stream is already append-only and tenant-filtered, so a second record path would duplicate data and risk divergence.
A response starts a new run. Responding to a pending
request resumes the run from its checkpoint and creates a new runs
row. Reopening the same row would violate the event stream’s append-only rule.
Constructors
Section titled “Constructors”WorkflowPendingRequest()
Section titled “ WorkflowPendingRequest()”public WorkflowPendingRequest()Properties
Section titled “Properties”Gets the input field the UI should display.
public required WorkflowRequestForm Form { get; init; }Property Value
Section titled “Property Value”PortId
Section titled “ PortId”Gets the identifier of the port that published the request. It maps to a graph node.
public required string PortId { get; init; }Property Value
Section titled “Property Value”Prompt
Section titled “ Prompt”Gets the request text shown to the user. For plan approval, this is the plan itself.
public string? Prompt { get; init; }Property Value
Section titled “Property Value”RequestId
Section titled “ RequestId”Gets the request identifier. Send this value when responding; the resumed execution matches it to the request published with the same id.
public required string RequestId { get; init; }Property Value
Section titled “Property Value”RequestType
Section titled “ RequestType”Gets the request data type name.
public string? RequestType { get; init; }Property Value
Section titled “Property Value”RequestedAt
Section titled “ RequestedAt”Gets the UTC time when the request was published.
public DateTimeOffset RequestedAt { get; init; }Property Value
Section titled “Property Value”ResponseType
Section titled “ ResponseType”Gets the expected response type name.
public string? ResponseType { get; init; }Property Value
Section titled “Property Value”Gets the identifier of the run that produced the request.
public required Guid RunId { 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(WorkflowPendingRequest?)
Section titled “ Equals(WorkflowPendingRequest?)”public bool Equals(WorkflowPendingRequest? other)Parameters
Section titled “Parameters”other WorkflowPendingRequest?
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 ==(WorkflowPendingRequest?, WorkflowPendingRequest?)
Section titled “ operator ==(WorkflowPendingRequest?, WorkflowPendingRequest?)”public static bool operator ==(WorkflowPendingRequest? left, WorkflowPendingRequest? right)Parameters
Section titled “Parameters”left WorkflowPendingRequest?
right WorkflowPendingRequest?
Returns
Section titled “Returns”operator !=(WorkflowPendingRequest?, WorkflowPendingRequest?)
Section titled “ operator !=(WorkflowPendingRequest?, WorkflowPendingRequest?)”public static bool operator !=(WorkflowPendingRequest? left, WorkflowPendingRequest? right)Parameters
Section titled “Parameters”left WorkflowPendingRequest?
right WorkflowPendingRequest?