Package | Description |
---|---|
dev.langchain4j.data.message | |
dev.langchain4j.memory | |
dev.langchain4j.model | |
dev.langchain4j.model.chat | |
dev.langchain4j.model.moderation |
Modifier and Type | Class and Description |
---|---|
class |
AiMessage |
class |
SystemMessage |
class |
ToolExecutionResultMessage |
class |
UserMessage |
Modifier and Type | Method and Description |
---|---|
List<ChatMessage> |
ChatMemory.messages() |
Modifier and Type | Method and Description |
---|---|
void |
ChatMemory.add(ChatMessage message) |
Modifier and Type | Method and Description |
---|---|
int |
Tokenizer.countTokens(ChatMessage message) |
Modifier and Type | Method and Description |
---|---|
int |
Tokenizer.countTokens(Iterable<ChatMessage> messages) |
Modifier and Type | Method and Description |
---|---|
Result<AiMessage> |
ChatLanguageModel.sendMessages(ChatMessage... messages) |
Modifier and Type | Method and Description |
---|---|
int |
TokenCountEstimator.estimateTokenCount(List<ChatMessage> messages) |
Result<AiMessage> |
ChatLanguageModel.sendMessages(List<ChatMessage> messages) |
Result<AiMessage> |
ChatLanguageModel.sendMessages(List<ChatMessage> messages,
List<ToolSpecification> toolSpecifications) |
void |
StreamingChatLanguageModel.sendMessages(List<ChatMessage> messages,
StreamingResultHandler handler) |
Modifier and Type | Method and Description |
---|---|
Result<Moderation> |
ModerationModel.moderate(ChatMessage message) |
Modifier and Type | Method and Description |
---|---|
Result<Moderation> |
ModerationModel.moderate(List<ChatMessage> messages) |
Copyright © 2023. All rights reserved.