Package com.openai.models.responses
Class ResponseInputItem.ItemReference
-
- All Implemented Interfaces:
public final class ResponseInputItem.ItemReference
An internal identifier for an item to reference.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseInputItem.ItemReference.Builder
A builder for ItemReference.
-
Method Summary
Modifier and Type Method Description final String
id()
The ID of the item to reference. final JsonValue
_type()
The type of item to reference. final JsonField<String>
_id()
Returns the raw JSON value of id. final Map<String, JsonValue>
_additionalProperties()
final ResponseInputItem.ItemReference.Builder
toBuilder()
final ResponseInputItem.ItemReference
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseInputItem.ItemReference.Builder
builder()
Returns a mutable builder for constructing an instance of ItemReference. -
-
Method Detail
-
_type
final JsonValue _type()
The type of item to reference. Always
item_reference
.Expected to always return the following:
JsonValue.from("item_reference")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseInputItem.ItemReference.Builder toBuilder()
-
validate
final ResponseInputItem.ItemReference validate()
-
builder
final static ResponseInputItem.ItemReference.Builder builder()
Returns a mutable builder for constructing an instance of ItemReference.
The following fields are required:
.id()
-
-
-
-