索引

A B C D E F G H I J K L M N O P Q R S T U V W 
All Classes and Interfaces|常量字段值|所有程序包|序列化表格

A

ABSOLUTE_DIRECTORY_PATH - 类中的静态变量 dev.langchain4j.data.document.Document
Common metadata key for the absolute path of the directory from which the document was loaded.
add(Embedding) - 接口中的方法 dev.langchain4j.store.embedding.EmbeddingStore
Adds a given embedding to the store.
add(Embedding, Embedded) - 接口中的方法 dev.langchain4j.store.embedding.EmbeddingStore
Adds a given embedding and the corresponding content that has been embedded to the store.
add(ChatMessage) - 接口中的方法 dev.langchain4j.memory.ChatMemory
Adds a message to the chat memory.
add(TokenUsage) - 类中的方法 dev.langchain4j.model.output.TokenUsage
已过时。
add(String, Embedding) - 接口中的方法 dev.langchain4j.store.embedding.EmbeddingStore
Adds a given embedding to the store.
add(String, Object) - 类中的方法 dev.langchain4j.data.document.Metadata
add(String, String) - 类中的方法 dev.langchain4j.data.document.Metadata
addAll(List<Embedding>) - 接口中的方法 dev.langchain4j.store.embedding.EmbeddingStore
Adds multiple embeddings to the store.
addAll(List<Embedding>, List<Embedded>) - 接口中的方法 dev.langchain4j.store.embedding.EmbeddingStore
Adds multiple embeddings and their corresponding contents that have been embedded to the store.
additionalParams() - 类中的方法 dev.langchain4j.web.search.WebSearchRequest
Get the additional parameters for the search request.
additionalParams(Map<String, Object>) - 类中的方法 dev.langchain4j.web.search.WebSearchRequest.Builder
Set the additional parameters for the search request.
addOptionalParameter(String, JsonSchemaProperty...) - 类中的方法 dev.langchain4j.agent.tool.ToolSpecification.Builder
Adds an optional parameter to the tool.
addOptionalParameter(String, Iterable<JsonSchemaProperty>) - 类中的方法 dev.langchain4j.agent.tool.ToolSpecification.Builder
Adds an optional parameter to the tool.
addParameter(String, JsonSchemaProperty...) - 类中的方法 dev.langchain4j.agent.tool.ToolSpecification.Builder
Adds a parameter to the tool.
addParameter(String, Iterable<JsonSchemaProperty>) - 类中的方法 dev.langchain4j.agent.tool.ToolSpecification.Builder
Adds a parameter to the tool.
aggregate(Map<Query, Collection<List<Content>>>) - 接口中的方法 dev.langchain4j.rag.content.aggregator.ContentAggregator
Aggregates all Contents retrieved by all ContentRetrievers using all Querys.
aggregate(Map<Query, Collection<List<Content>>>) - 类中的方法 dev.langchain4j.rag.content.aggregator.DefaultContentAggregator
 
aggregate(Map<Query, Collection<List<Content>>>) - 类中的方法 dev.langchain4j.rag.content.aggregator.ReRankingContentAggregator
 
AI - enum class 中的枚举常量 dev.langchain4j.data.message.ChatMessageType
A message from the AI.
aiMessage() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelResponse
 
aiMessage(ToolExecutionRequest...) - 类中的静态方法 dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given tool execution requests.
aiMessage(String) - 类中的静态方法 dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given text.
aiMessage(List<ToolExecutionRequest>) - 类中的静态方法 dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given tool execution requests.
AiMessage - dev.langchain4j.data.message中的类
Represents a response message from an AI (language model).
AiMessage(String) - 类的构造器 dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given text.
AiMessage(String, List<ToolExecutionRequest>) - 类的构造器 dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given text and tool execution requests.
AiMessage(List<ToolExecutionRequest>) - 类的构造器 dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given tool execution requests.
and(Filter) - 接口中的方法 dev.langchain4j.store.embedding.filter.Filter
 
and(Filter, Filter) - 接口中的静态方法 dev.langchain4j.store.embedding.filter.Filter
 
And - dev.langchain4j.store.embedding.filter.logical中的类
 
And(Filter, Filter) - 类的构造器 dev.langchain4j.store.embedding.filter.logical.And
 
andThen(PromptTemplateCustomizer) - 接口中的方法 dev.langchain4j.model.input.PromptTemplateCustomizer
 
apply(Object) - 类中的方法 dev.langchain4j.model.input.PromptTemplate
Applies a value to a template containing a single variable.
apply(Map<String, Object>) - 类中的方法 dev.langchain4j.model.input.PromptTemplate
Applies multiple values to a template containing multiple variables.
areNotNullOrBlank(String...) - 类中的静态方法 dev.langchain4j.internal.Utils
Are all the given strings not null and not blank?
argument(ToolExecutionRequest, String) - 类中的静态方法 dev.langchain4j.agent.tool.ToolExecutionRequestUtil
Get an argument value from ToolExecutionRequest.
arguments() - 类中的方法 dev.langchain4j.agent.tool.ToolExecutionRequest
Returns the arguments of the tool.
arguments(String) - 类中的方法 dev.langchain4j.agent.tool.ToolExecutionRequest.Builder
Sets the arguments.
argumentsAsMap(String) - 类中的静态方法 dev.langchain4j.agent.tool.ToolExecutionRequestUtil
Convert arguments to map.
ARRAY - 类中的静态变量 dev.langchain4j.agent.tool.JsonSchemaProperty
A property with key "type" and value "array".
asMap() - 类中的方法 dev.langchain4j.data.document.Metadata
已过时。
as of 0.31.0, use Metadata.toMap() instead.
attributes() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelErrorContext
 
attributes() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelRequestContext
 
attributes() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelResponseContext
 
augment(UserMessage, Metadata) - 类中的方法 dev.langchain4j.rag.DefaultRetrievalAugmentor
augment(UserMessage, Metadata) - 接口中的方法 dev.langchain4j.rag.RetrievalAugmentor
已过时。
augment(AugmentationRequest) - 类中的方法 dev.langchain4j.rag.DefaultRetrievalAugmentor
 
augment(AugmentationRequest) - 接口中的方法 dev.langchain4j.rag.RetrievalAugmentor
Augments the ChatMessage provided in the AugmentationRequest with retrieved Contents.
AugmentationRequest - dev.langchain4j.rag中的类
Represents a request for ChatMessage augmentation.
AugmentationRequest(ChatMessage, Metadata) - 类的构造器 dev.langchain4j.rag.AugmentationRequest
 
AugmentationResult - dev.langchain4j.rag中的类
Represents the result of a ChatMessage augmentation.
AugmentationResult(ChatMessage, List<Content>) - 类的构造器 dev.langchain4j.rag.AugmentationResult
 
AUTO - enum class 中的枚举常量 dev.langchain4j.data.message.ImageContent.DetailLevel
Auto detail.

B

backoffExp(double) - 类中的方法 dev.langchain4j.internal.RetryUtils.RetryPolicy.Builder
Sets the backoff exponent.
base64Data() - 类中的方法 dev.langchain4j.data.image.Image
Get the base64 data of the image.
base64Data(String) - 类中的方法 dev.langchain4j.data.image.Image.Builder
Set the base64 data of the image.
between(Embedding, Embedding) - 类中的静态方法 dev.langchain4j.store.embedding.CosineSimilarity
Calculates cosine similarity between two vectors.
BlankDocumentException - dev.langchain4j.data.document中的异常错误
 
BlankDocumentException() - 异常错误的构造器 dev.langchain4j.data.document.BlankDocumentException
 
BOOLEAN - 类中的静态变量 dev.langchain4j.agent.tool.JsonSchemaProperty
A property with key "type" and value "boolean".
build() - 类中的方法 dev.langchain4j.agent.tool.ToolExecutionRequest.Builder
Returns a ToolExecutionRequest built from the parameters previously set.
build() - 类中的方法 dev.langchain4j.agent.tool.ToolParameters.Builder
Returns a ToolParameters built from the parameters previously set.
build() - 类中的方法 dev.langchain4j.agent.tool.ToolSpecification.Builder
Returns a ToolSpecification built from the parameters previously set.
build() - 类中的方法 dev.langchain4j.data.image.Image.Builder
Build the Image.
build() - 类中的方法 dev.langchain4j.internal.RetryUtils.RetryPolicy.Builder
Builds a RetryPolicy.
build() - 类中的方法 dev.langchain4j.store.embedding.EmbeddingStoreIngestor.Builder
Builds the EmbeddingStoreIngestor.
build() - 类中的方法 dev.langchain4j.web.search.WebSearchRequest.Builder
Build the web search request.
builder() - 类中的静态方法 dev.langchain4j.agent.tool.ToolExecutionRequest
Creates builder to build ToolExecutionRequest.
builder() - 类中的静态方法 dev.langchain4j.agent.tool.ToolParameters
ToolParameters builder static inner class.
builder() - 类中的静态方法 dev.langchain4j.agent.tool.ToolSpecification
Creates builder to build ToolSpecification.
builder() - 类中的静态方法 dev.langchain4j.data.image.Image
Create a new Image.Builder.
builder() - 类中的静态方法 dev.langchain4j.rag.DefaultRetrievalAugmentor
 
builder() - 类中的静态方法 dev.langchain4j.store.embedding.EmbeddingStoreIngestor
Creates a new EmbeddingStoreIngestor builder.
builder() - 类中的静态方法 dev.langchain4j.web.search.WebSearchRequest
Create a new builder instance.
Builder() - 类的构造器 dev.langchain4j.data.image.Image.Builder
Create a new Image.Builder.
Builder() - 类的构造器 dev.langchain4j.internal.RetryUtils.RetryPolicy.Builder
Construct a RetryPolicy.Builder.
Builder() - 类的构造器 dev.langchain4j.store.embedding.EmbeddingStoreIngestor.Builder
Creates a new EmbeddingStoreIngestor builder.

C

Chain<Input,Output> - dev.langchain4j.chain中的接口
Represents a chain step that takes an input and produces an output.
chatLanguageModel - 类中的变量 dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
chatLanguageModel - 类中的变量 dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
chatLanguageModel - 类中的变量 dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
ChatLanguageModel - dev.langchain4j.model.chat中的接口
Represents a language model that has a chat interface.
chatMemory() - 类中的方法 dev.langchain4j.rag.query.Metadata
 
ChatMemory - dev.langchain4j.memory中的接口
Represents the memory (history) of a chat conversation.
chatMemoryId() - 类中的方法 dev.langchain4j.rag.query.Metadata
 
ChatMemoryStore - dev.langchain4j.store.memory.chat中的接口
Represents a store for the ChatMemory state.
chatMessage() - 类中的方法 dev.langchain4j.rag.AugmentationRequest
 
chatMessage() - 类中的方法 dev.langchain4j.rag.AugmentationResult
 
ChatMessage - dev.langchain4j.data.message中的接口
A chat message.
ChatMessageDeserializer - dev.langchain4j.data.message中的类
A deserializer for ChatMessage objects.
ChatMessageJsonCodec - dev.langchain4j.data.message中的接口
A codec for serializing and deserializing ChatMessage objects to and from JSON.
ChatMessageJsonCodecFactory - dev.langchain4j.spi.data.message中的接口
A factory for creating ChatMessageJsonCodec objects.
ChatMessageSerializer - dev.langchain4j.data.message中的类
 
ChatMessageSerializer() - 类的构造器 dev.langchain4j.data.message.ChatMessageSerializer
 
ChatMessageType - dev.langchain4j.data.message中的Enum Class
The type of content, e.g. text or image.
ChatModelErrorContext - dev.langchain4j.model.chat.listener中的类
The error context.
ChatModelErrorContext(Throwable, ChatModelRequest, ChatModelResponse, Map<Object, Object>) - 类的构造器 dev.langchain4j.model.chat.listener.ChatModelErrorContext
 
ChatModelListener - dev.langchain4j.model.chat.listener中的接口
A ChatLanguageModel listener that listens for requests, responses and errors.
ChatModelRequest - dev.langchain4j.model.chat.listener中的类
A request to the ChatLanguageModel or StreamingChatLanguageModel, intended to be used with ChatModelListener.
ChatModelRequest(String, Double, Double, Integer, List<ChatMessage>, List<ToolSpecification>) - 类的构造器 dev.langchain4j.model.chat.listener.ChatModelRequest
 
ChatModelRequestContext - dev.langchain4j.model.chat.listener中的类
The request context.
ChatModelRequestContext(ChatModelRequest, Map<Object, Object>) - 类的构造器 dev.langchain4j.model.chat.listener.ChatModelRequestContext
 
ChatModelResponse - dev.langchain4j.model.chat.listener中的类
A response from the ChatLanguageModel or StreamingChatLanguageModel, intended to be used with ChatModelListener.
ChatModelResponse(String, String, TokenUsage, FinishReason, AiMessage) - 类的构造器 dev.langchain4j.model.chat.listener.ChatModelResponse
 
ChatModelResponseContext - dev.langchain4j.model.chat.listener中的类
The response context.
ChatModelResponseContext(ChatModelResponse, ChatModelRequest, Map<Object, Object>) - 类的构造器 dev.langchain4j.model.chat.listener.ChatModelResponseContext
 
classify(Document) - 接口中的方法 dev.langchain4j.classification.TextClassifier
Classify the given Document.
classify(TextSegment) - 接口中的方法 dev.langchain4j.classification.TextClassifier
Classify the given TextSegment.
classify(String) - 接口中的方法 dev.langchain4j.classification.TextClassifier
Classify the given text.
clear() - 接口中的方法 dev.langchain4j.memory.ChatMemory
Clears the chat memory.
CodeExecutionEngine - dev.langchain4j.code中的接口
Interface for executing code.
comparisonValue() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsEqualTo
 
comparisonValue() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsGreaterThan
 
comparisonValue() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsGreaterThanOrEqualTo
 
comparisonValue() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsLessThan
 
comparisonValue() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsLessThanOrEqualTo
 
comparisonValue() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsNotEqualTo
 
comparisonValues() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsIn
 
comparisonValues() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsNotIn
 
CompressingQueryTransformer - dev.langchain4j.rag.query.transformer中的类
A QueryTransformer that leverages a ChatLanguageModel to condense a given Query along with a chat memory (previous conversation history) into a concise Query.
CompressingQueryTransformer(ChatLanguageModel) - 类的构造器 dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
CompressingQueryTransformer(ChatLanguageModel, PromptTemplate) - 类的构造器 dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
containsKey(String) - 类中的方法 dev.langchain4j.data.document.Metadata
Check whether this Metadata contains a given key.
content() - 类中的方法 dev.langchain4j.model.output.Response
Get the content.
content() - 类中的方法 dev.langchain4j.web.search.WebSearchOrganicResult
Returns the content scraped from the web page.
Content - dev.langchain4j.rag.content中的类
Represents content relevant to a user Query with the potential to enhance and ground the LLM's response.
Content - dev.langchain4j.data.message中的接口
Abstract base interface for message content.
Content(TextSegment) - 类的构造器 dev.langchain4j.rag.content.Content
 
Content(String) - 类的构造器 dev.langchain4j.rag.content.Content
 
CONTENT_FILTER - enum class 中的枚举常量 dev.langchain4j.model.output.FinishReason
The call finished signalling a need for content filtering.
ContentAggregator - dev.langchain4j.rag.content.aggregator中的接口
Aggregates all Contents retrieved from all ContentRetrievers using all Querys.
ContentInjector - dev.langchain4j.rag.content.injector中的接口
Injects given Contents into a given UserMessage.
contentRetriever(ContentRetriever) - 类中的方法 dev.langchain4j.rag.DefaultRetrievalAugmentor.DefaultRetrievalAugmentorBuilder
 
ContentRetriever - dev.langchain4j.rag.content.retriever中的接口
Retrieves Contents from an underlying data source using a given Query.
contents() - 类中的方法 dev.langchain4j.data.message.UserMessage
The contents of the message.
contents() - 类中的方法 dev.langchain4j.rag.AugmentationResult
 
