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 class
ItemCreateParams.Builder
A builder for ItemCreateParams.
public final class
ItemCreateParams.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.Builder
toBuilder()
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. Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ItemCreateParams.Builder
builder()
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
include
parameter 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()
-
-
-
-