# WorkflowGraphNode

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/api/tracon.workflowgraphnode/
> Summary: WorkflowGraphNode: Represents a node in the graph.

<div class="api-provenance">Namespace Tracon · Assembly <code>Tracon.Abstractions.dll</code></div>

Represents a node in the graph.

```csharp
public sealed record WorkflowGraphNode : IEquatable<WorkflowGraphNode>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.workflowgraphnode/">WorkflowGraphNode</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;WorkflowGraphNode&gt;</a></dd><dt>Inherited Members</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a></dd></dl>

## Remarks

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

## Constructors

### <a id="Tracon_WorkflowGraphNode__ctor"></a> WorkflowGraphNode\(\)

```csharp
public WorkflowGraphNode()
```

## Properties

### <a id="Tracon_WorkflowGraphNode_AgentName"></a> AgentName

Gets the agent's name if the node represents an agent; otherwise
[null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null).

```csharp
public string? AgentName { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)?

### <a id="Tracon_WorkflowGraphNode_ExecutorType"></a> ExecutorType

Gets the Microsoft Agent Framework executor type. For debugging.

```csharp
public string? ExecutorType { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)?

### <a id="Tracon_WorkflowGraphNode_Id"></a> Id

Gets the executor identifier.

```csharp
public required string Id { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="Tracon_WorkflowGraphNode_Kind"></a> Kind

Gets the node's role.

```csharp
public required WorkflowNodeKind Kind { get; init; }
```

#### Property Value

 [WorkflowNodeKind](/api/tracon.workflownodekind/)

### <a id="Tracon_WorkflowGraphNode_Label"></a> Label

Gets the short label shown in the UI.

```csharp
public required string Label { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Methods

### <a id="Tracon_WorkflowGraphNode_Equals_System_Object_"></a> Equals\(object?\)

```csharp
public override bool Equals(object? obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_WorkflowGraphNode_Equals_Tracon_WorkflowGraphNode_"></a> Equals\(WorkflowGraphNode?\)

```csharp
public bool Equals(WorkflowGraphNode? other)
```

#### Parameters

`other` [WorkflowGraphNode](/api/tracon.workflowgraphnode/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_WorkflowGraphNode_GetHashCode"></a> GetHashCode\(\)

```csharp
public override int GetHashCode()
```

#### Returns

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="Tracon_WorkflowGraphNode_ToString"></a> ToString\(\)

```csharp
public override string ToString()
```

#### Returns

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Operators

### <a id="Tracon_WorkflowGraphNode_op_Equality_Tracon_WorkflowGraphNode_Tracon_WorkflowGraphNode_"></a> operator ==\(WorkflowGraphNode?, WorkflowGraphNode?\)

```csharp
public static bool operator ==(WorkflowGraphNode? left, WorkflowGraphNode? right)
```

#### Parameters

`left` [WorkflowGraphNode](/api/tracon.workflowgraphnode/)?

`right` [WorkflowGraphNode](/api/tracon.workflowgraphnode/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_WorkflowGraphNode_op_Inequality_Tracon_WorkflowGraphNode_Tracon_WorkflowGraphNode_"></a> operator \!=\(WorkflowGraphNode?, WorkflowGraphNode?\)

```csharp
public static bool operator !=(WorkflowGraphNode? left, WorkflowGraphNode? right)
```

#### Parameters

`left` [WorkflowGraphNode](/api/tracon.workflowgraphnode/)?

`right` [WorkflowGraphNode](/api/tracon.workflowgraphnode/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)
