Package | Description |
---|---|
dev.langchain4j.data.message |
Modifier and Type | Class and Description |
---|---|
class |
ImageContent
Represents an image with a DetailLevel.
|
class |
TextContent
Represents a text content.
|
Modifier and Type | Method and Description |
---|---|
List<Content> |
UserMessage.contents()
The contents of the message.
|
Class<? extends Content> |
ContentType.getContentClass()
Returns the class of the content type.
|
Modifier and Type | Method and Description |
---|---|
static UserMessage |
UserMessage.from(Content... contents)
Create a
UserMessage from contents. |
static UserMessage |
UserMessage.from(String name,
Content... contents)
Create a
UserMessage from a name and contents. |
static UserMessage |
UserMessage.userMessage(Content... contents)
Create a
UserMessage from contents. |
static UserMessage |
UserMessage.userMessage(String name,
Content... contents)
Create a
UserMessage from a name and contents. |
Modifier and Type | Method and Description |
---|---|
static UserMessage |
UserMessage.from(List<Content> contents)
Create a
UserMessage from contents. |
static UserMessage |
UserMessage.from(String name,
List<Content> contents)
Create a
UserMessage from a name and contents. |
static UserMessage |
UserMessage.userMessage(List<Content> contents)
Create a
UserMessage from contents. |
static UserMessage |
UserMessage.userMessage(String name,
List<Content> contents)
Create a
UserMessage from a name and contents. |
Constructor and Description |
---|
UserMessage(Content... contents)
Creates a
UserMessage from contents. |
UserMessage(String name,
Content... contents)
Creates a
UserMessage from a name and contents. |
Constructor and Description |
---|
UserMessage(List<Content> contents)
Creates a
UserMessage from contents. |
UserMessage(String name,
List<Content> contents)
Creates a
UserMessage from a name and contents. |
Copyright © 2024. All rights reserved.