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 |
---|---|
Response<AiMessage> |
ChatLanguageModel.generate(List<ChatMessage> messages,
ToolSpecification toolSpecification)
Generates a response from the model based on a list of messages and a single tool specification.
|
void |
StreamingChatLanguageModel.generate(List<ChatMessage> messages,
ToolSpecification toolSpecification,
StreamingResponseHandler<AiMessage> handler) |
Modifier and Type | Method and Description |
---|---|
Response<AiMessage> |
ChatLanguageModel.generate(List<ChatMessage> messages,
List<ToolSpecification> toolSpecifications)
Generates a response from the model based on a list of messages and a list of tool specifications.
|
void |
StreamingChatLanguageModel.generate(List<ChatMessage> messages,
List<ToolSpecification> toolSpecifications,
StreamingResponseHandler<AiMessage> handler)
Generates a response from the model based on a list of messages and a list of tool specifications.
|
Copyright © 2023. All rights reserved.