ContentType - dev.langchain4j.data.message中的Enum Class
The type of content, e.g. text or image.
copy() - 类中的方法 dev.langchain4j.data.document.Metadata
Copies the metadata.
copyIfNotNull(List<T>) - 类中的静态方法 dev.langchain4j.internal.Utils
Returns an (unmodifiable) copy of the provided list.
CosineSimilarity - dev.langchain4j.store.embedding中的类
Utility class for calculating cosine similarity between two vectors.
create() - 接口中的方法 dev.langchain4j.spi.data.document.parser.DocumentParserFactory
 
create() - 接口中的方法 dev.langchain4j.spi.data.document.splitter.DocumentSplitterFactory
 
create() - 接口中的方法 dev.langchain4j.spi.data.message.ChatMessageJsonCodecFactory
Creates a new ChatMessageJsonCodec object.
create() - 接口中的方法 dev.langchain4j.spi.json.JsonCodecFactory
Create a new Json.JsonCodec.
create() - 接口中的方法 dev.langchain4j.spi.model.embedding.EmbeddingModelFactory
 
create(PromptTemplateFactory.Input) - 接口中的方法 dev.langchain4j.spi.prompt.PromptTemplateFactory
Create a new prompt template.
createPrompt(ChatMessage, List<Content>) - 类中的方法 dev.langchain4j.rag.content.injector.DefaultContentInjector
 
createPrompt(UserMessage, List<Content>) - 类中的方法 dev.langchain4j.rag.content.injector.DefaultContentInjector
已过时。
createPrompt(Query) - 类中的方法 dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
createPrompt(Query) - 类中的方法 dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
createPrompt(Query, String) - 类中的方法 dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
customer(String) - 接口中的方法 dev.langchain4j.model.input.PromptTemplateCustomizer
 

D

DEFAULT_DISPLAY_NAME - 类中的静态变量 dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
DEFAULT_FILTER - 类中的静态变量 dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
DEFAULT_MAX_RESULTS - 类中的静态变量 dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
DEFAULT_MIN_SCORE - 类中的静态变量 dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
DEFAULT_N - 类中的静态变量 dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
DEFAULT_PROMPT_TEMPLATE - 类中的静态变量 dev.langchain4j.rag.content.injector.DefaultContentInjector
 
DEFAULT_PROMPT_TEMPLATE - 类中的静态变量 dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
DEFAULT_PROMPT_TEMPLATE - 类中的静态变量 dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
DEFAULT_PROMPT_TEMPLATE - 类中的静态变量 dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
DEFAULT_QUERY_SELECTOR - 类中的静态变量 dev.langchain4j.rag.content.aggregator.ReRankingContentAggregator
 
DEFAULT_RETRY_POLICY - 类中的静态变量 dev.langchain4j.internal.RetryUtils
Default retry policy used by RetryUtils.withRetry(Callable).
DefaultContentAggregator - dev.langchain4j.rag.content.aggregator中的类
Default implementation of ContentAggregator intended to be suitable for the majority of use cases.
DefaultContentAggregator() - 类的构造器 dev.langchain4j.rag.content.aggregator.DefaultContentAggregator
 
DefaultContentInjector - dev.langchain4j.rag.content.injector中的类
Default implementation of ContentInjector intended to be suitable for the majority of use cases.
DefaultContentInjector() - 类的构造器 dev.langchain4j.rag.content.injector.DefaultContentInjector
 
DefaultContentInjector(PromptTemplate) - 类的构造器 dev.langchain4j.rag.content.injector.DefaultContentInjector
 
DefaultContentInjector(PromptTemplate, List<String>) - 类的构造器 dev.langchain4j.rag.content.injector.DefaultContentInjector
 
DefaultContentInjector(List<String>) - 类的构造器 dev.langchain4j.rag.content.injector.DefaultContentInjector
 
DefaultQueryRouter - dev.langchain4j.rag.query.router中的类
Default implementation of QueryRouter intended to be suitable for the majority of use cases.
DefaultQueryRouter(ContentRetriever...) - 类的构造器 dev.langchain4j.rag.query.router.DefaultQueryRouter
 
DefaultQueryRouter(Collection<ContentRetriever>) - 类的构造器 dev.langchain4j.rag.query.router.DefaultQueryRouter
 
DefaultQueryTransformer - dev.langchain4j.rag.query.transformer中的类
Default implementation of QueryTransformer intended to be suitable for the majority of use cases.
DefaultQueryTransformer() - 类的构造器 dev.langchain4j.rag.query.transformer.DefaultQueryTransformer
 
DefaultRetrievalAugmentor - dev.langchain4j.rag中的类
The default implementation of RetrievalAugmentor intended to be suitable for the majority of use cases.
DefaultRetrievalAugmentor(QueryTransformer, QueryRouter, ContentAggregator, ContentInjector, Executor) - 类的构造器 dev.langchain4j.rag.DefaultRetrievalAugmentor
 
DefaultRetrievalAugmentor.DefaultRetrievalAugmentorBuilder - dev.langchain4j.rag中的类
 
DefaultRetrievalAugmentorBuilder() - 类的构造器 dev.langchain4j.rag.DefaultRetrievalAugmentor.DefaultRetrievalAugmentorBuilder
 
DefaultStructuredPromptFactory - dev.langchain4j.model.input.structured中的类
Default implementation of StructuredPromptFactory.
DefaultStructuredPromptFactory() - 类的构造器 dev.langchain4j.model.input.structured.DefaultStructuredPromptFactory
 
DefaultStructuredPromptFactory(PromptTemplateCustomizer) - 类的构造器 dev.langchain4j.model.input.structured.DefaultStructuredPromptFactory
Create a default structured prompt factory.
delayMillis(int) - 类中的方法 dev.langchain4j.internal.RetryUtils.RetryPolicy.Builder
Sets the base delay in milliseconds.
deleteMessages(Object) - 接口中的方法 dev.langchain4j.store.memory.chat.ChatMemoryStore
Deletes all messages for a specified chat memory.
deleteMessages(Object) - 类中的方法 dev.langchain4j.store.memory.chat.InMemoryChatMemoryStore
 
delimiter() - annotation interface 中的元素 dev.langchain4j.model.input.structured.StructuredPrompt
The delimiter to join the lines of the prompt template.
description() - 类中的方法 dev.langchain4j.agent.tool.ToolSpecification
Returns the description of the tool.
description(String) - 类中的静态方法 dev.langchain4j.agent.tool.JsonSchemaProperty
Construct a property with key "description" and value.
description(String) - 类中的方法 dev.langchain4j.agent.tool.ToolSpecification.Builder
Sets the description.
Description - dev.langchain4j.model.output.structured中的Annotation Interface
Annotation to attach a description to a class field.
detailLevel() - 类中的方法 dev.langchain4j.data.message.ImageContent
Get the DetailLevel.
dev.langchain4j - 程序包 dev.langchain4j
 
dev.langchain4j.agent.tool - 程序包 dev.langchain4j.agent.tool
 
dev.langchain4j.chain - 程序包 dev.langchain4j.chain
 
dev.langchain4j.classification - 程序包 dev.langchain4j.classification
 
dev.langchain4j.code - 程序包 dev.langchain4j.code
 
dev.langchain4j.data.document - 程序包 dev.langchain4j.data.document
 
dev.langchain4j.data.embedding - 程序包 dev.langchain4j.data.embedding
 
dev.langchain4j.data.image - 程序包 dev.langchain4j.data.image
 
dev.langchain4j.data.message - 程序包 dev.langchain4j.data.message
 
dev.langchain4j.data.segment - 程序包 dev.langchain4j.data.segment
 
dev.langchain4j.internal - 程序包 dev.langchain4j.internal
 
dev.langchain4j.memory - 程序包 dev.langchain4j.memory
 
dev.langchain4j.model - 程序包 dev.langchain4j.model
 
dev.langchain4j.model.chat - 程序包 dev.langchain4j.model.chat
 
dev.langchain4j.model.chat.listener - 程序包 dev.langchain4j.model.chat.listener
 
dev.langchain4j.model.embedding - 程序包 dev.langchain4j.model.embedding
 
dev.langchain4j.model.image - 程序包 dev.langchain4j.model.image
 
dev.langchain4j.model.input - 程序包 dev.langchain4j.model.input
 
dev.langchain4j.model.input.structured - 程序包 dev.langchain4j.model.input.structured
 
dev.langchain4j.model.language - 程序包 dev.langchain4j.model.language
 
dev.langchain4j.model.moderation - 程序包 dev.langchain4j.model.moderation
 
dev.langchain4j.model.output - 程序包 dev.langchain4j.model.output
 
dev.langchain4j.model.output.structured - 程序包 dev.langchain4j.model.output.structured
 
dev.langchain4j.model.scoring - 程序包 dev.langchain4j.model.scoring
 
dev.langchain4j.rag - 程序包 dev.langchain4j.rag
 
dev.langchain4j.rag.content - 程序包 dev.langchain4j.rag.content
 
dev.langchain4j.rag.content.aggregator - 程序包 dev.langchain4j.rag.content.aggregator
 
dev.langchain4j.rag.content.injector - 程序包 dev.langchain4j.rag.content.injector
 
dev.langchain4j.rag.content.retriever - 程序包 dev.langchain4j.rag.content.retriever
 
dev.langchain4j.rag.query - 程序包 dev.langchain4j.rag.query
 
dev.langchain4j.rag.query.router - 程序包 dev.langchain4j.rag.query.router
 
dev.langchain4j.rag.query.transformer - 程序包 dev.langchain4j.rag.query.transformer
 
dev.langchain4j.retriever - 程序包 dev.langchain4j.retriever
 
dev.langchain4j.spi - 程序包 dev.langchain4j.spi
 
dev.langchain4j.spi.data.document.parser - 程序包 dev.langchain4j.spi.data.document.parser
 
dev.langchain4j.spi.data.document.splitter - 程序包 dev.langchain4j.spi.data.document.splitter
 
dev.langchain4j.spi.data.message - 程序包 dev.langchain4j.spi.data.message
 
dev.langchain4j.spi.json - 程序包 dev.langchain4j.spi.json
 
dev.langchain4j.spi.model.embedding - 程序包 dev.langchain4j.spi.model.embedding
 
dev.langchain4j.spi.prompt - 程序包 dev.langchain4j.spi.prompt
 
dev.langchain4j.spi.prompt.structured - 程序包 dev.langchain4j.spi.prompt.structured
 
dev.langchain4j.store.embedding - 程序包 dev.langchain4j.store.embedding
 
dev.langchain4j.store.embedding.filter - 程序包 dev.langchain4j.store.embedding.filter
 
dev.langchain4j.store.embedding.filter.comparison - 程序包 dev.langchain4j.store.embedding.filter.comparison
 
dev.langchain4j.store.embedding.filter.logical - 程序包 dev.langchain4j.store.embedding.filter.logical
 
dev.langchain4j.store.memory.chat - 程序包 dev.langchain4j.store.memory.chat
 
dev.langchain4j.web.search - 程序包 dev.langchain4j.web.search
 
dimension - 类中的变量 dev.langchain4j.model.embedding.DimensionAwareEmbeddingModel
dimension of embedding
dimension() - 类中的方法 dev.langchain4j.data.embedding.Embedding
Returns the dimension of the vector.
dimension() - 类中的方法 dev.langchain4j.model.embedding.DimensionAwareEmbeddingModel
 
dimension() - 接口中的方法 dev.langchain4j.model.embedding.EmbeddingModel
Returns the dimension of the Embedding produced by this embedding model.
DimensionAwareEmbeddingModel - dev.langchain4j.model.embedding中的类
A dimension aware embedding model
DimensionAwareEmbeddingModel() - 类的构造器 dev.langchain4j.model.embedding.DimensionAwareEmbeddingModel
 
DisabledChatLanguageModel - dev.langchain4j.model.chat中的类
A ChatLanguageModel which throws a ModelDisabledException for all of its methods
DisabledChatLanguageModel() - 类的构造器 dev.langchain4j.model.chat.DisabledChatLanguageModel
 
DisabledEmbeddingModel - dev.langchain4j.model.embedding中的类
An EmbeddingModel which throws a ModelDisabledException for all of its methods
DisabledEmbeddingModel() - 类的构造器 dev.langchain4j.model.embedding.DisabledEmbeddingModel
 
DisabledImageModel - dev.langchain4j.model.image中的类
An ImageModel which throws a ModelDisabledException for all of its methods
DisabledImageModel() - 类的构造器 dev.langchain4j.model.image.DisabledImageModel
 
DisabledLanguageModel - dev.langchain4j.model.language中的类
A LanguageModel which throws a ModelDisabledException for all of its methods
DisabledLanguageModel() - 类的构造器 dev.langchain4j.model.language.DisabledLanguageModel
 
DisabledModerationModel - dev.langchain4j.model.moderation中的类
A ModerationModel which throws a ModelDisabledException for all of its methods
DisabledModerationModel() - 类的构造器 dev.langchain4j.model.moderation.DisabledModerationModel
 
DisabledStreamingChatLanguageModel - dev.langchain4j.model.chat中的类
A StreamingChatLanguageModel which throws a ModelDisabledException for all of its methods
DisabledStreamingChatLanguageModel() - 类的构造器 dev.langchain4j.model.chat.DisabledStreamingChatLanguageModel
 
DisabledStreamingLanguageModel - dev.langchain4j.model.language中的类
A StreamingLanguageModel which throws a ModelDisabledException for all of its methods
DisabledStreamingLanguageModel() - 类的构造器 dev.langchain4j.model.language.DisabledStreamingLanguageModel
 
DO_NOT_ROUTE - enum class 中的枚举常量 dev.langchain4j.rag.query.router.LanguageModelQueryRouter.FallbackStrategy
In this case, the Query will not be routed to any ContentRetriever, thus skipping the RAG flow.
document(String) - 类中的静态方法 dev.langchain4j.data.document.Document
Creates a new Document from the given text.
document(String, Metadata) - 类中的静态方法 dev.langchain4j.data.document.Document
Creates a new Document from the given text.
Document - dev.langchain4j.data.document中的类
Represents an unstructured piece of text that usually corresponds to a content of a single file.
Document(String) - 类的构造器 dev.langchain4j.data.document.Document
Creates a new Document from the given text.
Document(String, Metadata) - 类的构造器 dev.langchain4j.data.document.Document
Creates a new Document from the given text.
DocumentLoader - dev.langchain4j.data.document中的类
Utility class for loading documents.
DocumentParser - dev.langchain4j.data.document中的接口
Defines the interface for parsing an InputStream into a Document.
DocumentParserFactory - dev.langchain4j.spi.data.document.parser中的接口
A factory for creating DocumentParser instances through SPI.
DocumentSource - dev.langchain4j.data.document中的接口
Defines the interface for a Document source.
documentSplitter(DocumentSplitter) - 类中的方法 dev.langchain4j.store.embedding.EmbeddingStoreIngestor.Builder
Sets the document splitter.
DocumentSplitter - dev.langchain4j.data.document中的接口
Defines the interface for splitting a document into text segments.
DocumentSplitterFactory - dev.langchain4j.spi.data.document.splitter中的接口
A factory for creating DocumentSplitter instances through SPI.
documentTransformer(DocumentTransformer) - 类中的方法 dev.langchain4j.store.embedding.EmbeddingStoreIngestor.Builder
Sets the document transformer.
DocumentTransformer - dev.langchain4j.data.document中的接口
Defines the interface for transforming a Document.

E

edit(Image, Image, String) - 类中的方法 dev.langchain4j.model.image.DisabledImageModel
 
edit(Image, Image, String) - 接口中的方法 dev.langchain4j.model.image.ImageModel
Given an existing image, edit this image following the given prompt and apply the changes only to the part of the image specified by the given mask.
edit(Image, String) - 类中的方法 dev.langchain4j.model.image.DisabledImageModel
 
