Class Message.Content
- 
                    
                    - All Implemented Interfaces:
 
 public final class Message.ContentA text input to the model. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public interfaceMessage.Content.VisitorAn interface that defines how to map each variant of Content to a value of type T. public final classMessage.Content.ReasoningTextReasoning text from the model. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final Optional<ResponseInputText>inputText()A text input to the model. final Optional<ResponseOutputText>outputText()A text output from the model. final Optional<TextContent>text()A text content. final Optional<SummaryTextContent>summaryText()A summary text from the model. final Optional<Message.Content.ReasoningText>reasoningText()Reasoning text from the model. final Optional<ResponseOutputRefusal>refusal()A refusal from the model. final Optional<ResponseInputImage>inputImage()An image input to the model. final Optional<ComputerScreenshotContent>computerScreenshot()A screenshot of a computer. final Optional<ResponseInputFile>inputFile()A file input to the model. final BooleanisInputText()final BooleanisOutputText()final BooleanisText()final BooleanisSummaryText()final BooleanisReasoningText()final BooleanisRefusal()final BooleanisInputImage()final BooleanisComputerScreenshot()final BooleanisInputFile()final ResponseInputTextasInputText()A text input to the model. final ResponseOutputTextasOutputText()A text output from the model. final TextContentasText()A text content. final SummaryTextContentasSummaryText()A summary text from the model. final Message.Content.ReasoningTextasReasoningText()Reasoning text from the model. final ResponseOutputRefusalasRefusal()A refusal from the model. final ResponseInputImageasInputImage()An image input to the model. final ComputerScreenshotContentasComputerScreenshot()A screenshot of a computer. final ResponseInputFileasInputFile()A file input to the model. final Optional<JsonValue>_json()final <T extends Any> Taccept(Message.Content.Visitor<T> visitor)final Message.Contentvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Message.ContentofInputText(ResponseInputText inputText)A text input to the model. final static Message.ContentofOutputText(ResponseOutputText outputText)A text output from the model. final static Message.ContentofText(TextContent text)A text content. final static Message.ContentofSummaryText(SummaryTextContent summaryText)A summary text from the model. final static Message.ContentofReasoningText(Message.Content.ReasoningText reasoningText)Reasoning text from the model. final static Message.ContentofRefusal(ResponseOutputRefusal refusal)A refusal from the model. final static Message.ContentofInputImage(ResponseInputImage inputImage)An image input to the model. final static Message.ContentofComputerScreenshot(ComputerScreenshotContent computerScreenshot)A screenshot of a computer. final static Message.ContentofInputFile(ResponseInputFile inputFile)A file input to the model. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        inputTextfinal Optional<ResponseInputText> inputText() A text input to the model. 
 - 
                                        outputTextfinal Optional<ResponseOutputText> outputText() A text output from the model. 
 - 
                                        textfinal Optional<TextContent> text() A text content. 
 - 
                                        summaryTextfinal Optional<SummaryTextContent> summaryText() A summary text from the model. 
 - 
                                        reasoningTextfinal Optional<Message.Content.ReasoningText> reasoningText() Reasoning text from the model. 
 - 
                                        refusalfinal Optional<ResponseOutputRefusal> refusal() A refusal from the model. 
 - 
                                        inputImagefinal Optional<ResponseInputImage> inputImage() An image input to the model. Learn about image inputs. 
 - 
                                        computerScreenshotfinal Optional<ComputerScreenshotContent> computerScreenshot() A screenshot of a computer. 
 - 
                                        inputFilefinal Optional<ResponseInputFile> inputFile() A file input to the model. 
 - 
                                        isInputTextfinal Boolean isInputText() 
 - 
                                        isOutputTextfinal Boolean isOutputText() 
 - 
                                        isSummaryTextfinal Boolean isSummaryText() 
 - 
                                        isReasoningTextfinal Boolean isReasoningText() 
 - 
                                        isInputImagefinal Boolean isInputImage() 
 - 
                                        isComputerScreenshotfinal Boolean isComputerScreenshot() 
 - 
                                        isInputFilefinal Boolean isInputFile() 
 - 
                                        asInputTextfinal ResponseInputText asInputText() A text input to the model. 
 - 
                                        asOutputTextfinal ResponseOutputText asOutputText() A text output from the model. 
 - 
                                        asTextfinal TextContent asText() A text content. 
 - 
                                        asSummaryTextfinal SummaryTextContent asSummaryText() A summary text from the model. 
 - 
                                        asReasoningTextfinal Message.Content.ReasoningText asReasoningText() Reasoning text from the model. 
 - 
                                        asRefusalfinal ResponseOutputRefusal asRefusal() A refusal from the model. 
 - 
                                        asInputImagefinal ResponseInputImage asInputImage() An image input to the model. Learn about image inputs. 
 - 
                                        asComputerScreenshotfinal ComputerScreenshotContent asComputerScreenshot() A screenshot of a computer. 
 - 
                                        asInputFilefinal ResponseInputFile asInputFile() A file input to the model. 
 - 
                                        acceptfinal <T extends Any> T accept(Message.Content.Visitor<T> visitor) 
 - 
                                        validatefinal Message.Content validate() 
 - 
                                        ofInputTextfinal static Message.Content ofInputText(ResponseInputText inputText) A text input to the model. 
 - 
                                        ofOutputTextfinal static Message.Content ofOutputText(ResponseOutputText outputText) A text output from the model. 
 - 
                                        ofTextfinal static Message.Content ofText(TextContent text) A text content. 
 - 
                                        ofSummaryTextfinal static Message.Content ofSummaryText(SummaryTextContent summaryText) A summary text from the model. 
 - 
                                        ofReasoningTextfinal static Message.Content ofReasoningText(Message.Content.ReasoningText reasoningText) Reasoning text from the model. 
 - 
                                        ofRefusalfinal static Message.Content ofRefusal(ResponseOutputRefusal refusal) A refusal from the model. 
 - 
                                        ofInputImagefinal static Message.Content ofInputImage(ResponseInputImage inputImage) An image input to the model. Learn about image inputs. 
 - 
                                        ofComputerScreenshotfinal static Message.Content ofComputerScreenshot(ComputerScreenshotContent computerScreenshot) A screenshot of a computer. 
 - 
                                        ofInputFilefinal static Message.Content ofInputFile(ResponseInputFile inputFile) A file input to the model. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-