Skip to content

WorkflowGraphNode

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

Represents a node in the graph.

public sealed record WorkflowGraphNode : IEquatable<WorkflowGraphNode>

objectWorkflowGraphNode

IEquatable<WorkflowGraphNode>

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

The identifier matches the Text field of the ExecutorInvoked / ExecutorCompleted / ExecutorFailed events arriving during a run exactly; this lets the UI highlight nodes live.

public WorkflowGraphNode()

Gets the agent’s name if the node represents an agent; otherwise null.

public string? AgentName { get; init; }

string?

Gets the Microsoft Agent Framework executor type. For debugging.

public string? ExecutorType { get; init; }

string?

Gets the executor identifier.

public required string Id { get; init; }

string

Gets the node’s role.

public required WorkflowNodeKind Kind { get; init; }

WorkflowNodeKind

Gets the short label shown in the UI.

public required string Label { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(WorkflowGraphNode? other)

other WorkflowGraphNode?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(WorkflowGraphNode?, WorkflowGraphNode?)

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

left WorkflowGraphNode?

right WorkflowGraphNode?

bool

operator !=(WorkflowGraphNode?, WorkflowGraphNode?)

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

left WorkflowGraphNode?

right WorkflowGraphNode?

bool