Structured Outputs (AOT)
Get structured JSON responses using a JsonTypeInfo for AOT/trimming compatibility.
This example assumes using tryAGI.OpenAI; is in scope and apiKey contains your tryAGI.OpenAI API key.
1 2 3 4 5 6 7 8 9 10 11 12 | |
Get structured JSON responses using a JsonTypeInfo for AOT/trimming compatibility.
This example assumes using tryAGI.OpenAI; is in scope and apiKey contains your tryAGI.OpenAI API key.
1 2 3 4 5 6 7 8 9 10 11 12 | |