Skip to content
Tracon

WorkflowRespondRequest

Namespace Tracon · Assembly Tracon.Abstractions.dll

Represents a response to a pending request.

public sealed record WorkflowRespondRequest : IEquatable<WorkflowRespondRequest>
Inheritance
object ← WorkflowRespondRequest
Implements
IEquatable<WorkflowRespondRequest>
Inherited Members
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 version of the workflow’s stored definition to continue with. See WorkflowResumeRequest.DefinitionVersion: null continues with the version the waiting run recorded.

public int? DefinitionVersion { get; init; }

int?

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 whether an approval is remembered as a rule (“do not ask again”) for the agent and the tool.

public bool? Remember { get; init; }

bool?

Only for a WorkflowRequestForm.ToolApproval request, and only together with WorkflowRespondRequest.Approved set to true; any other use is refused.

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