Class StructuredChatCompletionCreateParams
-
- All Implemented Interfaces:
public final class StructuredChatCompletionCreateParams<T extends Object>
A wrapper for ChatCompletionCreateParams 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
StructuredChatCompletionCreateParams.Builder
-
Field Summary
Fields Modifier and Type Field Description private final Class<T>
responseType
private final ChatCompletionCreateParams
rawParams
-
Method Summary
Modifier and Type Method Description final Class<T>
responseType()
final ChatCompletionCreateParams
rawParams()
The raw, underlying chat completion create parameters wrapped by this structured instance of the parameters. Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static <T extends Any> StructuredChatCompletionCreateParams.Builder<T>
builder()
-
-
Method Detail
-
responseType
final Class<T> responseType()
-
rawParams
final ChatCompletionCreateParams rawParams()
The raw, underlying chat completion create parameters wrapped by this structured instance of the parameters.
-
builder
final static <T extends Any> StructuredChatCompletionCreateParams.Builder<T> builder()
-
-
-
-