Class MessageCreateParams.Attachment.Tool
- 
                    
                    - All Implemented Interfaces:
 
 public final class MessageCreateParams.Attachment.Tool
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public interfaceMessageCreateParams.Attachment.Tool.VisitorAn interface that defines how to map each variant of Tool to a value of type T. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final Optional<CodeInterpreterTool>codeInterpreter()final Optional<JsonValue>fileSearch()final BooleanisCodeInterpreter()final BooleanisFileSearch()final CodeInterpreterToolasCodeInterpreter()final JsonValueasFileSearch()final Optional<JsonValue>_json()final <T extends Any> Taccept(MessageCreateParams.Attachment.Tool.Visitor<T> visitor)final MessageCreateParams.Attachment.Toolvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static MessageCreateParams.Attachment.ToolofCodeInterpreter(CodeInterpreterTool codeInterpreter)final static MessageCreateParams.Attachment.ToolofFileSearch()- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        codeInterpreterfinal Optional<CodeInterpreterTool> codeInterpreter() 
 - 
                                        fileSearchfinal Optional<JsonValue> fileSearch() 
 - 
                                        isCodeInterpreterfinal Boolean isCodeInterpreter() 
 - 
                                        isFileSearchfinal Boolean isFileSearch() 
 - 
                                        asCodeInterpreterfinal CodeInterpreterTool asCodeInterpreter() 
 - 
                                        asFileSearchfinal JsonValue asFileSearch() 
 - 
                                        acceptfinal <T extends Any> T accept(MessageCreateParams.Attachment.Tool.Visitor<T> visitor) 
 - 
                                        validatefinal MessageCreateParams.Attachment.Tool validate() 
 - 
                                        ofCodeInterpreterfinal static MessageCreateParams.Attachment.Tool ofCodeInterpreter(CodeInterpreterTool codeInterpreter) 
 - 
                                        ofFileSearchfinal static MessageCreateParams.Attachment.Tool ofFileSearch() 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-