Package | Description |
---|---|
dev.langchain4j.agent.tool | |
dev.langchain4j.model | |
dev.langchain4j.model.chat |
Modifier and Type | Method and Description |
---|---|
ToolSpecification |
ToolSpecification.Builder.build() |
static ToolSpecification |
ToolSpecifications.toolSpecificationFrom(Method method) |
Modifier and Type | Method and Description |
---|---|
static List<ToolSpecification> |
ToolSpecifications.toolSpecificationsFrom(Object objectWithTools) |
Modifier and Type | Method and Description |
---|---|
default int |
Tokenizer.estimateTokenCountInToolSpecification(ToolSpecification toolSpecification) |
Modifier and Type | Method and Description |
---|---|
int |
Tokenizer.estimateTokenCountInToolSpecifications(Iterable<ToolSpecification> toolSpecifications) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
StreamingChatLanguageModel.sendMessages(List<ChatMessage> messages,
ToolSpecification toolSpecification,
StreamingResponseHandler handler) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
StreamingChatLanguageModel.sendMessages(List<ChatMessage> messages,
List<ToolSpecification> toolSpecifications,
StreamingResponseHandler handler) |
Copyright © 2023. All rights reserved.