Builder

public final class Builder

A builder for TextResponseFormat.

Functions

Link copied to clipboard
public final TextResponseFormat.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
Link copied to clipboard
public final TextResponseFormat build()

Returns an immutable instance of TextResponseFormat.

Link copied to clipboard

Sets Builder.mimeType to an arbitrary JSON value.

The MIME type of the text output.

Link copied to clipboard
public final TextResponseFormat.Builder putAdditionalProperty(String key, JsonValue value)
Link copied to clipboard
public final TextResponseFormat.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
Link copied to clipboard

Sets Builder.schema to an arbitrary JSON value.

The JSON schema that the output should conform to. Only applicable when mime_type is application/json.

Link copied to clipboard
public final TextResponseFormat.Builder type(JsonValue type)

Sets the field to an arbitrary JSON value.