Package com.openai.models.responses
Class ResponseCustomToolCallOutput.Output
-
- All Implemented Interfaces:
public final class ResponseCustomToolCallOutput.Output
The 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 interface
ResponseCustomToolCallOutput.Output.Visitor
An interface that defines how to map each variant of Output to a value of type T.
public final class
ResponseCustomToolCallOutput.Output.FunctionAndCustomToolCallOutput
A 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.
-
-
-
-