Package com.openai.models.conversations
Interface Message.Content.Visitor
-
- All Implemented Interfaces:
public interface Message.Content.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract TvisitInputText(ResponseInputText inputText)A text input to the model. abstract TvisitOutputText(ResponseOutputText outputText)A text output from the model. abstract TvisitText(TextContent text)A text content. abstract TvisitSummaryText(SummaryTextContent summaryText)A summary text from the model. abstract TvisitReasoningText(Message.Content.ReasoningText reasoningText)Reasoning text from the model. abstract TvisitRefusal(ResponseOutputRefusal refusal)A refusal from the model. abstract TvisitInputImage(ResponseInputImage inputImage)An image input to the model. abstract TvisitComputerScreenshot(ComputerScreenshotContent computerScreenshot)A screenshot of a computer. abstract TvisitInputFile(ResponseInputFile inputFile)A file input to the model. Tunknown(JsonValue json)Maps an unknown variant of Content to a value of type T. -
-
Method Detail
-
visitInputText
abstract T visitInputText(ResponseInputText inputText)
A text input to the model.
-
visitOutputText
abstract T visitOutputText(ResponseOutputText outputText)
A text output from the model.
-
visitText
abstract T visitText(TextContent text)
A text content.
-
visitSummaryText
abstract T visitSummaryText(SummaryTextContent summaryText)
A summary text from the model.
-
visitReasoningText
abstract T visitReasoningText(Message.Content.ReasoningText reasoningText)
Reasoning text from the model.
-
visitRefusal
abstract T visitRefusal(ResponseOutputRefusal refusal)
A refusal from the model.
-
visitInputImage
abstract T visitInputImage(ResponseInputImage inputImage)
An image input to the model. Learn about image inputs.
-
visitComputerScreenshot
abstract T visitComputerScreenshot(ComputerScreenshotContent computerScreenshot)
A screenshot of a computer.
-
visitInputFile
abstract T visitInputFile(ResponseInputFile inputFile)
A file input to the model.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of Content to a value of type T.
An instance of Content can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-