Class StructuredOutputConfig

  • All Implemented Interfaces:

    
    public final class StructuredOutputConfig<T extends Object>
    
                        

    A wrapper for BetaOutputConfig that provides a type-safe Builder that can record the outputType used to derive a JSON schema for the output format when using the Structured Outputs feature. Unlike passing only the output type to MessageCreateParams.Builder.outputConfig, this allows the other output configuration options (such as the effort level) to be set alongside the output type. See the SDK documentation for more details on Structured Outputs.