edit(Image, String) - 接口中的方法 dev.langchain4j.model.image.ImageModel
Given an existing image, edit this image following the given prompt.
embed(TextSegment) - 类中的方法 dev.langchain4j.model.embedding.DisabledEmbeddingModel
 
embed(TextSegment) - 接口中的方法 dev.langchain4j.model.embedding.EmbeddingModel
Embed the text content of a TextSegment.
embed(String) - 类中的方法 dev.langchain4j.model.embedding.DisabledEmbeddingModel
 
embed(String) - 接口中的方法 dev.langchain4j.model.embedding.EmbeddingModel
Embed a text.
embedAll(List<TextSegment>) - 类中的方法 dev.langchain4j.model.embedding.DisabledEmbeddingModel
 
embedAll(List<TextSegment>) - 接口中的方法 dev.langchain4j.model.embedding.EmbeddingModel
Embeds the text content of a list of TextSegments.
embedded() - 类中的方法 dev.langchain4j.store.embedding.EmbeddingMatch
Returns the original content that was embedded.
embedding() - 类中的方法 dev.langchain4j.store.embedding.EmbeddingMatch
Returns the embedding that has been matched.
Embedding - dev.langchain4j.data.embedding中的类
Represents a dense vector embedding of a text.
Embedding(float[]) - 类的构造器 dev.langchain4j.data.embedding.Embedding
Creates a new Embedding.
embeddingId() - 类中的方法 dev.langchain4j.store.embedding.EmbeddingMatch
The ID of the embedding assigned when adding this embedding to the store.
EmbeddingMatch<Embedded> - dev.langchain4j.store.embedding中的类
Represents a matched embedding along with its relevance score (derivative of cosine distance), ID, and original embedded content.
EmbeddingMatch(Double, String, Embedding, Embedded) - 类的构造器 dev.langchain4j.store.embedding.EmbeddingMatch
Creates a new instance.
embeddingModel(EmbeddingModel) - 类中的方法 dev.langchain4j.store.embedding.EmbeddingStoreIngestor.Builder
Sets the embedding model.
EmbeddingModel - dev.langchain4j.model.embedding中的接口
Represents a model that can convert a given text into an embedding (vector representation of the text).
EmbeddingModelFactory - dev.langchain4j.spi.model.embedding中的接口
A factory for creating EmbeddingModel instances through SPI.
EmbeddingSearchRequest - dev.langchain4j.store.embedding中的类
Represents a request to search in an EmbeddingStore.
EmbeddingSearchRequest(Embedding, Integer, Double, Filter) - 类的构造器 dev.langchain4j.store.embedding.EmbeddingSearchRequest
Creates an instance of an EmbeddingSearchRequest.
EmbeddingSearchResult<Embedded> - dev.langchain4j.store.embedding中的类
Represents a result of a search in an EmbeddingStore.
EmbeddingSearchResult(List<EmbeddingMatch<Embedded>>) - 类的构造器 dev.langchain4j.store.embedding.EmbeddingSearchResult
 
embeddingStore(EmbeddingStore<TextSegment>) - 类中的方法 dev.langchain4j.store.embedding.EmbeddingStoreIngestor.Builder
Sets the embedding store.
EmbeddingStore<Embedded> - dev.langchain4j.store.embedding中的接口
Represents a store for embeddings, also known as a vector database.
EmbeddingStoreContentRetriever - dev.langchain4j.rag.content.retriever中的类
A ContentRetriever that retrieves from an EmbeddingStore.
EmbeddingStoreContentRetriever(EmbeddingStore<TextSegment>, EmbeddingModel) - 类的构造器 dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
EmbeddingStoreContentRetriever(EmbeddingStore<TextSegment>, EmbeddingModel, int) - 类的构造器 dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
EmbeddingStoreContentRetriever(EmbeddingStore<TextSegment>, EmbeddingModel, Integer, Double) - 类的构造器 dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder - dev.langchain4j.rag.content.retriever中的类
 
EmbeddingStoreContentRetrieverBuilder() - 类的构造器 dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder
 
EmbeddingStoreIngestor - dev.langchain4j.store.embedding中的类
The EmbeddingStoreIngestor represents an ingestion pipeline and is responsible for ingesting Documents into an EmbeddingStore.
EmbeddingStoreIngestor(DocumentTransformer, DocumentSplitter, TextSegmentTransformer, EmbeddingModel, EmbeddingStore<TextSegment>) - 类的构造器 dev.langchain4j.store.embedding.EmbeddingStoreIngestor
Creates an instance of an EmbeddingStoreIngestor.
EmbeddingStoreIngestor.Builder - dev.langchain4j.store.embedding中的类
EmbeddingStoreIngestor builder.
ensureBetween(Double, double, double, String) - 类中的静态方法 dev.langchain4j.internal.ValidationUtils
Ensures that the given Double value is in [min, max].
ensureBetween(Integer, int, int, String) - 类中的静态方法 dev.langchain4j.internal.ValidationUtils
Ensures that the given Integer value is in [min, max].
ensureBetween(Long, long, long, String) - 类中的静态方法 dev.langchain4j.internal.ValidationUtils
Ensures that the given Long value is in [min, max].
ensureEq(Object, Object, String, Object...) - 类中的静态方法 dev.langchain4j.internal.ValidationUtils
Ensure that the two values are equal.
ensureGreaterThanZero(Integer, String) - 类中的静态方法 dev.langchain4j.internal.ValidationUtils
Ensures that the given expression is true.
ensureNotBlank(String, String) - 类中的静态方法 dev.langchain4j.internal.ValidationUtils
Ensures that the given string is not null and not blank.
ensureNotEmpty(Map<K, V>, String) - 类中的静态方法 dev.langchain4j.internal.ValidationUtils
Ensures that the given map is not null and not empty.
ensureNotEmpty(T, String) - 类中的静态方法 dev.langchain4j.internal.ValidationUtils
Ensures that the given collection is not null and not empty.
ensureNotNull(T, String) - 类中的静态方法 dev.langchain4j.internal.ValidationUtils
Ensures that the given object is not null.
ensureNotNull(T, String, Object...) - 类中的静态方法 dev.langchain4j.internal.ValidationUtils
Ensures that the given object is not null.
ensureTrue(boolean, String) - 类中的静态方法 dev.langchain4j.internal.ValidationUtils
Ensures that the given expression is true.
enums(Class<?>) - 类中的静态方法 dev.langchain4j.agent.tool.JsonSchemaProperty
Construct a property with key "enum" and all enum values taken from enumClass.
enums(Object...) - 类中的静态方法 dev.langchain4j.agent.tool.JsonSchemaProperty
Construct a property with key "enum" and value enumValues.
enums(String...) - 类中的静态方法 dev.langchain4j.agent.tool.JsonSchemaProperty
Construct a property with key "enum" and value enumValues.
EPSILON - 类中的静态变量 dev.langchain4j.store.embedding.CosineSimilarity
A small value to avoid division by zero.
equals(Object) - 类中的方法 dev.langchain4j.agent.tool.JsonSchemaProperty
 
equals(Object) - 类中的方法 dev.langchain4j.agent.tool.ToolExecutionRequest
 
equals(Object) - 类中的方法 dev.langchain4j.agent.tool.ToolParameters
 
equals(Object) - 类中的方法 dev.langchain4j.agent.tool.ToolSpecification
 
equals(Object) - 类中的方法 dev.langchain4j.data.document.Document
 
equals(Object) - 类中的方法 dev.langchain4j.data.document.Metadata
 
equals(Object) - 类中的方法 dev.langchain4j.data.embedding.Embedding
 
equals(Object) - 类中的方法 dev.langchain4j.data.image.Image
 
equals(Object) - 类中的方法 dev.langchain4j.data.message.AiMessage
 
equals(Object) - 类中的方法 dev.langchain4j.data.message.ImageContent
 
equals(Object) - 类中的方法 dev.langchain4j.data.message.SystemMessage
 
equals(Object) - 类中的方法 dev.langchain4j.data.message.TextContent
 
equals(Object) - 类中的方法 dev.langchain4j.data.message.ToolExecutionResultMessage
 
equals(Object) - 类中的方法 dev.langchain4j.data.message.UserMessage
 
equals(Object) - 类中的方法 dev.langchain4j.data.segment.TextSegment
 
equals(Object) - 类中的方法 dev.langchain4j.model.input.Prompt
 
equals(Object) - 类中的方法 dev.langchain4j.model.moderation.Moderation
 
equals(Object) - 类中的方法 dev.langchain4j.model.output.Response
 
equals(Object) - 类中的方法 dev.langchain4j.model.output.TokenUsage
 
equals(Object) - 类中的方法 dev.langchain4j.rag.content.Content
 
equals(Object) - 类中的方法 dev.langchain4j.rag.query.Metadata
 
equals(Object) - 类中的方法 dev.langchain4j.rag.query.Query
 
equals(Object) - 类中的方法 dev.langchain4j.store.embedding.EmbeddingMatch
 
equals(Object) - 类中的方法 dev.langchain4j.web.search.WebSearchInformationResult
 
equals(Object) - 类中的方法 dev.langchain4j.web.search.WebSearchOrganicResult
 
equals(Object) - 类中的方法 dev.langchain4j.web.search.WebSearchRequest
 
equals(Object) - 类中的方法 dev.langchain4j.web.search.WebSearchResults
 
error() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelErrorContext
 
estimateTokenCount(UserMessage) - 接口中的方法 dev.langchain4j.model.chat.TokenCountEstimator
Estimates the count of tokens in the specified message.
estimateTokenCount(TextSegment) - 接口中的方法 dev.langchain4j.model.chat.TokenCountEstimator
Estimates the count of tokens in the specified text segment.
estimateTokenCount(TextSegment) - 接口中的方法 dev.langchain4j.model.embedding.TokenCountEstimator
Estimates the count of tokens in the given text segment.
estimateTokenCount(TextSegment) - 接口中的方法 dev.langchain4j.model.language.TokenCountEstimator
Estimates the count of tokens in the given text segment.
estimateTokenCount(Prompt) - 接口中的方法 dev.langchain4j.model.chat.TokenCountEstimator
Estimates the count of tokens in the specified prompt.
estimateTokenCount(Prompt) - 接口中的方法 dev.langchain4j.model.language.TokenCountEstimator
Estimates the count of tokens in the given prompt.
estimateTokenCount(String) - 接口中的方法 dev.langchain4j.model.chat.TokenCountEstimator
Estimates the count of tokens in the specified text.
estimateTokenCount(String) - 接口中的方法 dev.langchain4j.model.embedding.TokenCountEstimator
Estimates the count of tokens in the given text.
estimateTokenCount(String) - 接口中的方法 dev.langchain4j.model.language.TokenCountEstimator
Estimates the count of tokens in the given text.
estimateTokenCount(List<ChatMessage>) - 接口中的方法 dev.langchain4j.model.chat.TokenCountEstimator
Estimates the count of tokens in the specified list of messages.
estimateTokenCount(List<TextSegment>) - 接口中的方法 dev.langchain4j.model.embedding.TokenCountEstimator
Estimates the count of tokens in the given text segments.
estimateTokenCountInForcefulToolExecutionRequest(ToolExecutionRequest) - 接口中的方法 dev.langchain4j.model.Tokenizer
Estimates the count of tokens in the given tool execution request.
estimateTokenCountInForcefulToolSpecification(ToolSpecification) - 接口中的方法 dev.langchain4j.model.Tokenizer
Estimates the count of tokens in the given tool specification.
estimateTokenCountInMessage(ChatMessage) - 接口中的方法 dev.langchain4j.model.Tokenizer
Estimates the count of tokens in the given message.
estimateTokenCountInMessages(Iterable<ChatMessage>) - 接口中的方法 dev.langchain4j.model.Tokenizer
Estimates the count of tokens in the given messages.
estimateTokenCountInText(String) - 接口中的方法 dev.langchain4j.model.Tokenizer
Estimates the count of tokens in the given text.
estimateTokenCountInToolExecutionRequests(Iterable<ToolExecutionRequest>) - 接口中的方法 dev.langchain4j.model.Tokenizer
Estimates the count of tokens in the given tool execution requests.
estimateTokenCountInTools(Iterable<Object>) - 接口中的方法 dev.langchain4j.model.Tokenizer
Estimates the count of tokens in Tool annotations of the given objects.
estimateTokenCountInTools(Object) - 接口中的方法 dev.langchain4j.model.Tokenizer
Estimates the count of tokens in Tool annotations of the given object.
estimateTokenCountInToolSpecifications(Iterable<ToolSpecification>) - 接口中的方法 dev.langchain4j.model.Tokenizer
Estimates the count of tokens in the given tool specifications.
Exceptions - dev.langchain4j.internal中的类
Utility methods for creating common exceptions.
execute(Input) - 接口中的方法 dev.langchain4j.chain.Chain
Execute the chain step.
execute(String) - 接口中的方法 dev.langchain4j.code.CodeExecutionEngine
Execute the given code.
ExpandingQueryTransformer - dev.langchain4j.rag.query.transformer中的类
A QueryTransformer that utilizes a ChatLanguageModel to expand a given Query.
ExpandingQueryTransformer(ChatLanguageModel) - 类的构造器 dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
ExpandingQueryTransformer(ChatLanguageModel, int) - 类的构造器 dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
ExpandingQueryTransformer(ChatLanguageModel, PromptTemplate) - 类的构造器 dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
ExpandingQueryTransformer(ChatLanguageModel, PromptTemplate, Integer) - 类的构造器 dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
Experimental - dev.langchain4j中的Annotation Interface
Indicates that a class/constructor/method is experimental and might change in the future.
expression() - 类中的方法 dev.langchain4j.store.embedding.filter.logical.Not
 

F

FAIL - enum class 中的枚举常量 dev.langchain4j.rag.query.router.LanguageModelQueryRouter.FallbackStrategy
In this case, an original exception will be re-thrown, and the RAG flow will fail.
fallback(Query, Exception) - 类中的方法 dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
fallbackStrategy - 类中的变量 dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
FILE_NAME - 类中的静态变量 dev.langchain4j.data.document.Document
Common metadata key for the name of the file from which the document was loaded.
filter() - 类中的方法 dev.langchain4j.store.embedding.EmbeddingSearchRequest
 
filter(Filter) - 类中的方法 dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder
 
Filter - dev.langchain4j.store.embedding.filter中的接口
This class represents a filter that can be applied during search in an EmbeddingStore.
FilterParser - dev.langchain4j.store.embedding.filter中的接口
Parses a filter expression string into a Filter object.
findRelevant(Embedding, int) - 接口中的方法 dev.langchain4j.store.embedding.EmbeddingStore
已过时。
findRelevant(Embedding, int, double) - 接口中的方法 dev.langchain4j.store.embedding.EmbeddingStore
已过时。
findRelevant(Object, Embedding, int) - 接口中的方法 dev.langchain4j.store.embedding.EmbeddingStore
已过时。
findRelevant(Object, Embedding, int, double) - 接口中的方法 dev.langchain4j.store.embedding.EmbeddingStore
已过时。
findRelevant(Object, String) - 接口中的方法 dev.langchain4j.retriever.Retriever
已过时。
Find relevant items for the given text and memoryId.
findRelevant(String) - 接口中的方法 dev.langchain4j.retriever.Retriever
已过时。
Find relevant items for the given text.
finishReason() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelResponse
 
finishReason() - 类中的方法 dev.langchain4j.model.output.Response
Get the finish reason.
FinishReason - dev.langchain4j.model.output中的Enum Class
The reason why a model call finished.
firstChars(String, int) - 类中的静态方法 dev.langchain4j.internal.Utils
Returns the first numberOfChars characters of the given string.
flagged() - 类中的方法 dev.langchain4j.model.moderation.Moderation
Returns true if the text was flagged.
flagged(String) - 类中的静态方法 dev.langchain4j.model.moderation.Moderation
Constructs a Moderation object that is flagged.
flaggedText() - 类中的方法 dev.langchain4j.model.moderation.Moderation
Returns the text that was flagged.
format(Metadata) - 类中的方法 dev.langchain4j.rag.content.injector.DefaultContentInjector
 
