ChatMessageImageContent.Builder<T> Class
- java.
lang. Object - com.
microsoft. semantickernel. services. chatcompletion. message. ChatMessageImageContent. Builder<T>
- com.
Type Parameters
- T
the type of the inner content within the message
Implements
public static class ChatMessageImageContent.Builder<T>
implements SemanticKernelBuilder<ChatMessageImageContent<T>>
Builder for the ChatMessageImageContent<T> class.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| Builder() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Chat |
build()
Build the object. |
| Builder<T> |
withDetail(ChatMessageImageContent.ImageDetail detail)
Set the detail level of the image to include in the chat message. |
| Builder<T> |
withImage(String imageType, byte[] content)
Set the image content to include in the chat message. |
| Builder<T> |
withImageUrl(String url)
Set the URL of the image to include in the chat message. |
| Builder<T> |
withImageUrl(URL url)
Set the URL of the image to include in the chat message. |
| Builder<T> |
withModelId(String modelId)
Set the model ID to use for the chat message. |
Methods inherited from java.lang.Object
Constructor Details
Builder
public Builder()
Method Details
build
public ChatMessageImageContent
Build the object.
withDetail
public ChatMessageImageContent.Builder
Set the detail level of the image to include in the chat message.
Parameters:
Returns:
this builderwithImage
public ChatMessageImageContent.Builder
Set the image content to include in the chat message.
Parameters:
Returns:
this builderwithImageUrl
public ChatMessageImageContent.Builder
Set the URL of the image to include in the chat message.
Parameters:
Returns:
this builderwithImageUrl
public ChatMessageImageContent.Builder
Set the URL of the image to include in the chat message.
Parameters:
Returns:
this builderwithModelId
public ChatMessageImageContent.Builder
Set the model ID to use for the chat message.
Parameters:
Returns:
this builder