Package com.openai.models.responses
        Class ResponseCustomToolCallOutput.Output
- 
                    
                    
- All Implemented Interfaces:
 
public final class ResponseCustomToolCallOutput.OutputThe output from the custom tool call generated by your code. Can be a string or an list of output content.
 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceResponseCustomToolCallOutput.Output.VisitorAn interface that defines how to map each variant of Output to a value of type T.
public final classResponseCustomToolCallOutput.Output.FunctionAndCustomToolCallOutputA text input to the model.
 
- 
                                
                            
                                
Method Summary
- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
contentList
final Optional<List<ResponseCustomToolCallOutput.Output.FunctionAndCustomToolCallOutput>> contentList()
Text, image, or file output of the custom tool call.
 
- 
                                        
isContentList
final Boolean isContentList()
 
- 
                                        
asContentList
final List<ResponseCustomToolCallOutput.Output.FunctionAndCustomToolCallOutput> asContentList()
Text, image, or file output of the custom tool call.
 
- 
                                        
accept
final <T extends Any> T accept(ResponseCustomToolCallOutput.Output.Visitor<T> visitor)
 
- 
                                        
validate
final ResponseCustomToolCallOutput.Output validate()
 
- 
                                        
ofString
final static ResponseCustomToolCallOutput.Output ofString(String string)
A string of the output of the custom tool call.
 
- 
                                        
ofContentList
final static ResponseCustomToolCallOutput.Output ofContentList(List<ResponseCustomToolCallOutput.Output.FunctionAndCustomToolCallOutput> contentList)
Text, image, or file output of the custom tool call.
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -