Package com.openai.models.responses
Class ResponseCreateParams.Conversation
-
- All Implemented Interfaces:
public final class ResponseCreateParams.ConversationThe conversation that this response belongs to. Items from this conversation are prepended to
input_itemsfor 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 interfaceResponseCreateParams.Conversation.VisitorAn 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 BooleanisId()final BooleanisResponseConversationParam()final StringasId()The unique ID of the conversation. final ResponseConversationParamasResponseConversationParam()The conversation that this response belongs to. final Optional<JsonValue>_json()final <T extends Any> Taccept(ResponseCreateParams.Conversation.Visitor<T> visitor)final ResponseCreateParams.Conversationvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseCreateParams.ConversationofId(String id)The unique ID of the conversation. final static ResponseCreateParams.ConversationofResponseConversationParam(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.
-
-
-
-