StructuredOutputsClasses

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
public class MathReasoning
{
    public MathReasoningStep[] Steps { get; set; } = [];
    public string FinalAnswer { get; set; } = string.Empty;
}

public class MathReasoningStep
{
    public string Explanation { get; set; } = string.Empty;
    public string Output { get; set; } = string.Empty;
}