format(ChatMessage) - 类中的方法 dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
format(Content) - 类中的方法 dev.langchain4j.rag.content.injector.DefaultContentInjector
 
format(String, String) - 类中的方法 dev.langchain4j.rag.content.injector.DefaultContentInjector
 
format(List<ChatMessage>) - 类中的方法 dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
format(List<Content>) - 类中的方法 dev.langchain4j.rag.content.injector.DefaultContentInjector
 
formatInstructions() - 接口中的方法 dev.langchain4j.model.output.OutputParser
Description of the text format.
from(float[]) - 类中的静态方法 dev.langchain4j.data.embedding.Embedding
Creates a new Embedding from the given vector.
from(ToolExecutionRequest...) - 类中的静态方法 dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given tool execution requests.
from(ToolExecutionRequest, String) - 类中的静态方法 dev.langchain4j.data.message.ToolExecutionResultMessage
Creates a ToolExecutionResultMessage from a ToolExecutionRequest and the result of the tool execution.
from(Image) - 类中的静态方法 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given image.
from(Image, ImageContent.DetailLevel) - 类中的静态方法 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given image.
from(Content...) - 类中的静态方法 dev.langchain4j.data.message.UserMessage
Create a UserMessage from contents.
from(UserMessage, Object, List<ChatMessage>) - 类中的静态方法 dev.langchain4j.rag.query.Metadata
 
from(TextSegment) - 类中的静态方法 dev.langchain4j.rag.content.Content
 
from(EmbeddingStore<TextSegment>) - 类中的静态方法 dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
Creates an instance of an EmbeddingStoreContentRetriever from the specified EmbeddingStore and EmbeddingModel found through SPI (see EmbeddingModelFactory).
from(WebSearchEngine) - 类中的静态方法 dev.langchain4j.web.search.WebSearchTool
Creates a new WebSearchTool with the specified web search engine.
from(WebSearchInformationResult, List<WebSearchOrganicResult>) - 类中的静态方法 dev.langchain4j.web.search.WebSearchResults
Creates a new instance of WebSearchResults from the specified parameters.
from(Long) - 类中的静态方法 dev.langchain4j.web.search.WebSearchInformationResult
Creates a new WebSearchInformationResult with the specified total results.
from(Long, Integer, Map<String, Object>) - 类中的静态方法 dev.langchain4j.web.search.WebSearchInformationResult
Creates a new WebSearchInformationResult with the specified total results, page number, and metadata.
from(String) - 类中的静态方法 dev.langchain4j.data.document.Document
Creates a new Document from the given text.
from(String) - 类中的静态方法 dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given text.
from(String) - 类中的静态方法 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url.
from(String) - 类中的静态方法 dev.langchain4j.data.message.SystemMessage
Creates a new system message.
from(String) - 类中的静态方法 dev.langchain4j.data.message.TextContent
Creates a new text content.
from(String) - 类中的静态方法 dev.langchain4j.data.message.UserMessage
Create a UserMessage from a text.
from(String) - 类中的静态方法 dev.langchain4j.data.segment.TextSegment
Creates a new text segment.
from(String) - 类中的静态方法 dev.langchain4j.model.input.Prompt
Create a new Prompt.
from(String) - 类中的静态方法 dev.langchain4j.model.input.PromptTemplate
Create a new PromptTemplate.
from(String) - 类中的静态方法 dev.langchain4j.rag.content.Content
 
from(String) - 类中的静态方法 dev.langchain4j.rag.query.Query
 
from(String) - 类中的静态方法 dev.langchain4j.web.search.WebSearchRequest
Create a web search request with the given search terms.
from(String, Metadata) - 类中的静态方法 dev.langchain4j.data.document.Document
Creates a new Document from the given text.
from(String, Metadata) - 类中的静态方法 dev.langchain4j.data.segment.TextSegment
Creates a new text segment.
from(String, Content...) - 类中的静态方法 dev.langchain4j.data.message.UserMessage
Create a UserMessage from a name and contents.
from(String, ImageContent.DetailLevel) - 类中的静态方法 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url and detail level.
from(String, Metadata) - 类中的静态方法 dev.langchain4j.rag.query.Query
 
from(String, Integer) - 类中的静态方法 dev.langchain4j.web.search.WebSearchRequest
Create a web search request with the given search terms and maximum number of results.
from(String, Object) - 类中的静态方法 dev.langchain4j.agent.tool.JsonSchemaProperty
Construct a property with key and value.
from(String, Object) - 类中的静态方法 dev.langchain4j.data.document.Metadata
已过时。
from(String, String) - 类中的静态方法 dev.langchain4j.data.document.Metadata
Constructs a Metadata object from a single key-value pair.
from(String, String) - 类中的静态方法 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given base64 data and mime type.
from(String, String) - 类中的静态方法 dev.langchain4j.data.message.UserMessage
Create a UserMessage from a name and a text.
from(String, String, ImageContent.DetailLevel) - 类中的静态方法 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given base64 data and mime type.
from(String, String, String) - 类中的静态方法 dev.langchain4j.data.message.ToolExecutionResultMessage
Creates a ToolExecutionResultMessage from a ToolExecutionRequest and the result of the tool execution.
from(String, URI) - 类中的静态方法 dev.langchain4j.web.search.WebSearchOrganicResult
Creates a WebSearchOrganicResult object from the given title and URL.
from(String, URI, String, String) - 类中的静态方法 dev.langchain4j.web.search.WebSearchOrganicResult
Creates a WebSearchOrganicResult object from the given title, URL, snippet and/or content.
from(String, URI, String, String, Map<String, String>) - 类中的静态方法 dev.langchain4j.web.search.WebSearchOrganicResult
Creates a WebSearchOrganicResult object from the given title, URL, snippet and/or content, and result metadata.
from(String, List<Content>) - 类中的静态方法 dev.langchain4j.data.message.UserMessage
Create a UserMessage from a name and contents.
from(URI) - 类中的静态方法 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url.
from(URI, ImageContent.DetailLevel) - 类中的静态方法 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url and detail level.
from(List<ToolExecutionRequest>) - 类中的静态方法 dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given tool execution requests.
from(List<Content>) - 类中的静态方法 dev.langchain4j.data.message.UserMessage
Create a UserMessage from contents.
from(List<Float>) - 类中的静态方法 dev.langchain4j.data.embedding.Embedding
Creates a new Embedding from the given vector.
from(Map<String, ?>) - 类中的静态方法 dev.langchain4j.data.document.Metadata
Constructs a Metadata object from a map of key-value pairs.
from(Map<String, Object>, WebSearchInformationResult, List<WebSearchOrganicResult>) - 类中的静态方法 dev.langchain4j.web.search.WebSearchResults
Creates a new instance of WebSearchResults from the specified parameters.
from(T) - 类中的静态方法 dev.langchain4j.model.output.Response
Create a new Response.
from(T, TokenUsage) - 类中的静态方法 dev.langchain4j.model.output.Response
Create a new Response.
from(T, TokenUsage, FinishReason) - 类中的静态方法 dev.langchain4j.model.output.Response
Create a new Response.
fromCosineSimilarity(double) - 类中的静态方法 dev.langchain4j.store.embedding.RelevanceScore
Converts cosine similarity into relevance score.
fromJson(String, Class<T>) - 类中的静态方法 dev.langchain4j.internal.Json
Convert the given JSON string to an object of the given type.
fromJson(String, Class<T>) - 接口中的方法 dev.langchain4j.internal.Json.JsonCodec
Convert the given JSON string to an object of the given type.
fromRelevanceScore(double) - 类中的静态方法 dev.langchain4j.store.embedding.CosineSimilarity
Converts relevance score into cosine similarity.
fuse(Collection<List<Content>>) - 类中的静态方法 dev.langchain4j.rag.content.aggregator.ReciprocalRankFuser
Fuses multiple List<Content> into a single List<Content> using the Reciprocal Rank Fusion (RRF) algorithm with k=60.
fuse(Collection<List<Content>>, int) - 类中的静态方法 dev.langchain4j.rag.content.aggregator.ReciprocalRankFuser
Fuses multiple List<Content> into a single List<Content> using the Reciprocal Rank Fusion (RRF) algorithm.
fuse(Map<Query, Collection<List<Content>>>) - 类中的方法 dev.langchain4j.rag.content.aggregator.DefaultContentAggregator
 
fuse(Map<Query, Collection<List<Content>>>) - 类中的方法 dev.langchain4j.rag.content.aggregator.ReRankingContentAggregator
 

G

generate(ChatMessage...) - 接口中的方法 dev.langchain4j.model.chat.ChatLanguageModel
Generates a response from the model based on a sequence of messages.
generate(ChatMessage...) - 类中的方法 dev.langchain4j.model.chat.DisabledChatLanguageModel
 
generate(UserMessage, StreamingResponseHandler<AiMessage>) - 接口中的方法 dev.langchain4j.model.chat.StreamingChatLanguageModel
Generates a response from the model based on a message from a user.
generate(Prompt) - 类中的方法 dev.langchain4j.model.language.DisabledLanguageModel
 
generate(Prompt) - 接口中的方法 dev.langchain4j.model.language.LanguageModel
Generate a response to the given prompt.
generate(Prompt, StreamingResponseHandler<String>) - 类中的方法 dev.langchain4j.model.language.DisabledStreamingLanguageModel
 
generate(Prompt, StreamingResponseHandler<String>) - 接口中的方法 dev.langchain4j.model.language.StreamingLanguageModel
Generates a response from the model based on a prompt.
generate(String) - 接口中的方法 dev.langchain4j.model.chat.ChatLanguageModel
Generates a response from the model based on a message from a user.
generate(String) - 类中的方法 dev.langchain4j.model.chat.DisabledChatLanguageModel
 
generate(String) - 类中的方法 dev.langchain4j.model.image.DisabledImageModel
 
generate(String) - 接口中的方法 dev.langchain4j.model.image.ImageModel
Given a prompt, generate an image.
generate(String) - 类中的方法 dev.langchain4j.model.language.DisabledLanguageModel
 
generate(String) - 接口中的方法 dev.langchain4j.model.language.LanguageModel
Generate a response to the given prompt.
generate(String, int) - 类中的方法 dev.langchain4j.model.image.DisabledImageModel
 
generate(String, int) - 接口中的方法 dev.langchain4j.model.image.ImageModel
Given a prompt, generate n images.
generate(String, StreamingResponseHandler<AiMessage>) - 类中的方法 dev.langchain4j.model.chat.DisabledStreamingChatLanguageModel
 
generate(String, StreamingResponseHandler<AiMessage>) - 接口中的方法 dev.langchain4j.model.chat.StreamingChatLanguageModel
Generates a response from the model based on a message from a user.
generate(String, StreamingResponseHandler<String>) - 类中的方法 dev.langchain4j.model.language.DisabledStreamingLanguageModel
 
generate(String, StreamingResponseHandler<String>) - 接口中的方法 dev.langchain4j.model.language.StreamingLanguageModel
Generates a response from the model based on a prompt.
generate(List<ChatMessage>) - 接口中的方法 dev.langchain4j.model.chat.ChatLanguageModel
Generates a response from the model based on a sequence of messages.
generate(List<ChatMessage>) - 类中的方法 dev.langchain4j.model.chat.DisabledChatLanguageModel
 
generate(List<ChatMessage>, ToolSpecification) - 接口中的方法 dev.langchain4j.model.chat.ChatLanguageModel
Generates a response from the model based on a list of messages and a single tool specification.
generate(List<ChatMessage>, ToolSpecification) - 类中的方法 dev.langchain4j.model.chat.DisabledChatLanguageModel
 
generate(List<ChatMessage>, ToolSpecification, StreamingResponseHandler<AiMessage>) - 类中的方法 dev.langchain4j.model.chat.DisabledStreamingChatLanguageModel
 
generate(List<ChatMessage>, ToolSpecification, StreamingResponseHandler<AiMessage>) - 接口中的方法 dev.langchain4j.model.chat.StreamingChatLanguageModel
Generates a response from the model based on a list of messages and a tool specification.
generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - 类中的方法 dev.langchain4j.model.chat.DisabledStreamingChatLanguageModel
 
generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - 接口中的方法 dev.langchain4j.model.chat.StreamingChatLanguageModel
Generates a response from the model based on a sequence of messages.
generate(List<ChatMessage>, List<ToolSpecification>) - 接口中的方法 dev.langchain4j.model.chat.ChatLanguageModel
Generates a response from the model based on a list of messages and a list of tool specifications.
generate(List<ChatMessage>, List<ToolSpecification>) - 类中的方法 dev.langchain4j.model.chat.DisabledChatLanguageModel
 
generate(List<ChatMessage>, List<ToolSpecification>, StreamingResponseHandler<AiMessage>) - 类中的方法 dev.langchain4j.model.chat.DisabledStreamingChatLanguageModel
 
generate(List<ChatMessage>, List<ToolSpecification>, StreamingResponseHandler<AiMessage>) - 接口中的方法 dev.langchain4j.model.chat.StreamingChatLanguageModel
Generates a response from the model based on a list of messages and a list of tool specifications.
generateUUIDFrom(String) - 类中的静态方法 dev.langchain4j.internal.Utils
Generates a UUID from a hash of the given input string.
geoLocation() - 类中的方法 dev.langchain4j.web.search.WebSearchRequest
Get the desired geolocation for search results.
geoLocation(String) - 类中的方法 dev.langchain4j.web.search.WebSearchRequest.Builder
Set the desired geolocation for search results.
get(String) - 类中的方法 dev.langchain4j.data.document.Metadata
getContentClass() - enum class中的方法 dev.langchain4j.data.message.ContentType
Returns the class of the content type.
getDouble(String) - 类中的方法 dev.langchain4j.data.document.Metadata
Returns the Double value associated with the given key.
getFloat(String) - 类中的方法 dev.langchain4j.data.document.Metadata
Returns the Float value associated with the given key.
getInteger(String) - 类中的方法 dev.langchain4j.data.document.Metadata
Returns the Integer value associated with the given key.
getLong(String) - 类中的方法 dev.langchain4j.data.document.Metadata
Returns the Long value associated with the given key.
getMessages(Object) - 接口中的方法 dev.langchain4j.store.memory.chat.ChatMemoryStore
Retrieves messages for a specified chat memory.
getMessages(Object) - 类中的方法 dev.langchain4j.store.memory.chat.InMemoryChatMemoryStore
 
getName() - 接口中的方法 dev.langchain4j.spi.prompt.PromptTemplateFactory.Input
Get the name of the template.
getOrDefault(T, Supplier<T>) - 类中的静态方法 dev.langchain4j.internal.Utils
Returns the given value if it is not null, otherwise returns the value returned by the given supplier.
getOrDefault(T, T) - 类中的静态方法 dev.langchain4j.internal.Utils
Returns the given value if it is not null, otherwise returns the given default value.
getString(String) - 类中的方法 dev.langchain4j.data.document.Metadata
Returns the String value associated with the given key.
getTemplate() - 接口中的方法 dev.langchain4j.spi.prompt.PromptTemplateFactory.Input
Get the template string.
getUUID(String) - 类中的方法 dev.langchain4j.data.document.Metadata
Returns the UUID value associated with the given key.
GSON - 类中的静态变量 dev.langchain4j.agent.tool.ToolExecutionRequestUtil
Gson instance.
GsonChatMessageJsonCodec - dev.langchain4j.data.message中的类
A codec for serializing and deserializing ChatMessage objects to and from JSON.
GsonChatMessageJsonCodec() - 类的构造器 dev.langchain4j.data.message.GsonChatMessageJsonCodec
Constructs a new GsonChatMessageJsonCodec.

H

hashCode() - 类中的方法 dev.langchain4j.agent.tool.JsonSchemaProperty
 
