Class StructuredResponseCreateParams

  • All Implemented Interfaces:

    
    public final class StructuredResponseCreateParams<T extends Object>
    
                        

    A wrapper for ResponseCreateParams that provides a type-safe Builder that can record the responseType used to derive a JSON schema from an arbitrary class when using the Structured Outputs feature. When a JSON response is received, it is deserialized to am instance of that type. See the SDK documentation for more details on Structured Outputs.