java.lang.Object
nl.dannyj.mistral.models.completion.content.ImageURL

public class ImageURL extends Object
Represents the URL and optional detail level for an image within a message content chunk.
  • Constructor Details

    • ImageURL

      public ImageURL()
    • ImageURL

      public ImageURL(URI url, @Nullable String detail)
      Creates a new ImageURL instance.
      Parameters:
      url - The image URI.
      detail - The detail level string.
  • Method Details

    • getUrl

      public URI getUrl()
      The URI of the image. Can be a standard web URI (http/https) or a data URI (e.g., data:image/png;base64,...).
      Returns:
      The image URI.
    • getDetail

      @Nullable public String getDetail()
      Specifies the detail level of the image. Valid values have not been documented, recommended to leave at null.
      Returns:
      The detail level string, or null if not specified.
    • setUrl

      public void setUrl(URI url)
      The URI of the image. Can be a standard web URI (http/https) or a data URI (e.g., data:image/png;base64,...).
      Parameters:
      url - The image URI.
    • setDetail

      public void setDetail(@Nullable String detail)
      Specifies the detail level of the image. Valid values have not been documented, recommended to leave at null.
      Parameters:
      detail - The detail level string.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object