hashCode() - 类中的方法 dev.langchain4j.agent.tool.ToolExecutionRequest
 
hashCode() - 类中的方法 dev.langchain4j.agent.tool.ToolParameters
 
hashCode() - 类中的方法 dev.langchain4j.agent.tool.ToolSpecification
 
hashCode() - 类中的方法 dev.langchain4j.data.document.Document
 
hashCode() - 类中的方法 dev.langchain4j.data.document.Metadata
 
hashCode() - 类中的方法 dev.langchain4j.data.embedding.Embedding
 
hashCode() - 类中的方法 dev.langchain4j.data.image.Image
 
hashCode() - 类中的方法 dev.langchain4j.data.message.AiMessage
 
hashCode() - 类中的方法 dev.langchain4j.data.message.ImageContent
 
hashCode() - 类中的方法 dev.langchain4j.data.message.SystemMessage
 
hashCode() - 类中的方法 dev.langchain4j.data.message.TextContent
 
hashCode() - 类中的方法 dev.langchain4j.data.message.ToolExecutionResultMessage
 
hashCode() - 类中的方法 dev.langchain4j.data.message.UserMessage
 
hashCode() - 类中的方法 dev.langchain4j.data.segment.TextSegment
 
hashCode() - 类中的方法 dev.langchain4j.model.input.Prompt
 
hashCode() - 类中的方法 dev.langchain4j.model.moderation.Moderation
 
hashCode() - 类中的方法 dev.langchain4j.model.output.Response
 
hashCode() - 类中的方法 dev.langchain4j.model.output.TokenUsage
 
hashCode() - 类中的方法 dev.langchain4j.rag.content.Content
 
hashCode() - 类中的方法 dev.langchain4j.rag.query.Metadata
 
hashCode() - 类中的方法 dev.langchain4j.rag.query.Query
 
hashCode() - 类中的方法 dev.langchain4j.store.embedding.EmbeddingMatch
 
hashCode() - 类中的方法 dev.langchain4j.web.search.WebSearchInformationResult
 
hashCode() - 类中的方法 dev.langchain4j.web.search.WebSearchOrganicResult
 
hashCode() - 类中的方法 dev.langchain4j.web.search.WebSearchRequest
 
hashCode() - 类中的方法 dev.langchain4j.web.search.WebSearchResults
 
hasSingleText() - 类中的方法 dev.langchain4j.data.message.UserMessage
Whether this message contains a single TextContent.
hasToolExecutionRequests() - 类中的方法 dev.langchain4j.data.message.AiMessage
Check if the message has ToolExecutionRequests.
HIGH - enum class 中的枚举常量 dev.langchain4j.data.message.ImageContent.DetailLevel
High detail.

I

id() - 类中的方法 dev.langchain4j.agent.tool.ToolExecutionRequest
Returns the id of the tool.
id() - 类中的方法 dev.langchain4j.data.message.ToolExecutionResultMessage
Returns the id of the tool.
id() - 接口中的方法 dev.langchain4j.memory.ChatMemory
The ID of the ChatMemory.
id() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelResponse
 
id(String) - 类中的方法 dev.langchain4j.agent.tool.ToolExecutionRequest.Builder
Sets the id.
idToRetriever - 类中的变量 dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
illegalArgument(String, Object...) - 类中的静态方法 dev.langchain4j.internal.Exceptions
Constructs an IllegalArgumentException with the given formatted result.
image() - 类中的方法 dev.langchain4j.data.message.ImageContent
Get the Image.
Image - dev.langchain4j.data.image中的类
Represents an image as a URL or as a Base64-encoded string.
IMAGE - enum class 中的枚举常量 dev.langchain4j.data.message.ContentType
Image content.
Image.Builder - dev.langchain4j.data.image中的类
Builder for Image.
ImageContent - dev.langchain4j.data.message中的类
Represents an image with a DetailLevel.
ImageContent(Image) - 类的构造器 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given image.
ImageContent(Image, ImageContent.DetailLevel) - 类的构造器 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given image.
ImageContent(String) - 类的构造器 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url.
ImageContent(String, ImageContent.DetailLevel) - 类的构造器 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url and detail level.
ImageContent(String, String) - 类的构造器 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given base64 data and mime type.
ImageContent(String, String, ImageContent.DetailLevel) - 类的构造器 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given base64 data and mime type.
ImageContent(URI) - 类的构造器 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url.
ImageContent(URI, ImageContent.DetailLevel) - 类的构造器 dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url and detail level.
ImageContent.DetailLevel - dev.langchain4j.data.message中的Enum Class
The detail level of an Image.
ImageModel - dev.langchain4j.model.image中的接口
Text to Image generator model.
ingest(Document) - 类中的方法 dev.langchain4j.store.embedding.EmbeddingStoreIngestor
Ingests a specified document into an EmbeddingStore that was specified during the creation of this EmbeddingStoreIngestor.
ingest(Document...) - 类中的方法 dev.langchain4j.store.embedding.EmbeddingStoreIngestor
Ingests specified documents into an EmbeddingStore that was specified during the creation of this EmbeddingStoreIngestor.
ingest(Document, EmbeddingStore<TextSegment>) - 类中的静态方法 dev.langchain4j.store.embedding.EmbeddingStoreIngestor
Ingests a specified Document into a specified EmbeddingStore.
ingest(List<Document>) - 类中的方法 dev.langchain4j.store.embedding.EmbeddingStoreIngestor
Ingests specified documents into an EmbeddingStore that was specified during the creation of this EmbeddingStoreIngestor.
ingest(List<Document>, EmbeddingStore<TextSegment>) - 类中的静态方法 dev.langchain4j.store.embedding.EmbeddingStoreIngestor
Ingests specified Documents into a specified EmbeddingStore.
inject(List<Content>, ChatMessage) - 接口中的方法 dev.langchain4j.rag.content.injector.ContentInjector
Injects given Contents into a given ChatMessage.
inject(List<Content>, ChatMessage) - 类中的方法 dev.langchain4j.rag.content.injector.DefaultContentInjector
 
inject(List<Content>, UserMessage) - 接口中的方法 dev.langchain4j.rag.content.injector.ContentInjector
已过时。
inject(List<Content>, UserMessage) - 类中的方法 dev.langchain4j.rag.content.injector.DefaultContentInjector
InMemoryChatMemoryStore - dev.langchain4j.store.memory.chat中的类
Implementation of ChatMemoryStore that stores state of ChatMemory (chat messages) in-memory.
InMemoryChatMemoryStore() - 类的构造器 dev.langchain4j.store.memory.chat.InMemoryChatMemoryStore
Constructs a new InMemoryChatMemoryStore.
inputStream() - 接口中的方法 dev.langchain4j.data.document.DocumentSource
Provides an InputStream to read the content of the document.
inputTokenCount() - 类中的方法 dev.langchain4j.model.output.TokenUsage
Returns the input token count, or null if unknown.
INTEGER - 类中的静态变量 dev.langchain4j.agent.tool.JsonSchemaProperty
A property with key "type" and value "integer".
isBetween(double, double) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isBetween(float, float) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isBetween(int, int) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isBetween(long, long) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isBetween(String, String) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isCollectionEmpty(Collection<?>) - 类中的静态方法 dev.langchain4j.internal.Utils
已过时。
isEqualTo(double) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isEqualTo(float) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isEqualTo(int) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isEqualTo(long) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isEqualTo(String) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isEqualTo(UUID) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsEqualTo - dev.langchain4j.store.embedding.filter.comparison中的类
 
IsEqualTo(String, Object) - 类的构造器 dev.langchain4j.store.embedding.filter.comparison.IsEqualTo
 
isGreaterThan(double) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThan(float) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThan(int) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThan(long) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThan(String) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsGreaterThan - dev.langchain4j.store.embedding.filter.comparison中的类
 
IsGreaterThan(String, Comparable<?>) - 类的构造器 dev.langchain4j.store.embedding.filter.comparison.IsGreaterThan
 
isGreaterThanOrEqualTo(double) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThanOrEqualTo(float) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThanOrEqualTo(int) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThanOrEqualTo(long) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThanOrEqualTo(String) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsGreaterThanOrEqualTo - dev.langchain4j.store.embedding.filter.comparison中的类
 
IsGreaterThanOrEqualTo(String, Comparable<?>) - 类的构造器 dev.langchain4j.store.embedding.filter.comparison.IsGreaterThanOrEqualTo
 
isIn(double...) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isIn(float...) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isIn(int...) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isIn(long...) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isIn(String...) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isIn(Collection<?>) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isIn(UUID...) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsIn - dev.langchain4j.store.embedding.filter.comparison中的类
 
IsIn(String, Collection<?>) - 类的构造器 dev.langchain4j.store.embedding.filter.comparison.IsIn
 
isLessThan(double) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThan(float) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThan(int) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThan(long) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThan(String) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsLessThan - dev.langchain4j.store.embedding.filter.comparison中的类
 
IsLessThan(String, Comparable<?>) - 类的构造器 dev.langchain4j.store.embedding.filter.comparison.IsLessThan
 
isLessThanOrEqualTo(double) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThanOrEqualTo(float) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThanOrEqualTo(int) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThanOrEqualTo(long) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThanOrEqualTo(String) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsLessThanOrEqualTo - dev.langchain4j.store.embedding.filter.comparison中的类
 
IsLessThanOrEqualTo(String, Comparable<?>) - 类的构造器 dev.langchain4j.store.embedding.filter.comparison.IsLessThanOrEqualTo
 
isNotEqualTo(double) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotEqualTo(float) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotEqualTo(int) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotEqualTo(long) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotEqualTo(String) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotEqualTo(UUID) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsNotEqualTo - dev.langchain4j.store.embedding.filter.comparison中的类
 
IsNotEqualTo(String, Object) - 类的构造器 dev.langchain4j.store.embedding.filter.comparison.IsNotEqualTo
 
isNotIn(double...) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotIn(float...) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotIn(int...) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotIn(long...) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotIn(String...) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotIn(Collection<?>) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotIn(UUID...) - 类中的方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsNotIn - dev.langchain4j.store.embedding.filter.comparison中的类
 
IsNotIn(String, Collection<?>) - 类的构造器 dev.langchain4j.store.embedding.filter.comparison.IsNotIn
 
isNotNullOrBlank(String) - 类中的静态方法 dev.langchain4j.internal.Utils
Is the given string not null and not blank?
isNotNullOrEmpty(String) - 类中的静态方法 dev.langchain4j.internal.Utils
Is the given string not null and not empty ("")?
isNullOrBlank(String) - 类中的静态方法 dev.langchain4j.internal.Utils
Is the given string null or blank?
isNullOrEmpty(Iterable<?>) - 类中的静态方法 dev.langchain4j.internal.Utils
Is the iterable object null or empty?
isNullOrEmpty(String) - 类中的静态方法 dev.langchain4j.internal.Utils
Is the given string null or empty ("")?
isNullOrEmpty(Collection<?>) - 类中的静态方法 dev.langchain4j.internal.Utils
Is the collection null or empty?
items(JsonSchemaProperty) - 类中的静态方法 dev.langchain4j.agent.tool.JsonSchemaProperty
Wraps the given type in a property with key "items".

J

JacocoIgnoreCoverageGenerated - dev.langchain4j.internal中的Annotation Interface
Annotation to mark methods where JaCoCo coverage should be ignored.
jitterDelayMillis(int) - 类中的方法 dev.langchain4j.internal.RetryUtils.RetryPolicy
This method returns the jitter delay in milliseconds for a given attempt.
jitterScale(double) - 类中的方法 dev.langchain4j.internal.RetryUtils.RetryPolicy.Builder
Sets the jitter scale.
join(StructuredPrompt) - 类中的静态方法 dev.langchain4j.model.input.structured.StructuredPrompt.Util
Joins the lines of the prompt template.
Json - dev.langchain4j.internal中的类
A utility class for JSON.
Json.JsonCodec - dev.langchain4j.internal中的接口
The abstract JSON codec interface.
JsonCodecFactory - dev.langchain4j.spi.json中的接口
A factory for creating Json.JsonCodec instances through SPI.
JsonSchemaProperty - dev.langchain4j.agent.tool中的类
Represents a property in a JSON schema.
JsonSchemaProperty(String, Object) - 类的构造器 dev.langchain4j.agent.tool.JsonSchemaProperty
Construct a property with key and value.

K

key() - 类中的方法 dev.langchain4j.agent.tool.JsonSchemaProperty
Get the key.
key() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsEqualTo
 
key() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsGreaterThan
 
key() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsGreaterThanOrEqualTo
 
key() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsIn
 
key() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsLessThan
 
key() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsLessThanOrEqualTo
 
key() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsNotEqualTo
 
key() - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsNotIn
 
knownDimension() - 类中的方法 dev.langchain4j.model.embedding.DimensionAwareEmbeddingModel
When known (e.g., can be derived from the model name), returns the dimension of the Embedding produced by this embedding model.

L

LambdaStreamingResponseHandler<T> - dev.langchain4j.model中的类
Utility class with lambda-based streaming response handlers.
LambdaStreamingResponseHandler() - 类的构造器 dev.langchain4j.model.LambdaStreamingResponseHandler
 
language() - 类中的方法 dev.langchain4j.web.search.WebSearchRequest
Get the desired language for search results.
language(String) - 类中的方法 dev.langchain4j.web.search.WebSearchRequest.Builder
Set the desired language for search results.
LanguageModel - dev.langchain4j.model.language中的接口
Represents a language model that has a simple text interface (as opposed to a chat interface).
LanguageModelQueryRouter - dev.langchain4j.rag.query.router中的类
A QueryRouter that utilizes a ChatLanguageModel to make a routing decision.
LanguageModelQueryRouter(ChatLanguageModel, Map<ContentRetriever, String>) - 类的构造器 dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
LanguageModelQueryRouter(ChatLanguageModel, Map<ContentRetriever, String>, PromptTemplate, LanguageModelQueryRouter.FallbackStrategy) - 类的构造器 dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
LanguageModelQueryRouter.FallbackStrategy - dev.langchain4j.rag.query.router中的Enum Class
Strategy applied if the call to the LLM fails of if LLM does not return a valid response.
left() - 类中的方法 dev.langchain4j.store.embedding.filter.logical.And
 
left() - 类中的方法 dev.langchain4j.store.embedding.filter.logical.Or
 
LENGTH - enum class 中的枚举常量 dev.langchain4j.model.output.FinishReason
The call finished because the token length was reached.
load(DocumentSource, DocumentParser) - 类中的静态方法 dev.langchain4j.data.document.DocumentLoader
Loads a document from the given source using the given parser.
loadFactories(Class<T>) - 类中的静态方法 dev.langchain4j.spi.ServiceHelper
Load all the services of a given type.
loadFactories(Class<T>, ClassLoader) - 类中的静态方法 dev.langchain4j.spi.ServiceHelper
Load all the services of a given type.
LOW - enum class 中的枚举常量 dev.langchain4j.data.message.ImageContent.DetailLevel
Low detail.

M

MAP_TYPE - 类中的静态变量 dev.langchain4j.agent.tool.ToolExecutionRequestUtil
Utility TypeToken describing Map<String, Object>.
matches() - 类中的方法 dev.langchain4j.store.embedding.EmbeddingSearchResult
 
maxAttempts(int) - 类中的方法 dev.langchain4j.internal.RetryUtils.RetryPolicy.Builder
Sets the default maximum number of attempts.
maxResults() - 类中的方法 dev.langchain4j.store.embedding.EmbeddingSearchRequest
 
maxResults() - 类中的方法 dev.langchain4j.web.search.WebSearchRequest
Get the maximum number of results.
maxResults(Integer) - 类中的方法 dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder
 
maxResults(Integer) - 类中的方法 dev.langchain4j.web.search.WebSearchRequest.Builder
Set the maximum number of results.
maxTokens() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelRequest
 
