Package com.openai.models
Interface AssistantResponseFormatOption.Visitor
-
- All Implemented Interfaces:
public interface AssistantResponseFormatOption.Visitor<T extends Object>
An interface that defines how to map each variant of AssistantResponseFormatOption to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract T
visitAuto(JsonValue auto)
auto
is the default valueabstract T
visitResponseFormatText(ResponseFormatText responseFormatText)
abstract T
visitResponseFormatJsonObject(ResponseFormatJsonObject responseFormatJsonObject)
abstract T
visitResponseFormatJsonSchema(ResponseFormatJsonSchema responseFormatJsonSchema)
T
unknown(JsonValue json)
Maps an unknown variant of AssistantResponseFormatOption to a value of type T. -
-
Method Detail
-
visitResponseFormatText
abstract T visitResponseFormatText(ResponseFormatText responseFormatText)
-
visitResponseFormatJsonObject
abstract T visitResponseFormatJsonObject(ResponseFormatJsonObject responseFormatJsonObject)
-
visitResponseFormatJsonSchema
abstract T visitResponseFormatJsonSchema(ResponseFormatJsonSchema responseFormatJsonSchema)
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of AssistantResponseFormatOption to a value of type T.
An instance of AssistantResponseFormatOption can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-