Class ItemCreateParams
-
- All Implemented Interfaces:
-
com.openai.core.Params
public final class ItemCreateParams implements Params
Create items in a conversation with the given ID.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classItemCreateParams.BuilderA builder for ItemCreateParams.
public final classItemCreateParams.Body
-
Method Summary
Modifier and Type Method Description final Optional<String>conversationId()final Optional<List<ResponseIncludable>>include()Additional fields to include in the response. final List<ResponseInputItem>items()The items to add to the conversation. final JsonField<List<ResponseInputItem>>_items()Returns the raw JSON value of items. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final ItemCreateParams.BuildertoBuilder()final ItemCreateParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static ItemCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of ItemCreateParams. -
-
Method Detail
-
conversationId
final Optional<String> conversationId()
-
include
final Optional<List<ResponseIncludable>> include()
Additional fields to include in the response. See the
includeparameter for listing Conversation items above for more information.
-
items
final List<ResponseInputItem> items()
The items to add to the conversation. You may add up to 20 items at a time.
-
_items
final JsonField<List<ResponseInputItem>> _items()
Returns the raw JSON value of items.
Unlike items, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final ItemCreateParams.Builder toBuilder()
-
_body
final ItemCreateParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static ItemCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of ItemCreateParams.
The following fields are required:
.items()
-
-
-
-