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 TvisitImageFile(ImageFileContentBlock imageFile)References an image File in the content of a message. abstract TvisitImageUrl(ImageUrlContentBlock imageUrl)References an image URL in the content of a message. abstract TvisitText(TextContentBlock text)The text content that is part of a message. abstract TvisitRefusal(RefusalContentBlock refusal)The refusal content generated by the assistant. Tunknown(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.
-
-
-
-