Skip to content

WorkflowRespondRequest

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

Represents a response to a pending request.

public sealed record WorkflowRespondRequest : IEquatable<WorkflowRespondRequest>

objectWorkflowRespondRequest

IEquatable<WorkflowRespondRequest>

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

The fields are not mutually exclusive. The port response type determines which one is used. The request is rejected when no field converts to the expected type; silently accepting a response of the wrong type would fail execution at an opaque point.

public WorkflowRespondRequest()

Gets the yes/no response; for plan approval, it means “approve the plan”.

public bool? Approved { get; init; }

bool?

Gets the identifier of the checkpoint to resume. If null, the run’s most recent checkpoint is used.

public string? CheckpointId { get; init; }

string?

Gets the free-form JSON response. It is deserialized to the port response type.

public string? Json { get; init; }

string?

Gets the identifier of the new run. When supplied, recording starts with this id.

public Guid? NewRunId { get; init; }

Guid?

Gets the identifier of the request being responded to.

public required string RequestId { get; init; }

string

Gets the identifier of the run being responded to.

public required Guid RunId { get; init; }

Guid

Gets the text response; for plan approval, it is revision guidance.

public string? Text { get; init; }

string?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(WorkflowRespondRequest? other)

other WorkflowRespondRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(WorkflowRespondRequest?, WorkflowRespondRequest?)

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

left WorkflowRespondRequest?

right WorkflowRespondRequest?

bool

operator !=(WorkflowRespondRequest?, WorkflowRespondRequest?)

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

left WorkflowRespondRequest?

right WorkflowRespondRequest?

bool