Class ImageURLChunk

java.lang.Object
nl.dannyj.mistral.models.completion.content.ImageURLChunk
All Implemented Interfaces:
ContentChunk

public class ImageURLChunk extends Object implements ContentChunk
Represents an image URL part of the message content.
  • Constructor Details

    • ImageURLChunk

      public ImageURLChunk()
    • ImageURLChunk

      public ImageURLChunk(ImageURL imageUrl)
      Creates a new ImageURLChunk instance.
      Parameters:
      imageUrl - The ImageURL object containing the URI and optional detail.
  • Method Details

    • getType

      public String getType()
      Gets the type identifier for this content chunk.
      Specified by:
      getType in interface ContentChunk
      Returns:
      The type string "image_url".
    • getImageUrl

      public ImageURL getImageUrl()
      The image URL details.
      Returns:
      The ImageURL object.