# RunJudgeContext

> 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.runjudgecontext/
> Summary: RunJudgeContext: The limited context supplied to a judge.

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

The limited context supplied to a judge.

```csharp
public sealed record RunJudgeContext : IEquatable<RunJudgeContext>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.runjudgecontext/">RunJudgeContext</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;RunJudgeContext&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 output is non-empty but can contain only whitespace. Tool names are distinct.

This type does not include tool arguments or results, intermediate steps, run status, duration, errors, message identifiers, or session history.

## Constructors

### <a id="Tracon_RunJudgeContext__ctor"></a> RunJudgeContext\(\)

```csharp
public RunJudgeContext()
```

## Properties

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

The name of the agent that ran.

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

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

The run's input.

```csharp
public required IReadOnlyList<ChatMessage> Input { get; init; }
```

#### Property Value

 [IReadOnlyList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist\-1)<ChatMessage\>

#### Remarks

Read from `run_inputs` ([IRunInputStore](/api/tracon.iruninputstore/));
if no record exists, the run is not sampled and this type is never produced.

### <a id="Tracon_RunJudgeContext_Output"></a> Output

The run's output text.

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

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

The identifier of the run being scored.

```csharp
public required Guid RunId { get; init; }
```

#### Property Value

 [Guid](https://learn.microsoft.com/dotnet/api/system.guid)

### <a id="Tracon_RunJudgeContext_TenantId"></a> TenantId

The tenant the run belongs to.

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

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

The distinct tool names called by the run.

```csharp
public IReadOnlyList<string> ToolNames { get; init; }
```

#### Property Value

 [IReadOnlyList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist\-1)<[string](https://learn.microsoft.com/dotnet/api/system.string)\>

## Methods

### <a id="Tracon_RunJudgeContext_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_RunJudgeContext_Equals_Tracon_RunJudgeContext_"></a> Equals\(RunJudgeContext?\)

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

`other` [RunJudgeContext](/api/tracon.runjudgecontext/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_RunJudgeContext_op_Equality_Tracon_RunJudgeContext_Tracon_RunJudgeContext_"></a> operator ==\(RunJudgeContext?, RunJudgeContext?\)

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

`left` [RunJudgeContext](/api/tracon.runjudgecontext/)?

`right` [RunJudgeContext](/api/tracon.runjudgecontext/)?

#### Returns

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

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

`left` [RunJudgeContext](/api/tracon.runjudgecontext/)?

`right` [RunJudgeContext](/api/tracon.runjudgecontext/)?

#### Returns

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