Package com.openai.models.responses
Class ResponseCreateParams.Conversation
-
- All Implemented Interfaces:
public final class ResponseCreateParams.Conversation
The conversation that this response belongs to. Items from this conversation are prepended to
input_items
for this response request. Input items and output items from this response are automatically added to this conversation after this response completes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ResponseCreateParams.Conversation.Visitor
An interface that defines how to map each variant of Conversation to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<String>
id()
The unique ID of the conversation. final Optional<ResponseConversationParam>
responseConversationParam()
The conversation that this response belongs to. final Boolean
isId()
final Boolean
isResponseConversationParam()
final String
asId()
The unique ID of the conversation. final ResponseConversationParam
asResponseConversationParam()
The conversation that this response belongs to. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(ResponseCreateParams.Conversation.Visitor<T> visitor)
final ResponseCreateParams.Conversation
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseCreateParams.Conversation
ofId(String id)
The unique ID of the conversation. final static ResponseCreateParams.Conversation
ofResponseConversationParam(ResponseConversationParam responseConversationParam)
The conversation that this response belongs to. -
-
Method Detail
-
responseConversationParam
final Optional<ResponseConversationParam> responseConversationParam()
The conversation that this response belongs to.
-
isResponseConversationParam
final Boolean isResponseConversationParam()
-
asResponseConversationParam
final ResponseConversationParam asResponseConversationParam()
The conversation that this response belongs to.
-
accept
final <T extends Any> T accept(ResponseCreateParams.Conversation.Visitor<T> visitor)
-
validate
final ResponseCreateParams.Conversation validate()
-
ofId
final static ResponseCreateParams.Conversation ofId(String id)
The unique ID of the conversation.
-
ofResponseConversationParam
final static ResponseCreateParams.Conversation ofResponseConversationParam(ResponseConversationParam responseConversationParam)
The conversation that this response belongs to.
-
-
-
-