messageClass() - enum class中的方法 dev.langchain4j.data.message.ChatMessageType
Returns the class of the message type.
messageFromJson(String) - 类中的静态方法 dev.langchain4j.data.message.ChatMessageDeserializer
Deserializes a JSON string into a ChatMessage.
messageFromJson(String) - 接口中的方法 dev.langchain4j.data.message.ChatMessageJsonCodec
Deserializes a JSON string to a ChatMessage object.
messageFromJson(String) - 类中的方法 dev.langchain4j.data.message.GsonChatMessageJsonCodec
 
messages() - 接口中的方法 dev.langchain4j.memory.ChatMemory
Retrieves messages from the chat memory.
messages() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelRequest
 
messagesFromJson(String) - 类中的静态方法 dev.langchain4j.data.message.ChatMessageDeserializer
Deserializes a JSON string into a list of ChatMessage.
messagesFromJson(String) - 接口中的方法 dev.langchain4j.data.message.ChatMessageJsonCodec
Deserializes a JSON string to a list of ChatMessage objects.
messagesFromJson(String) - 类中的方法 dev.langchain4j.data.message.GsonChatMessageJsonCodec
 
messagesToJson(List<ChatMessage>) - 接口中的方法 dev.langchain4j.data.message.ChatMessageJsonCodec
Serializes a list of ChatMessage objects to a JSON string.
messagesToJson(List<ChatMessage>) - 类中的静态方法 dev.langchain4j.data.message.ChatMessageSerializer
Serializes a list of chat messages into a JSON string.
messagesToJson(List<ChatMessage>) - 类中的方法 dev.langchain4j.data.message.GsonChatMessageJsonCodec
 
messageToJson(ChatMessage) - 接口中的方法 dev.langchain4j.data.message.ChatMessageJsonCodec
Serializes a ChatMessage object to a JSON string.
messageToJson(ChatMessage) - 类中的静态方法 dev.langchain4j.data.message.ChatMessageSerializer
Serializes a chat message into a JSON string.
messageToJson(ChatMessage) - 类中的方法 dev.langchain4j.data.message.GsonChatMessageJsonCodec
 
metadata() - 类中的方法 dev.langchain4j.data.document.Document
Returns the metadata associated with this document.
metadata() - 接口中的方法 dev.langchain4j.data.document.DocumentSource
Returns the metadata associated with the source of the document.
metadata() - 类中的方法 dev.langchain4j.data.segment.TextSegment
Returns the metadata.
metadata() - 类中的方法 dev.langchain4j.rag.AugmentationRequest
 
metadata() - 类中的方法 dev.langchain4j.rag.query.Query
 
metadata() - 类中的方法 dev.langchain4j.web.search.WebSearchInformationResult
Gets the metadata.
metadata() - 类中的方法 dev.langchain4j.web.search.WebSearchOrganicResult
Returns the result metadata associated with the search result.
metadata(String) - 类中的方法 dev.langchain4j.data.document.Document
metadata(String) - 类中的方法 dev.langchain4j.data.segment.TextSegment
metadata(String, Object) - 类中的静态方法 dev.langchain4j.data.document.Metadata
已过时。
metadata(String, String) - 类中的静态方法 dev.langchain4j.data.document.Metadata
Constructs a Metadata object from a single key-value pair.
Metadata - dev.langchain4j.data.document中的类
Represents metadata of a Document or a TextSegment.
Metadata - dev.langchain4j.rag.query中的类
Represents metadata that may be useful or necessary for retrieval or augmentation purposes.
Metadata() - 类的构造器 dev.langchain4j.data.document.Metadata
Construct a Metadata object with an empty map of key-value pairs.
Metadata(UserMessage, Object, List<ChatMessage>) - 类的构造器 dev.langchain4j.rag.query.Metadata
 
Metadata(Map<String, ?>) - 类的构造器 dev.langchain4j.data.document.Metadata
Constructs a Metadata object from a map of key-value pairs.
MetadataFilterBuilder - dev.langchain4j.store.embedding.filter中的类
A helper class for building a Filter for Metadata key.
MetadataFilterBuilder(String) - 类的构造器 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
metadataKey(String) - 类中的静态方法 dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
mimeType() - 类中的方法 dev.langchain4j.data.image.Image
Get the mime type of the image.
mimeType(String) - 类中的方法 dev.langchain4j.data.image.Image.Builder
Set the mime type of the image.
minScore() - 类中的方法 dev.langchain4j.store.embedding.EmbeddingSearchRequest
 
minScore(Double) - 类中的方法 dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder
 
model() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelRequest
 
model() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelResponse
 
ModelDisabledException - dev.langchain4j.model中的异常错误
An exception thrown by a model that could be disabled by a user.
ModelDisabledException(String) - 异常错误的构造器 dev.langchain4j.model.ModelDisabledException
 
moderate(ChatMessage) - 类中的方法 dev.langchain4j.model.moderation.DisabledModerationModel
 
moderate(ChatMessage) - 接口中的方法 dev.langchain4j.model.moderation.ModerationModel
Moderates the given chat message.
moderate(TextSegment) - 类中的方法 dev.langchain4j.model.moderation.DisabledModerationModel
 
moderate(TextSegment) - 接口中的方法 dev.langchain4j.model.moderation.ModerationModel
Moderates the given text segment.
moderate(Prompt) - 类中的方法 dev.langchain4j.model.moderation.DisabledModerationModel
 
moderate(Prompt) - 接口中的方法 dev.langchain4j.model.moderation.ModerationModel
Moderates the given prompt.
moderate(String) - 类中的方法 dev.langchain4j.model.moderation.DisabledModerationModel
 
moderate(String) - 接口中的方法 dev.langchain4j.model.moderation.ModerationModel
Moderates the given text.
moderate(List<ChatMessage>) - 类中的方法 dev.langchain4j.model.moderation.DisabledModerationModel
 
moderate(List<ChatMessage>) - 接口中的方法 dev.langchain4j.model.moderation.ModerationModel
Moderates the given list of chat messages.
Moderation - dev.langchain4j.model.moderation中的类
Represents moderation status.
Moderation() - 类的构造器 dev.langchain4j.model.moderation.Moderation
Construct a Moderation object that is not flagged.
Moderation(String) - 类的构造器 dev.langchain4j.model.moderation.Moderation
Construct a Moderation object that is flagged.
ModerationModel - dev.langchain4j.model.moderation中的接口
Represents a model that can moderate text.

N

n - 类中的变量 dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
name() - annotation interface 中的元素 dev.langchain4j.agent.tool.Tool
Name of the tool.
name() - 类中的方法 dev.langchain4j.agent.tool.ToolExecutionRequest
Returns the name of the tool.
name() - 类中的方法 dev.langchain4j.agent.tool.ToolSpecification
Returns the name of the tool.
name() - 类中的方法 dev.langchain4j.data.message.UserMessage
The name of the user.
name(String) - 类中的方法 dev.langchain4j.agent.tool.ToolExecutionRequest.Builder
Sets the name.
name(String) - 类中的方法 dev.langchain4j.agent.tool.ToolSpecification.Builder
Sets the name.
normalize() - 类中的方法 dev.langchain4j.data.embedding.Embedding
Normalize vector
not(Filter) - 接口中的静态方法 dev.langchain4j.store.embedding.filter.Filter
 
Not - dev.langchain4j.store.embedding.filter.logical中的类
 
Not(Filter) - 类的构造器 dev.langchain4j.store.embedding.filter.logical.Not
 
notFlagged() - 类中的静态方法 dev.langchain4j.model.moderation.Moderation
Constructs a Moderation object that is not flagged.
NULL - 类中的静态变量 dev.langchain4j.agent.tool.JsonSchemaProperty
A property with key "type" and value "null".
NUMBER - 类中的静态变量 dev.langchain4j.agent.tool.JsonSchemaProperty
A property with key "type" and value "number".

O

OBJECT - 类中的静态变量 dev.langchain4j.agent.tool.JsonSchemaProperty
A property with key "type" and value "object".
objectItems(JsonSchemaProperty) - 类中的静态方法 dev.langchain4j.agent.tool.JsonSchemaProperty
 
onComplete(Response<T>) - 接口中的方法 dev.langchain4j.model.StreamingResponseHandler
Invoked when the language model has finished streaming a response.
onError(ChatModelErrorContext) - 接口中的方法 dev.langchain4j.model.chat.listener.ChatModelListener
This method is called when an error occurs during interaction with the model.
onError(Throwable) - 接口中的方法 dev.langchain4j.model.StreamingResponseHandler
This method is invoked when an error occurs during streaming.
onNext(String) - 接口中的方法 dev.langchain4j.model.StreamingResponseHandler
Invoked each time the language model generates a new token in a textual response.
onNext(Consumer<String>) - 类中的静态方法 dev.langchain4j.model.LambdaStreamingResponseHandler
 
onNextAndError(Consumer<String>, Consumer<Throwable>) - 类中的静态方法 dev.langchain4j.model.LambdaStreamingResponseHandler
 
onRequest(ChatModelRequestContext) - 接口中的方法 dev.langchain4j.model.chat.listener.ChatModelListener
This method is called before the request is sent to the model.
onResponse(ChatModelResponseContext) - 接口中的方法 dev.langchain4j.model.chat.listener.ChatModelListener
This method is called after the response is received from the model.
options - 类中的变量 dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
or(Filter) - 接口中的方法 dev.langchain4j.store.embedding.filter.Filter
 
or(Filter, Filter) - 接口中的静态方法 dev.langchain4j.store.embedding.filter.Filter
 
Or - dev.langchain4j.store.embedding.filter.logical中的类
 
Or(Filter, Filter) - 类的构造器 dev.langchain4j.store.embedding.filter.logical.Or
 
OTHER - enum class 中的枚举常量 dev.langchain4j.model.output.FinishReason
The call finished for some other reason.
OutputParser<T> - dev.langchain4j.model.output中的接口
Represents an output parser.
outputTokenCount() - 类中的方法 dev.langchain4j.model.output.TokenUsage
Returns the output token count, or null if unknown.

P

P - dev.langchain4j.agent.tool中的Annotation Interface
Parameter of a Tool
pageNumber() - 类中的方法 dev.langchain4j.web.search.WebSearchInformationResult
Gets the page number.
parameters() - 类中的方法 dev.langchain4j.agent.tool.ToolSpecification
Returns the parameters of the tool.
parameters(ToolParameters) - 类中的方法 dev.langchain4j.agent.tool.ToolSpecification.Builder
Sets the parameters.
parse(InputStream) - 接口中的方法 dev.langchain4j.data.document.DocumentParser
Parses a given InputStream into a Document.
parse(String) - 接口中的方法 dev.langchain4j.model.output.OutputParser
Parse the given text.
parse(String) - 类中的方法 dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
parse(String) - 类中的方法 dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
parse(String) - 接口中的方法 dev.langchain4j.store.embedding.filter.FilterParser
Parses a filter expression string into a Filter object.
partialResponse() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelErrorContext
 
Prompt - dev.langchain4j.model.input中的类
Represents a prompt (an input text sent to the LLM).
Prompt(String) - 类的构造器 dev.langchain4j.model.input.Prompt
Create a new Prompt.
promptTemplate - 类中的变量 dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
promptTemplate - 类中的变量 dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
promptTemplate - 类中的变量 dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
PromptTemplate - dev.langchain4j.model.input中的类
Represents a template of a prompt that can be reused multiple times.
PromptTemplate(String) - 类的构造器 dev.langchain4j.model.input.PromptTemplate
Create a new PromptTemplate.
PromptTemplateCustomizer - dev.langchain4j.model.input中的接口
 
PromptTemplateFactory - dev.langchain4j.spi.prompt中的接口
A factory for creating prompt templates.
PromptTemplateFactory.Input - dev.langchain4j.spi.prompt中的接口
Interface for input for the factory.
PromptTemplateFactory.Template - dev.langchain4j.spi.prompt中的接口
Interface for a prompt template.
properties() - 类中的方法 dev.langchain4j.agent.tool.ToolParameters
Returns the properties of the tool.
properties(Map<String, Map<String, Object>>) - 类中的方法 dev.langchain4j.agent.tool.ToolParameters.Builder
Sets the properties.
property(String, Object) - 类中的静态方法 dev.langchain4j.agent.tool.JsonSchemaProperty
Construct a property with key and value.
put(String, double) - 类中的方法 dev.langchain4j.data.document.Metadata
Adds a key-value pair to the metadata.
put(String, float) - 类中的方法 dev.langchain4j.data.document.Metadata
Adds a key-value pair to the metadata.
put(String, int) - 类中的方法 dev.langchain4j.data.document.Metadata
Adds a key-value pair to the metadata.
put(String, long) - 类中的方法 dev.langchain4j.data.document.Metadata
Adds a key-value pair to the metadata.
put(String, String) - 类中的方法 dev.langchain4j.data.document.Metadata
Adds a key-value pair to the metadata.
put(String, UUID) - 类中的方法 dev.langchain4j.data.document.Metadata
Adds a key-value pair to the metadata.

Q

Query - dev.langchain4j.rag.query中的类
Represents a query from the user intended for retrieving relevant Contents.
Query(String) - 类的构造器 dev.langchain4j.rag.query.Query
 
Query(String, Metadata) - 类的构造器 dev.langchain4j.rag.query.Query
 
queryEmbedding() - 类中的方法 dev.langchain4j.store.embedding.EmbeddingSearchRequest
 
QueryRouter - dev.langchain4j.rag.query.router中的接口
Routes the given Query to one or multiple ContentRetrievers.
QueryTransformer - dev.langchain4j.rag.query.transformer中的接口
Transforms the given Query into one or multiple Querys.
quoted(Object) - 类中的静态方法 dev.langchain4j.internal.Utils
Returns the given object's toString() surrounded by quotes.

R

randomUUID() - 类中的静态方法 dev.langchain4j.internal.Utils
Returns a random UUID.
rawDelayMs(int) - 类中的方法 dev.langchain4j.internal.RetryUtils.RetryPolicy
This method returns the raw delay in milliseconds for a given attempt.
readBytes(String) - 类中的静态方法 dev.langchain4j.internal.Utils
Reads the content as bytes from the given URL as a GET request.
ReciprocalRankFuser - dev.langchain4j.rag.content.aggregator中的类
Implementation of Reciprocal Rank Fusion.
ReciprocalRankFuser() - 类的构造器 dev.langchain4j.rag.content.aggregator.ReciprocalRankFuser
 
RelevanceScore - dev.langchain4j.store.embedding中的类
Utility class for converting between cosine similarity and relevance score.
remove(String) - 类中的方法 dev.langchain4j.data.document.Metadata
Removes the given key from the metadata.
remove(String) - 接口中的方法 dev.langchain4j.store.embedding.EmbeddingStore
Removes a single embedding from the store by ID.
removeAll() - 接口中的方法 dev.langchain4j.store.embedding.EmbeddingStore
Removes all embeddings from the store.
removeAll(Filter) - 接口中的方法 dev.langchain4j.store.embedding.EmbeddingStore
Removes all embeddings that match the specified Filter from the store.
removeAll(Collection<String>) - 接口中的方法 dev.langchain4j.store.embedding.EmbeddingStore
Removes all embeddings that match the specified IDs from the store.
render(Map<String, Object>) - 接口中的方法 dev.langchain4j.spi.prompt.PromptTemplateFactory.Template
Render the template.
repeat(String, int) - 类中的静态方法 dev.langchain4j.internal.Utils
Returns a string consisting of the given string repeated times times.
request() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelErrorContext
 
request() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelRequestContext
 
request() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelResponseContext
 
required() - annotation interface 中的元素 dev.langchain4j.agent.tool.P
Whether the parameter is required
required() - 类中的方法 dev.langchain4j.agent.tool.ToolParameters
Returns the required properties of the tool.
required(List<String>) - 类中的方法 dev.langchain4j.agent.tool.ToolParameters.Builder
Sets the required.
reRankAndFilter(List<Content>, Query) - 类中的方法 dev.langchain4j.rag.content.aggregator.ReRankingContentAggregator
 
