| Package | Description |
|---|---|
| dev.langchain4j.model.chat | |
| dev.langchain4j.model.input | |
| dev.langchain4j.model.input.structured | |
| dev.langchain4j.model.language | |
| dev.langchain4j.model.moderation |
| Modifier and Type | Method and Description |
|---|---|
default int |
TokenCountEstimator.estimateTokenCount(Prompt prompt) |
| Modifier and Type | Method and Description |
|---|---|
Prompt |
PromptTemplate.apply(Map<String,Object> variables)
Applies multiple values to a template containing multiple variables.
|
Prompt |
PromptTemplate.apply(Object value)
Applies a value to a template containing a single variable.
|
static Prompt |
Prompt.from(String text) |
| Modifier and Type | Method and Description |
|---|---|
static Prompt |
StructuredPromptProcessor.toPrompt(Object structuredPrompt) |
| Modifier and Type | Method and Description |
|---|---|
default int |
TokenCountEstimator.estimateTokenCount(Prompt prompt) |
default String |
LanguageModel.process(Prompt prompt) |
default void |
StreamingLanguageModel.process(Prompt prompt,
StreamingResponseHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
Moderation |
ModerationModel.moderate(Prompt prompt) |
Copyright © 2023. All rights reserved.