Package com.openai.models
Interface MessageContentDelta.Visitor
-
- All Implemented Interfaces:
public interface MessageContentDelta.Visitor<T extends Object>
An interface that defines how to map each variant of MessageContentDelta to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract T
visitImageFile(ImageFileDeltaBlock imageFile)
References an image File in the content of a message. abstract T
visitText(TextDeltaBlock text)
The text content that is part of a message. abstract T
visitRefusal(RefusalDeltaBlock refusal)
The refusal content that is part of a message. abstract T
visitImageUrl(ImageUrlDeltaBlock imageUrl)
References an image URL in the content of a message. T
unknown(JsonValue json)
Maps an unknown variant of MessageContentDelta to a value of type T. -
-
Method Detail
-
visitImageFile
abstract T visitImageFile(ImageFileDeltaBlock imageFile)
References an image File in the content of a message.
-
visitText
abstract T visitText(TextDeltaBlock text)
The text content that is part of a message.
-
visitRefusal
abstract T visitRefusal(RefusalDeltaBlock refusal)
The refusal content that is part of a message.
-
visitImageUrl
abstract T visitImageUrl(ImageUrlDeltaBlock imageUrl)
References an image URL in the content of a message.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of MessageContentDelta to a value of type T.
An instance of MessageContentDelta can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-