Class BatchCreateParams.Body
-
- All Implemented Interfaces:
public final class BatchCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBatchCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final List<BatchCreateParams.Request>requests()List of requests for prompt completion. final JsonField<List<BatchCreateParams.Request>>_requests()Returns the raw JSON value of requests. final Map<String, JsonValue>_additionalProperties()final BatchCreateParams.Body.BuildertoBuilder()final BatchCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BatchCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
requests
final List<BatchCreateParams.Request> requests()
List of requests for prompt completion. Each is an individual request to create a Message.
-
_requests
final JsonField<List<BatchCreateParams.Request>> _requests()
Returns the raw JSON value of requests.
Unlike requests, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BatchCreateParams.Body.Builder toBuilder()
-
validate
final BatchCreateParams.Body validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BatchCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.requests()
-
-
-
-