# TraconStructuredResponseOptions

> 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.traconstructuredresponseoptions/
> Summary: TraconStructuredResponseOptions: Structured response validation settings.

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

Structured response validation settings.

```csharp
public sealed class TraconStructuredResponseOptions
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.traconstructuredresponseoptions/">TraconStructuredResponseOptions</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

Read from the `Tracon:StructuredResponse` configuration section. See
`TraconServiceCollectionExtensions.AddTracon`.

## Constructors

### <a id="Tracon_TraconStructuredResponseOptions__ctor"></a> TraconStructuredResponseOptions\(\)

```csharp
public TraconStructuredResponseOptions()
```

## Fields

### <a id="Tracon_TraconStructuredResponseOptions_SectionName"></a> SectionName

The configuration section name.

```csharp
public const string SectionName = "Tracon:StructuredResponse"
```

#### Field Value

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

### <a id="Tracon_TraconStructuredResponseOptions_Enabled"></a> Enabled

Whether a run's response is checked against the agent's requested
[AgentResponseFormat](/api/tracon.agentresponseformat/) before the run closes. Defaults to
[false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool): today's behaviour (a response is never
inspected after the model returns it) does not change unless a setup
opts in.

```csharp
public bool Enabled { get; set; }
```

#### Property Value

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

How many REPAIR turns may follow an invalid response. `0` (the
default) disables repair entirely: an invalid response fails the run
exactly as it does today. A value of `2` permits at most THREE
model calls in total — the original turn plus two repairs.

```csharp
public int MaxRepairAttempts { get; set; }
```

#### Property Value

 [int](https://learn.microsoft.com/dotnet/api/system.int32)
