Package com.anthropic.models.messages
Class StructuredMessageCreateParams
-
- All Implemented Interfaces:
public final class StructuredMessageCreateParams<T extends Object>A wrapper for MessageCreateParams that provides a type-safe Builder that can record the outputType 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 an 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 classStructuredMessageCreateParams.BuilderA builder for StructuredMessageCreateParams.
-
Field Summary
Fields Modifier and Type Field Description private final Class<T>outputTypeprivate final MessageCreateParamsrawParams
-
Method Summary
Modifier and Type Method Description final Class<T>outputType()final MessageCreateParamsrawParams()The raw, underlying message create parameters wrapped by this structured instance of the parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static <T extends Any> StructuredMessageCreateParams.Builder<T>builder()Returns a mutable builder for constructing an instance of StructuredMessageCreateParams. -
-
Method Detail
-
outputType
final Class<T> outputType()
-
rawParams
final MessageCreateParams rawParams()
The raw, underlying message create parameters wrapped by this structured instance of the parameters.
-
builder
final static <T extends Any> StructuredMessageCreateParams.Builder<T> builder()
Returns a mutable builder for constructing an instance of StructuredMessageCreateParams.
The following fields are required:
.maxTokens() .messages() .model()
-
-
-
-