ReRankingContentAggregator - dev.langchain4j.rag.content.aggregator中的类
A ContentAggregator that performs re-ranking using a ScoringModel, such as Cohere.
ReRankingContentAggregator(ScoringModel) - 类的构造器 dev.langchain4j.rag.content.aggregator.ReRankingContentAggregator
 
ReRankingContentAggregator(ScoringModel, Function<Map<Query, Collection<List<Content>>>, Query>, Double) - 类的构造器 dev.langchain4j.rag.content.aggregator.ReRankingContentAggregator
 
response() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelResponseContext
 
Response<T> - dev.langchain4j.model.output中的类
Represents the response from various types of models, including language, chat, embedding, and moderation models.
Response(T) - 类的构造器 dev.langchain4j.model.output.Response
Create a new Response.
Response(T, TokenUsage, FinishReason) - 类的构造器 dev.langchain4j.model.output.Response
Create a new Response.
results() - 类中的方法 dev.langchain4j.web.search.WebSearchResults
Gets the list of organic search results.
RetrievalAugmentor - dev.langchain4j.rag中的接口
Augments the provided ChatMessage with retrieved Contents.
retrieve(Query) - 接口中的方法 dev.langchain4j.rag.content.retriever.ContentRetriever
Retrieves relevant Contents using a given Query.
retrieve(Query) - 类中的方法 dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
retrieve(Query) - 类中的方法 dev.langchain4j.rag.content.retriever.WebSearchContentRetriever
 
Retriever<T> - dev.langchain4j.retriever中的接口
已过时。
RetryPolicy(int, int, double, double) - 类的构造器 dev.langchain4j.internal.RetryUtils.RetryPolicy
Construct a RetryPolicy.
retryPolicyBuilder() - 类中的静态方法 dev.langchain4j.internal.RetryUtils
This method returns a RetryPolicy.Builder.
RetryUtils - dev.langchain4j.internal中的类
Utility class for retrying actions.
RetryUtils.RetryPolicy - dev.langchain4j.internal中的类
This class encapsulates a retry policy.
RetryUtils.RetryPolicy.Builder - dev.langchain4j.internal中的类
This class encapsulates a retry policy builder.
revisedPrompt() - 类中的方法 dev.langchain4j.data.image.Image
Get the revised prompt of the image.
revisedPrompt(String) - 类中的方法 dev.langchain4j.data.image.Image.Builder
Set the revised prompt of the image.
right() - 类中的方法 dev.langchain4j.store.embedding.filter.logical.And
 
right() - 类中的方法 dev.langchain4j.store.embedding.filter.logical.Or
 
route(Query) - 类中的方法 dev.langchain4j.rag.query.router.DefaultQueryRouter
 
route(Query) - 类中的方法 dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
route(Query) - 接口中的方法 dev.langchain4j.rag.query.router.QueryRouter
Routes the given Query to one or multiple ContentRetrievers.
ROUTE_TO_ALL - enum class 中的枚举常量 dev.langchain4j.rag.query.router.LanguageModelQueryRouter.FallbackStrategy
In this case, the Query will be routed to all ContentRetrievers.
runtime(String, Object...) - 类中的静态方法 dev.langchain4j.internal.Exceptions
Constructs an RuntimeException with the given formatted result.

S

safeSearch() - 类中的方法 dev.langchain4j.web.search.WebSearchRequest
Get the safe search flag.
safeSearch(Boolean) - 类中的方法 dev.langchain4j.web.search.WebSearchRequest.Builder
Set the safe search flag.
score() - 类中的方法 dev.langchain4j.store.embedding.EmbeddingMatch
Returns the relevance score (derivative of cosine distance) of this embedding compared to a reference embedding during a search.
score(TextSegment, String) - 接口中的方法 dev.langchain4j.model.scoring.ScoringModel
Scores a given TextSegment against a given query.
score(String, String) - 接口中的方法 dev.langchain4j.model.scoring.ScoringModel
Scores a given text against a given query.
scoreAll(List<TextSegment>, String) - 接口中的方法 dev.langchain4j.model.scoring.ScoringModel
Scores all provided TextSegments against a given query.
ScoringModel - dev.langchain4j.model.scoring中的接口
Represents a model capable of scoring a text against a query.
search(EmbeddingSearchRequest) - 接口中的方法 dev.langchain4j.store.embedding.EmbeddingStore
Searches for the most similar (closest in the embedding space) Embeddings.
search(WebSearchRequest) - 接口中的方法 dev.langchain4j.web.search.WebSearchEngine
Performs a search request on the web search engine and returns the search results.
search(String) - 接口中的方法 dev.langchain4j.web.search.WebSearchEngine
Performs a search query on the web search engine and returns the search results.
searchInformation() - 类中的方法 dev.langchain4j.web.search.WebSearchResults
Gets the information about the web search.
searchMetadata() - 类中的方法 dev.langchain4j.web.search.WebSearchResults
Gets the metadata associated with the web search.
searchTerms() - 类中的方法 dev.langchain4j.web.search.WebSearchRequest
Get the search terms.
searchTerms(String) - 类中的方法 dev.langchain4j.web.search.WebSearchRequest.Builder
Set the search terms.
searchWeb(String) - 类中的方法 dev.langchain4j.web.search.WebSearchTool
Runs a search query on the web search engine and returns a pretty-string representation of the search results.
ServiceHelper - dev.langchain4j.spi中的类
Utility wrapper around ServiceLoader.load().
singleText() - 类中的方法 dev.langchain4j.data.message.UserMessage
Returns text from a single TextContent.
sleep(int) - 类中的方法 dev.langchain4j.internal.RetryUtils.RetryPolicy
This method sleeps for a given attempt.
snippet() - 类中的方法 dev.langchain4j.web.search.WebSearchOrganicResult
Returns the snippet associated with the web page.
split(Document) - 接口中的方法 dev.langchain4j.data.document.DocumentSplitter
Splits a single Document into a list of TextSegment objects.
splitAll(List<Document>) - 接口中的方法 dev.langchain4j.data.document.DocumentSplitter
Splits a list of Documents into a list of TextSegment objects.
startIndex() - 类中的方法 dev.langchain4j.web.search.WebSearchRequest
Get the start index for search results.
startIndex(Integer) - 类中的方法 dev.langchain4j.web.search.WebSearchRequest.Builder
Set the start index for search results.
startPage() - 类中的方法 dev.langchain4j.web.search.WebSearchRequest
Get the start page number for search results.
startPage(Integer) - 类中的方法 dev.langchain4j.web.search.WebSearchRequest.Builder
Set the start page number for search results.
STOP - enum class 中的枚举常量 dev.langchain4j.model.output.FinishReason
The model call finished because the model decided the request was done.
StreamingChatLanguageModel - dev.langchain4j.model.chat中的接口
Represents a language model that has a chat interface and can stream a response one token at a time.
StreamingLanguageModel - dev.langchain4j.model.language中的接口
Represents a language model that has a simple text interface (as opposed to a chat interface) and can stream a response one token at a time.
StreamingResponseHandler<T> - dev.langchain4j.model中的接口
Represents a handler for streaming responses from a language model.
STRING - 类中的静态变量 dev.langchain4j.agent.tool.JsonSchemaProperty
A property with key "type" and value "string".
StructuredPrompt - dev.langchain4j.model.input.structured中的Annotation Interface
Represents a structured prompt.
StructuredPrompt.Util - dev.langchain4j.model.input.structured中的类
Utility class for StructuredPrompt.
StructuredPromptFactory - dev.langchain4j.spi.prompt.structured中的接口
Represents a factory for structured prompts.
StructuredPromptProcessor - dev.langchain4j.model.input.structured中的类
Utility class for structured prompts.
sum(TokenUsage, TokenUsage) - 类中的静态方法 dev.langchain4j.model.output.TokenUsage
Adds two token usages.
SYSTEM - enum class 中的枚举常量 dev.langchain4j.data.message.ChatMessageType
A message from the system, typically defined by a developer.
systemMessage(String) - 类中的静态方法 dev.langchain4j.data.message.SystemMessage
Creates a new system message.
SystemMessage - dev.langchain4j.data.message中的类
Represents a system message, typically defined by a developer.
SystemMessage(String) - 类的构造器 dev.langchain4j.data.message.SystemMessage
Creates a new system message.

T

temperature() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelRequest
 
template() - 类中的方法 dev.langchain4j.model.input.PromptTemplate
 
test(Object) - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsEqualTo
 
test(Object) - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsGreaterThan
 
test(Object) - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsGreaterThanOrEqualTo
 
test(Object) - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsIn
 
test(Object) - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsLessThan
 
test(Object) - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsLessThanOrEqualTo
 
test(Object) - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsNotEqualTo
 
test(Object) - 类中的方法 dev.langchain4j.store.embedding.filter.comparison.IsNotIn
 
test(Object) - 接口中的方法 dev.langchain4j.store.embedding.filter.Filter
Tests if a given object satisfies this Filter.
test(Object) - 类中的方法 dev.langchain4j.store.embedding.filter.logical.And
 
test(Object) - 类中的方法 dev.langchain4j.store.embedding.filter.logical.Not
 
test(Object) - 类中的方法 dev.langchain4j.store.embedding.filter.logical.Or
 
text() - 类中的方法 dev.langchain4j.data.document.Document
Returns the text of this document.
text() - 类中的方法 dev.langchain4j.data.message.AiMessage
Get the text of the message.
text() - 接口中的方法 dev.langchain4j.data.message.ChatMessage
已过时。
decode through ChatMessage.type() instead.
text() - 类中的方法 dev.langchain4j.data.message.SystemMessage
Returns the message text.
text() - 类中的方法 dev.langchain4j.data.message.TextContent
Returns the text.
text() - 类中的方法 dev.langchain4j.data.message.ToolExecutionResultMessage
Returns the result of the tool execution.
text() - 类中的方法 dev.langchain4j.data.message.UserMessage
已过时。
text() - 类中的方法 dev.langchain4j.data.segment.TextSegment
Returns the text.
text() - 类中的方法 dev.langchain4j.model.input.Prompt
The text of the prompt.
text() - 类中的方法 dev.langchain4j.rag.query.Query
 
TEXT - enum class 中的枚举常量 dev.langchain4j.data.message.ContentType
Text content.
TextClassifier<E extends Enum<E>> - dev.langchain4j.classification中的接口
Classifies given text according to specified enum.
TextContent - dev.langchain4j.data.message中的类
Represents a text content.
TextContent(String) - 类的构造器 dev.langchain4j.data.message.TextContent
Creates a new text content.
textSegment() - 类中的方法 dev.langchain4j.rag.content.Content
 
textSegment(String) - 类中的静态方法 dev.langchain4j.data.segment.TextSegment
Creates a new text segment.
textSegment(String, Metadata) - 类中的静态方法 dev.langchain4j.data.segment.TextSegment
Creates a new text segment.
TextSegment - dev.langchain4j.data.segment中的类
Represents a semantically meaningful segment (chunk/piece/fragment) of a larger entity such as a document or chat conversation.
TextSegment(String, Metadata) - 类的构造器 dev.langchain4j.data.segment.TextSegment
Creates a new text segment.
textSegmentTransformer(TextSegmentTransformer) - 类中的方法 dev.langchain4j.store.embedding.EmbeddingStoreIngestor.Builder
Sets the text segment transformer.
TextSegmentTransformer - dev.langchain4j.data.segment中的接口
Defines the interface for transforming a TextSegment.
title() - 类中的方法 dev.langchain4j.web.search.WebSearchOrganicResult
Returns the title of the web page.
toAiMessage() - 类中的方法 dev.langchain4j.model.input.Prompt
Convert this prompt to an AiMessage.
toContentRetriever() - 接口中的方法 dev.langchain4j.retriever.Retriever
已过时。
 
toDocument() - 类中的方法 dev.langchain4j.web.search.WebSearchOrganicResult
Converts this WebSearchOrganicResult to a Document.
toDocuments() - 类中的方法 dev.langchain4j.web.search.WebSearchResults
Converts the organic search results to a list of documents.
toInputStream(Object, Class<?>) - 接口中的方法 dev.langchain4j.internal.Json.JsonCodec
Convert the given object to an InputStream.
toInputStream(Object, Class<?>) - 类中的静态方法 dev.langchain4j.internal.Json
Convert the given object to an InputStream.
toJson(Object) - 接口中的方法 dev.langchain4j.internal.Json.JsonCodec
Convert the given object to JSON.
toJson(Object) - 类中的静态方法 dev.langchain4j.internal.Json
Convert the given object to JSON.
TokenCountEstimator - dev.langchain4j.model.chat中的接口
Represents an interface for estimating the count of tokens in various text types such as a text, message, prompt, text segment, etc.
TokenCountEstimator - dev.langchain4j.model.embedding中的接口
Represents an interface for estimating the count of tokens in various texts, text segments, etc.
TokenCountEstimator - dev.langchain4j.model.language中的接口
Represents an interface for estimating the count of tokens in various text types such as a text, prompt, text segment, etc.
Tokenizer - dev.langchain4j.model中的接口
Represents an interface for estimating the count of tokens in various text types such as a text, prompt, text segment, etc.
tokenUsage() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelResponse
 
tokenUsage() - 类中的方法 dev.langchain4j.model.output.Response
Get the token usage statistics.
TokenUsage - dev.langchain4j.model.output中的类
Represents the token usage of a response.
TokenUsage() - 类的构造器 dev.langchain4j.model.output.TokenUsage
Creates a new TokenUsage instance with all fields set to null.
TokenUsage(Integer) - 类的构造器 dev.langchain4j.model.output.TokenUsage
Creates a new TokenUsage instance with the given input token count.
TokenUsage(Integer, Integer) - 类的构造器 dev.langchain4j.model.output.TokenUsage
Creates a new TokenUsage instance with the given input and output token counts.
TokenUsage(Integer, Integer, Integer) - 类的构造器 dev.langchain4j.model.output.TokenUsage
Creates a new TokenUsage instance with the given input, output and total token counts.
toMap() - 类中的方法 dev.langchain4j.data.document.Metadata
Get a copy of the metadata as a map of key-value pairs.
Tool - dev.langchain4j.agent.tool中的Annotation Interface
Java methods annotated with @Tool are considered tools/functions that language model can execute/call.
TOOL_EXECUTION - enum class 中的枚举常量 dev.langchain4j.model.output.FinishReason
The call finished signalling a need for tool execution.
TOOL_EXECUTION_RESULT - enum class 中的枚举常量 dev.langchain4j.data.message.ChatMessageType
A message from a tool.
ToolExecutionRequest - dev.langchain4j.agent.tool中的类
Represents an LLM-generated request to execute a tool.
ToolExecutionRequest.Builder - dev.langchain4j.agent.tool中的类
ToolExecutionRequest builder static inner class.
toolExecutionRequests() - 类中的方法 dev.langchain4j.data.message.AiMessage
Get the tool execution requests of the message.
ToolExecutionRequestUtil - dev.langchain4j.agent.tool中的类
Utility class for ToolExecutionRequest.
toolExecutionResultMessage(ToolExecutionRequest, String) - 类中的静态方法 dev.langchain4j.data.message.ToolExecutionResultMessage
Creates a ToolExecutionResultMessage from a ToolExecutionRequest and the result of the tool execution.
toolExecutionResultMessage(String, String, String) - 类中的静态方法 dev.langchain4j.data.message.ToolExecutionResultMessage
Creates a ToolExecutionResultMessage from a ToolExecutionRequest and the result of the tool execution.
ToolExecutionResultMessage - dev.langchain4j.data.message中的类
Represents the result of a tool execution in response to a ToolExecutionRequest.
ToolExecutionResultMessage(String, String, String) - 类的构造器 dev.langchain4j.data.message.ToolExecutionResultMessage
ToolMemoryId - dev.langchain4j.agent.tool中的Annotation Interface
If a Tool method parameter is annotated with this annotation, memory id (parameter annotated with @MemoryId in AI Service) will be injected automatically.
toolName() - 类中的方法 dev.langchain4j.data.message.ToolExecutionResultMessage
Returns the name of the tool.
ToolParameters - dev.langchain4j.agent.tool中的类
Represents the parameters of a tool.
ToolParameters.Builder - dev.langchain4j.agent.tool中的类
ToolParameters builder static inner class.
ToolSpecification - dev.langchain4j.agent.tool中的类
Describes a Tool.
ToolSpecification.Builder - dev.langchain4j.agent.tool中的类
ToolSpecification builder static inner class.
toolSpecificationFrom(Method) - 类中的静态方法 dev.langchain4j.agent.tool.ToolSpecifications
Returns the ToolSpecification for the given method annotated with @Tool.
toolSpecifications() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelRequest
 
