Skip to content

WorkflowRunRequest

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The information needed to run a workflow.

public sealed record WorkflowRunRequest : IEquatable<WorkflowRunRequest>

objectWorkflowRunRequest

IEquatable<WorkflowRunRequest>

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

public WorkflowRunRequest()

The user message to feed into the graph.

public string? Message { get; init; }

string?

The run identifier. If given, the record is opened with this identifier; a streaming endpoint uses this to know the identifier before writing the first frame.

public Guid? RunId { get; init; }

Guid?

The execution session’s identifier. Generated if left empty.

public string? SessionId { get; init; }

string?

The value comes from the client and is untrusted input. Since checkpoints are grouped under this value, using it without validation means access to another execution’s state.

The name of the workflow to run.

public required string WorkflowName { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(WorkflowRunRequest? other)

other WorkflowRunRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(WorkflowRunRequest?, WorkflowRunRequest?)

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

left WorkflowRunRequest?

right WorkflowRunRequest?

bool

operator !=(WorkflowRunRequest?, WorkflowRunRequest?)

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

left WorkflowRunRequest?

right WorkflowRunRequest?

bool