Package akka.javasdk.agent
Record Class MessageContent.ImageMessageContent
- Enclosing interface:
MessageContent
Factory methods for creating image message content.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumControls the level of detail used when processing images. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aImageMessageContentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Creates image content from a URL string with automatic detail level.Creates image content from a URL with automatic detail level.fromUrl(URL url, MessageContent.ImageMessageContent.DetailLevel detailLevel) Creates image content from a URL with a specific detail level.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImageMessageContent
public ImageMessageContent()Creates an instance of aImageMessageContentrecord class.
-
-
Method Details
-
fromUrl
Creates image content from a URL string with automatic detail level.- Parameters:
url- The URL string pointing to the image- Returns:
- A new ImageUrlMessageContent instance with AUTO detail level
-
fromUrl
Creates image content from a URL with automatic detail level.- Parameters:
url- The URL pointing to the image- Returns:
- A new ImageUrlMessageContent instance with AUTO detail level
-
fromUrl
public static MessageContent.ImageUrlMessageContent fromUrl(URL url, MessageContent.ImageMessageContent.DetailLevel detailLevel) Creates image content from a URL with a specific detail level.- Parameters:
url- The URL pointing to the imagedetailLevel- The level of detail for image processing- Returns:
- A new ImageUrlMessageContent instance
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal.
-