ToolSpecifications - dev.langchain4j.agent.tool中的类
Utility methods for ToolSpecifications.
toolSpecificationsFrom(Class<?>) - 类中的静态方法 dev.langchain4j.agent.tool.ToolSpecifications
Returns ToolSpecifications for all methods annotated with @Tool within the specified class.
toolSpecificationsFrom(Object) - 类中的静态方法 dev.langchain4j.agent.tool.ToolSpecifications
Returns ToolSpecifications for all methods annotated with @Tool within the class of the specified object.
topP() - 类中的方法 dev.langchain4j.model.chat.listener.ChatModelRequest
 
toPrompt(Object) - 类中的方法 dev.langchain4j.model.input.structured.DefaultStructuredPromptFactory
 
toPrompt(Object) - 类中的静态方法 dev.langchain4j.model.input.structured.StructuredPromptProcessor
Converts the given structured prompt to a prompt.
toPrompt(Object) - 接口中的方法 dev.langchain4j.spi.prompt.structured.StructuredPromptFactory
Converts the given structured prompt to a prompt.
toString() - 类中的方法 dev.langchain4j.agent.tool.JsonSchemaProperty
 
toString() - 类中的方法 dev.langchain4j.agent.tool.ToolExecutionRequest
 
toString() - 类中的方法 dev.langchain4j.agent.tool.ToolParameters
 
toString() - 类中的方法 dev.langchain4j.agent.tool.ToolSpecification
 
toString() - 类中的方法 dev.langchain4j.data.document.Document
 
toString() - 类中的方法 dev.langchain4j.data.document.Metadata
 
toString() - 类中的方法 dev.langchain4j.data.embedding.Embedding
 
toString() - 类中的方法 dev.langchain4j.data.image.Image
 
toString() - 类中的方法 dev.langchain4j.data.message.AiMessage
 
toString() - 类中的方法 dev.langchain4j.data.message.ImageContent
 
toString() - 类中的方法 dev.langchain4j.data.message.SystemMessage
 
toString() - 类中的方法 dev.langchain4j.data.message.TextContent
 
toString() - 类中的方法 dev.langchain4j.data.message.ToolExecutionResultMessage
 
toString() - 类中的方法 dev.langchain4j.data.message.UserMessage
 
toString() - 类中的方法 dev.langchain4j.data.segment.TextSegment
 
toString() - 类中的方法 dev.langchain4j.model.input.Prompt
 
toString() - 类中的方法 dev.langchain4j.model.moderation.Moderation
 
toString() - 类中的方法 dev.langchain4j.model.output.Response
 
toString() - 类中的方法 dev.langchain4j.model.output.TokenUsage
 
toString() - 类中的方法 dev.langchain4j.rag.content.Content
 
toString() - 类中的方法 dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
toString() - 类中的方法 dev.langchain4j.rag.query.Metadata
 
toString() - 类中的方法 dev.langchain4j.rag.query.Query
 
toString() - 类中的方法 dev.langchain4j.store.embedding.EmbeddingMatch
 
toString() - 类中的方法 dev.langchain4j.web.search.WebSearchInformationResult
 
toString() - 类中的方法 dev.langchain4j.web.search.WebSearchOrganicResult
 
toString() - 类中的方法 dev.langchain4j.web.search.WebSearchRequest
 
toString() - 类中的方法 dev.langchain4j.web.search.WebSearchResults
 
toSystemMessage() - 类中的方法 dev.langchain4j.model.input.Prompt
Convert this prompt to a SystemMessage.
totalResults() - 类中的方法 dev.langchain4j.web.search.WebSearchInformationResult
Gets the total number of results.
totalTokenCount() - 类中的方法 dev.langchain4j.model.output.TokenUsage
Returns the total token count, or null if unknown.
toTextSegment() - 类中的方法 dev.langchain4j.data.document.Document
Builds a TextSegment from this document.
toTextSegment() - 类中的方法 dev.langchain4j.web.search.WebSearchOrganicResult
Converts this WebSearchOrganicResult to a TextSegment.
toTextSegments() - 类中的方法 dev.langchain4j.web.search.WebSearchResults
Converts the organic search results to a list of text segments.
toUserMessage() - 类中的方法 dev.langchain4j.model.input.Prompt
Convert this prompt to a UserMessage.
toUserMessage(String) - 类中的方法 dev.langchain4j.model.input.Prompt
Convert this prompt to a UserMessage with specified userName.
transform(Document) - 接口中的方法 dev.langchain4j.data.document.DocumentTransformer
Transforms a provided document.
transform(TextSegment) - 接口中的方法 dev.langchain4j.data.segment.TextSegmentTransformer
Transforms a provided segment.
transform(Query) - 类中的方法 dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
transform(Query) - 类中的方法 dev.langchain4j.rag.query.transformer.DefaultQueryTransformer
 
transform(Query) - 类中的方法 dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
transform(Query) - 接口中的方法 dev.langchain4j.rag.query.transformer.QueryTransformer
Transforms the given Query into one or multiple Querys.
transformAll(List<Document>) - 接口中的方法 dev.langchain4j.data.document.DocumentTransformer
Transforms all the provided documents.
transformAll(List<TextSegment>) - 接口中的方法 dev.langchain4j.data.segment.TextSegmentTransformer
Transforms all the provided segments.
type() - 类中的方法 dev.langchain4j.agent.tool.ToolParameters
Returns the type of the tool.
type() - 类中的方法 dev.langchain4j.data.message.AiMessage
 
type() - 接口中的方法 dev.langchain4j.data.message.ChatMessage
The type of the message.
type() - 接口中的方法 dev.langchain4j.data.message.Content
Returns the type of content.
type() - 类中的方法 dev.langchain4j.data.message.ImageContent
 
type() - 类中的方法 dev.langchain4j.data.message.SystemMessage
 
type() - 类中的方法 dev.langchain4j.data.message.TextContent
 
type() - 类中的方法 dev.langchain4j.data.message.ToolExecutionResultMessage
 
type() - 类中的方法 dev.langchain4j.data.message.UserMessage
 
type(String) - 类中的静态方法 dev.langchain4j.agent.tool.JsonSchemaProperty
Construct a property with key "type" and value.
type(String) - 类中的方法 dev.langchain4j.agent.tool.ToolParameters.Builder
Sets the type.

U

updateMessages(Object, List<ChatMessage>) - 接口中的方法 dev.langchain4j.store.memory.chat.ChatMemoryStore
Updates messages for a specified chat memory.
updateMessages(Object, List<ChatMessage>) - 类中的方法 dev.langchain4j.store.memory.chat.InMemoryChatMemoryStore
 
url() - 类中的方法 dev.langchain4j.data.image.Image
Get the url of the image.
url() - 类中的方法 dev.langchain4j.web.search.WebSearchOrganicResult
Returns the URL associated with the web page.
url(String) - 类中的方法 dev.langchain4j.data.image.Image.Builder
Set the url of the image.
url(URI) - 类中的方法 dev.langchain4j.data.image.Image.Builder
Set the url of the image.
URL - 类中的静态变量 dev.langchain4j.data.document.Document
Common metadata key for the URL from which the document was loaded.
USER - enum class 中的枚举常量 dev.langchain4j.data.message.ChatMessageType
A message from the user.
userMessage() - 类中的方法 dev.langchain4j.rag.query.Metadata
 
userMessage(Content...) - 类中的静态方法 dev.langchain4j.data.message.UserMessage
Create a UserMessage from contents.
userMessage(String) - 类中的静态方法 dev.langchain4j.data.message.UserMessage
Create a UserMessage from a text.
userMessage(String, Content...) - 类中的静态方法 dev.langchain4j.data.message.UserMessage
Create a UserMessage from a name and contents.
userMessage(String, String) - 类中的静态方法 dev.langchain4j.data.message.UserMessage
Create a UserMessage from a name and a text.
userMessage(String, List<Content>) - 类中的静态方法 dev.langchain4j.data.message.UserMessage
Create a UserMessage from a name and contents.
userMessage(List<Content>) - 类中的静态方法 dev.langchain4j.data.message.UserMessage
Create a UserMessage from contents.
UserMessage - dev.langchain4j.data.message中的类
Represents a message from a user, typically an end user of the application.
UserMessage(Content...) - 类的构造器 dev.langchain4j.data.message.UserMessage
Creates a UserMessage from one or multiple Contents.
UserMessage(String) - 类的构造器 dev.langchain4j.data.message.UserMessage
Creates a UserMessage from a text.
UserMessage(String, Content...) - 类的构造器 dev.langchain4j.data.message.UserMessage
Creates a UserMessage from a name and one or multiple Contents.
UserMessage(String, String) - 类的构造器 dev.langchain4j.data.message.UserMessage
Creates a UserMessage from a name and a text.
UserMessage(String, List<Content>) - 类的构造器 dev.langchain4j.data.message.UserMessage
Creates a UserMessage from a name and a list of Contents.
UserMessage(List<Content>) - 类的构造器 dev.langchain4j.data.message.UserMessage
Creates a UserMessage from a list of Contents.
Utils - dev.langchain4j.internal中的类
Utility methods.

V

validateSpecifications(List<ToolSpecification>) - 类中的静态方法 dev.langchain4j.agent.tool.ToolSpecifications
Validates all the ToolSpecifications.
validateStructuredPrompt(Object) - 类中的静态方法 dev.langchain4j.model.input.structured.StructuredPrompt.Util
Validates that the given object is annotated with StructuredPrompt.
ValidationUtils - dev.langchain4j.internal中的类
Utility class for validating method arguments.
value() - 类中的方法 dev.langchain4j.agent.tool.JsonSchemaProperty
Get the value.
value() - annotation interface 中的元素 dev.langchain4j.agent.tool.P
Description of a parameter
value() - annotation interface 中的元素 dev.langchain4j.agent.tool.Tool
Description of the tool.
value() - annotation interface 中的元素 dev.langchain4j.model.input.structured.StructuredPrompt
Prompt template can be defined in one line or multiple lines.
value() - annotation interface 中的元素 dev.langchain4j.model.output.structured.Description
The description can be defined in one line or multiple lines.
valueOf(String) - enum class中的静态方法 dev.langchain4j.data.message.ChatMessageType
Returns the enum constant of this class with the specified name.
valueOf(String) - enum class中的静态方法 dev.langchain4j.data.message.ContentType
Returns the enum constant of this class with the specified name.
valueOf(String) - enum class中的静态方法 dev.langchain4j.data.message.ImageContent.DetailLevel
Returns the enum constant of this class with the specified name.
valueOf(String) - enum class中的静态方法 dev.langchain4j.model.output.FinishReason
Returns the enum constant of this class with the specified name.
valueOf(String) - enum class中的静态方法 dev.langchain4j.rag.query.router.LanguageModelQueryRouter.FallbackStrategy
Returns the enum constant of this class with the specified name.
values() - enum class中的静态方法 dev.langchain4j.data.message.ChatMessageType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - enum class中的静态方法 dev.langchain4j.data.message.ContentType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - enum class中的静态方法 dev.langchain4j.data.message.ImageContent.DetailLevel
Returns an array containing the constants of this enum class, in the order they are declared.
values() - enum class中的静态方法 dev.langchain4j.model.output.FinishReason
Returns an array containing the constants of this enum class, in the order they are declared.
values() - enum class中的静态方法 dev.langchain4j.rag.query.router.LanguageModelQueryRouter.FallbackStrategy
Returns an array containing the constants of this enum class, in the order they are declared.
vector() - 类中的方法 dev.langchain4j.data.embedding.Embedding
Returns the vector.
vectorAsList() - 类中的方法 dev.langchain4j.data.embedding.Embedding
Returns a copy of the vector as a list.

W

WebSearchContentRetriever - dev.langchain4j.rag.content.retriever中的类
A ContentRetriever that retrieves relevant Content from the web using a WebSearchEngine.
WebSearchContentRetriever(WebSearchEngine, Integer) - 类的构造器 dev.langchain4j.rag.content.retriever.WebSearchContentRetriever
 
WebSearchEngine - dev.langchain4j.web.search中的接口
Represents a web search engine that can be used to perform searches on the Web in response to a user query.
WebSearchInformationResult - dev.langchain4j.web.search中的类
Represents general information about the web search performed.
WebSearchInformationResult(Long) - 类的构造器 dev.langchain4j.web.search.WebSearchInformationResult
Constructs a new WebSearchInformationResult with the specified total results.
WebSearchInformationResult(Long, Integer, Map<String, Object>) - 类的构造器 dev.langchain4j.web.search.WebSearchInformationResult
Constructs a new WebSearchInformationResult with the specified total results, page number, and metadata.
WebSearchOrganicResult - dev.langchain4j.web.search中的类
Represents an organic search results are the web pages that are returned by the search engine in response to a search query.
WebSearchOrganicResult(String, URI) - 类的构造器 dev.langchain4j.web.search.WebSearchOrganicResult
Constructs a WebSearchOrganicResult object with the given title and URL.
WebSearchOrganicResult(String, URI, String, String) - 类的构造器 dev.langchain4j.web.search.WebSearchOrganicResult
Constructs a WebSearchOrganicResult object with the given title, URL, snippet and/or content.
WebSearchOrganicResult(String, URI, String, String, Map<String, String>) - 类的构造器 dev.langchain4j.web.search.WebSearchOrganicResult
Constructs a WebSearchOrganicResult object with the given title, URL, snippet and/or content, and metadata.
WebSearchRequest - dev.langchain4j.web.search中的类
Represents a search request that can be made by the user to perform searches in any implementation of WebSearchEngine.
WebSearchRequest.Builder - dev.langchain4j.web.search中的类
 
WebSearchResults - dev.langchain4j.web.search中的类
Represents the response of a web search performed.
WebSearchResults(WebSearchInformationResult, List<WebSearchOrganicResult>) - 类的构造器 dev.langchain4j.web.search.WebSearchResults
Constructs a new instance of WebSearchResults.
WebSearchResults(Map<String, Object>, WebSearchInformationResult, List<WebSearchOrganicResult>) - 类的构造器 dev.langchain4j.web.search.WebSearchResults
Constructs a new instance of WebSearchResults.
WebSearchTool - dev.langchain4j.web.search中的类
 
WebSearchTool(WebSearchEngine) - 类的构造器 dev.langchain4j.web.search.WebSearchTool
 
withRetry(Callable<T>) - 类中的方法 dev.langchain4j.internal.RetryUtils.RetryPolicy
This method attempts to execute a given action up to a specified number of times with a 1-second delay.
withRetry(Callable<T>) - 类中的静态方法 dev.langchain4j.internal.RetryUtils
This method attempts to execute a given action up to a specified number of times with a 1-second delay.
withRetry(Callable<T>, int) - 类中的方法 dev.langchain4j.internal.RetryUtils.RetryPolicy
This method attempts to execute a given action up to a specified number of times with a 1-second delay.
withRetry(Callable<T>, int) - 类中的静态方法 dev.langchain4j.internal.RetryUtils
This method attempts to execute a given action up to a specified number of times with a 1-second delay.
A B C D E F G H I J K L M N O P Q R S T U V W 
All Classes and Interfaces|常量字段值|所有程序包|序列化表格