Skip to content
Tracon

TraconStructuredResponseOptions

Namespace Tracon · Assembly Tracon.Core.dll

Structured response validation settings.

public sealed class TraconStructuredResponseOptions

objectTraconStructuredResponseOptions

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

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

public TraconStructuredResponseOptions()

The configuration section name.

public const string SectionName = "Tracon:StructuredResponse"

string

Whether a run’s response is checked against the agent’s requested AgentResponseFormat before the run closes. Defaults to false: today’s behaviour (a response is never inspected after the model returns it) does not change unless a setup opts in.

public bool Enabled { get; set; }

bool

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.

public int MaxRepairAttempts { get; set; }

int