ChatMessageImageContent<T> Class

Type Parameters

T

the type of the inner content within the message

public class ChatMessageImageContent<T>
extends ChatMessageContent<T>

Represents an image content in a chat message.

Constructor Summary

Constructor Description
ChatMessageImageContent(String content, String modelId, ChatMessageImageContent.ImageDetail detail)

Create a new instance of the ChatMessageImageContent<T> class.

Method Summary

Modifier and Type Method and Description
static Builder<T> builder()

Create a new builder for the ChatMessageImageContent<T> class.

ImageDetail getDetail()

Get the detail level of the image to include in the chat message.

Methods inherited from KernelContentImpl

Methods inherited from ChatMessageContent

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ChatMessageImageContent

public ChatMessageImageContent(String content, String modelId, ChatMessageImageContent.ImageDetail detail)

Create a new instance of the ChatMessageImageContent<T> class.

Parameters:

content - The chat message content
modelId - The LLM id to use for the chat
detail - The detail level of the image to include in the chat message

Method Details

builder

public static ChatMessageImageContent.Builder builder()

Create a new builder for the ChatMessageImageContent<T> class.

Returns:

a new builder

getDetail

public ChatMessageImageContent.ImageDetail getDetail()

Get the detail level of the image to include in the chat message.

Returns:

the detail level of the image

Applies to