| Package | Description |
|---|---|
| dev.langchain4j.data.message | |
| dev.langchain4j.model.chat | |
| dev.langchain4j.model.input |
| Modifier and Type | Method and Description |
|---|---|
static AiMessage |
AiMessage.aiMessage(String text) |
static AiMessage |
AiMessage.aiMessage(ToolExecutionRequest toolExecutionRequest) |
static AiMessage |
AiMessage.from(String text) |
static AiMessage |
AiMessage.from(ToolExecutionRequest toolExecutionRequest) |
| Modifier and Type | Method and Description |
|---|---|
default AiMessage |
ChatLanguageModel.sendMessages(ChatMessage... messages)
Sends a sequence of messages to the LLM and returns a response.
|
AiMessage |
ChatLanguageModel.sendMessages(List<ChatMessage> messages)
Sends a list of messages to the LLM and returns a response.
|
AiMessage |
ChatLanguageModel.sendMessages(List<ChatMessage> messages,
List<ToolSpecification> toolSpecifications)
Sends a list of messages and a list of tool specifications to the LLM and returns a response.
|
AiMessage |
ChatLanguageModel.sendMessages(List<ChatMessage> messages,
ToolSpecification toolSpecification)
Sends a list of messages and a specification of a tool that must be executed to the LLM and returns a response
that contains a request to execute specified tool.
|
default AiMessage |
ChatLanguageModel.sendUserMessage(Object structuredPrompt)
Sends a structured prompt as a user message to the LLM and returns a response.
|
default AiMessage |
ChatLanguageModel.sendUserMessage(String userMessage)
Sends a message from a user to the LLM and returns a response.
|
default AiMessage |
ChatLanguageModel.sendUserMessage(UserMessage userMessage)
Sends a message from a user to the LLM and returns a response.
|
| Modifier and Type | Method and Description |
|---|---|
AiMessage |
Prompt.toAiMessage() |
Copyright © 2023. All rights reserved.