Skip to content

WorkflowRespondHttpRequest

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

Response to a pending human input request.

public sealed record WorkflowRespondHttpRequest : IEquatable<WorkflowRespondHttpRequest>

objectWorkflowRespondHttpRequest

IEquatable<WorkflowRespondHttpRequest>

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

Which field is read is determined by the port’s response type; the server reports this in the WorkflowPendingRequest.Form field. A response that cannot be translated is rejected with 400 — silently accepting a response of the wrong type would break execution at a point that is hard to understand.

public WorkflowRespondHttpRequest()

Yes/no response. In a plan approval, true approves the plan; false sends it back with the correction in the Text field.

public bool? Approved { get; init; }

bool?

Identifier of the checkpoint to resume. If left empty, the run’s most recent checkpoint is used.

public string? CheckpointId { get; init; }

string?

Free-form response body. Resolved against the port’s response type.

public JsonElement? Data { get; init; }

JsonElement?

Identifier of the request being answered.

public required string RequestId { get; init; }

string

Text response; in a plan approval this is the correction instruction.

public string? Text { get; init; }

string?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(WorkflowRespondHttpRequest? other)

other WorkflowRespondHttpRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(WorkflowRespondHttpRequest?, WorkflowRespondHttpRequest?)

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

left WorkflowRespondHttpRequest?

right WorkflowRespondHttpRequest?

bool

operator !=(WorkflowRespondHttpRequest?, WorkflowRespondHttpRequest?)

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

left WorkflowRespondHttpRequest?

right WorkflowRespondHttpRequest?

bool