.NET API
StructuredResponseValidationContext
Tracon.Abstractions.dllThe response an IStructuredResponseValidator checks.
public sealed record StructuredResponseValidationContext : IEquatable<StructuredResponseValidationContext>Inheritance
Section titled “Inheritance”object ← StructuredResponseValidationContext
Implements
Section titled “Implements”IEquatable<StructuredResponseValidationContext>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”StructuredResponseValidationContext()
Section titled “ StructuredResponseValidationContext()”public StructuredResponseValidationContext()Properties
Section titled “Properties”AgentName
Section titled “ AgentName”Gets the name of the agent that produced the response.
public required string AgentName { get; init; }Property Value
Section titled “Property Value”Gets the requested response format.
public required AgentResponseFormatKind Kind { get; init; }Property Value
Section titled “Property Value”Gets the model that produced the response, or null when unknown.
public string? Model { get; init; }Property Value
Section titled “Property Value”Provider
Section titled “ Provider”Gets the model provider that produced the response, or null when unknown.
public string? Provider { get; init; }Property Value
Section titled “Property Value”ResponseText
Section titled “ ResponseText”Gets the response text. Already confirmed non-empty and parseable as JSON — Tracon’s own well-formedness check runs before this validator is called.
public required string ResponseText { get; init; }Property Value
Section titled “Property Value”Gets the identity of the run.
public required Guid RunId { get; init; }Property Value
Section titled “Property Value”Schema
Section titled “ Schema”Gets the requested JSON schema. Populated only when StructuredResponseValidationContext.Kind is AgentResponseFormatKind.JsonSchema.
public JsonElement? Schema { get; init; }Property Value
Section titled “Property Value”SchemaName
Section titled “ SchemaName”Gets the name of the schema, if the agent’s definition supplied one.
public string? SchemaName { get; init; }Property Value
Section titled “Property Value”SessionId
Section titled “ SessionId”Gets the session the run belongs to. null for a sessionless run.
public string? SessionId { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(StructuredResponseValidationContext?)
Section titled “ Equals(StructuredResponseValidationContext?)”public bool Equals(StructuredResponseValidationContext? other)Parameters
Section titled “Parameters”other StructuredResponseValidationContext?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(StructuredResponseValidationContext?, StructuredResponseValidationContext?)
Section titled “ operator ==(StructuredResponseValidationContext?, StructuredResponseValidationContext?)”public static bool operator ==(StructuredResponseValidationContext? left, StructuredResponseValidationContext? right)Parameters
Section titled “Parameters”left StructuredResponseValidationContext?
right StructuredResponseValidationContext?
Returns
Section titled “Returns”operator !=(StructuredResponseValidationContext?, StructuredResponseValidationContext?)
Section titled “ operator !=(StructuredResponseValidationContext?, StructuredResponseValidationContext?)”public static bool operator !=(StructuredResponseValidationContext? left, StructuredResponseValidationContext? right)Parameters
Section titled “Parameters”left StructuredResponseValidationContext?
right StructuredResponseValidationContext?