Package com.openai.models
Interface MessageContent.Visitor
-
- All Implemented Interfaces:
public interface MessageContent.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract T
visitImageFile(ImageFileContentBlock imageFile)
References an image File in the content of a message. abstract T
visitImageUrl(ImageUrlContentBlock imageUrl)
References an image URL in the content of a message. abstract T
visitText(TextContentBlock text)
The text content that is part of a message. abstract T
visitRefusal(RefusalContentBlock refusal)
The refusal content generated by the assistant. T
unknown(JsonValue json)
-
-
Method Detail
-
visitImageFile
abstract T visitImageFile(ImageFileContentBlock imageFile)
References an image File in the content of a message.
-
visitImageUrl
abstract T visitImageUrl(ImageUrlContentBlock imageUrl)
References an image URL in the content of a message.
-
visitText
abstract T visitText(TextContentBlock text)
The text content that is part of a message.
-
visitRefusal
abstract T visitRefusal(RefusalContentBlock refusal)
The refusal content generated by the assistant.
-
-
-
-