Class RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Text.Builder
- 
                    
                    
- All Implemented Interfaces:
 
public final class RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Text.BuilderA builder for Text.
 
- 
                
                    
                    
- 
                                
                            
                                
Method Summary
- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
format
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Text.Builder format(ResponseFormatTextConfig format)
An object specifying the format that the model must output.
Configuring
{ "type": "json_schema" }enables Structured Outputs, which ensures the model will match your supplied JSON schema. Learn more in the Structured Outputs guide.The default format is
{ "type": "text" }with no additional options.Not recommended for gpt-4o and newer models:
Setting to
{ "type": "json_object" }enables the older JSON mode, which ensures the message the model generates is valid JSON. Usingjson_schemais preferred for models that support it. 
- 
                                        
format
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Text.Builder format(JsonField<ResponseFormatTextConfig> format)
Sets Builder.format to an arbitrary JSON value.
You should usually call Builder.format with a well-typed ResponseFormatTextConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
format
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Text.Builder format(ResponseFormatText text)
Alias for calling format with
ResponseFormatTextConfig.ofText(text). 
- 
                                        
format
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Text.Builder format(ResponseFormatTextJsonSchemaConfig jsonSchema)
Alias for calling format with
ResponseFormatTextConfig.ofJsonSchema(jsonSchema). 
- 
                                        
format
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Text.Builder format(ResponseFormatJsonObject jsonObject)
Alias for calling format with
ResponseFormatTextConfig.ofJsonObject(jsonObject). 
- 
                                        
additionalProperties
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Text.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
putAdditionalProperty
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Text.Builder putAdditionalProperty(String key, JsonValue value)
 
- 
                                        
putAllAdditionalProperties
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Text.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
removeAdditionalProperty
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Text.Builder removeAdditionalProperty(String key)
 
- 
                                        
removeAllAdditionalProperties
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Text.Builder removeAllAdditionalProperties(Set<String> keys)
 
- 
                                        
build
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Text build()
Returns an immutable instance of Text.
Further updates to this Builder will not mutate the returned instance.
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -