类的使用
dev.langchain4j.model.input.Prompt
使用Prompt的程序包
程序包
说明
-
dev.langchain4j.model.chat中Prompt的使用
参数类型为Prompt的dev.langchain4j.model.chat中的方法修饰符和类型方法说明default intTokenCountEstimator.estimateTokenCount(Prompt prompt) Estimates the count of tokens in the specified prompt. -
dev.langchain4j.model.input中Prompt的使用
修饰符和类型方法说明Applies a value to a template containing a single variable.Applies multiple values to a template containing multiple variables.static PromptCreate a new Prompt. -
dev.langchain4j.model.input.structured中Prompt的使用
-
dev.langchain4j.model.language中Prompt的使用
参数类型为Prompt的dev.langchain4j.model.language中的方法修饰符和类型方法说明default intTokenCountEstimator.estimateTokenCount(Prompt prompt) Estimates the count of tokens in the given prompt.voidDisabledStreamingLanguageModel.generate(Prompt prompt, StreamingResponseHandler<String> handler) Generate a response to the given prompt.default voidStreamingLanguageModel.generate(Prompt prompt, StreamingResponseHandler<String> handler) Generates a response from the model based on a prompt. -
dev.langchain4j.model.moderation中Prompt的使用
参数类型为Prompt的dev.langchain4j.model.moderation中的方法 -
dev.langchain4j.rag.content.injector中Prompt的使用
修饰符和类型方法说明protected PromptDefaultContentInjector.createPrompt(ChatMessage chatMessage, List<Content> contents) protected PromptDefaultContentInjector.createPrompt(UserMessage userMessage, List<Content> contents) 已过时。 -
dev.langchain4j.rag.query.router中Prompt的使用
-
dev.langchain4j.rag.query.transformer中Prompt的使用
修饰符和类型方法说明protected PromptCompressingQueryTransformer.createPrompt(Query query, String chatMemory) protected PromptExpandingQueryTransformer.createPrompt(Query query) -
dev.langchain4j.spi.prompt.structured中Prompt的使用
DefaultContentInjector.createPrompt(ChatMessage, List)instead.