Uses of Annotation Interface
dev.langchain4j.Experimental
Package
Description
-
Uses of Experimental in dev.langchain4j.data.audio
-
Uses of Experimental in dev.langchain4j.data.message
Modifier and TypeClassDescriptionclass
class
class
class
-
Uses of Experimental in dev.langchain4j.data.pdf
-
Uses of Experimental in dev.langchain4j.data.text
-
Uses of Experimental in dev.langchain4j.data.video
-
Uses of Experimental in dev.langchain4j.exception
-
Uses of Experimental in dev.langchain4j.experimental.rag.content.retriever.sql
Modifier and TypeClassDescriptionclass
WARNING! Although fun and exciting, this class is dangerous to use! Do not ever use this in production! The database user must have very limited READ-ONLY permissions! Although the generated SQL is somewhat validated (to ensure that the SQL is a SELECT statement) using JSqlParser, this class does not guarantee that the SQL will be harmless.ModifierConstructorDescriptionSqlDatabaseContentRetriever
(DataSource dataSource, String sqlDialect, String databaseStructure, PromptTemplate promptTemplate, ChatLanguageModel chatLanguageModel, Integer maxRetries) Creates an instance of aSqlDatabaseContentRetriever
. -
Uses of Experimental in dev.langchain4j.model.chat
Modifier and TypeClassDescriptionenum
Represents a capability of aChatLanguageModel
orStreamingChatLanguageModel
.Modifier and TypeMethodDescriptiondefault ChatResponse
ChatLanguageModel.chat
(ChatRequest chatRequest) This is the main API to interact with the chat model.default String
default void
StreamingChatLanguageModel.chat
(ChatRequest chatRequest, StreamingChatResponseHandler handler) This is the main API to interact with the chat model.default ChatRequestParameters
ChatLanguageModel.defaultRequestParameters()
default ChatRequestParameters
StreamingChatLanguageModel.defaultRequestParameters()
default Set
<Capability> ChatLanguageModel.supportedCapabilities()
default Set
<Capability> StreamingChatLanguageModel.supportedCapabilities()
-
Uses of Experimental in dev.langchain4j.model.chat.listener
Modifier and TypeClassDescriptionclass
The error context.interface
AChatLanguageModel
listener that listens for requests, responses and errors.class
A request to theChatLanguageModel
orStreamingChatLanguageModel
, intended to be used withChatModelListener
.class
The request context.class
A response from theChatLanguageModel
orStreamingChatLanguageModel
, intended to be used withChatModelListener
.class
The response context.Modifier and TypeMethodDescriptiondefault void
ChatModelListener.onError
(ChatModelErrorContext errorContext) This method is called when an error occurs during interaction with the model.default void
ChatModelListener.onRequest
(ChatModelRequestContext requestContext) This method is called before the request is sent to the model.default void
ChatModelListener.onResponse
(ChatModelResponseContext responseContext) This method is called after the response is received from the model. -
Uses of Experimental in dev.langchain4j.model.chat.request
Modifier and TypeClassDescriptionclass
interface
Represents common chat request parameters supported by most LLM providers.class
class
enum
enum
Modifier and TypeMethodDescriptionChatRequest.Builder.parameters
(ChatRequestParameters parameters) ChatRequest.parameters()
-
Uses of Experimental in dev.langchain4j.model.chat.request.json
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
Can referenceJsonObjectSchema
when recursion is required.class
interface
A base interface for a JSON schema element.class
-
Uses of Experimental in dev.langchain4j.model.chat.response
Modifier and TypeClassDescriptionclass
class
Represents common chat response metadata supported by most LLM providers. -
Uses of Experimental in dev.langchain4j.model.googleai
Modifier and TypeClassDescriptionclass
class
class
-
Uses of Experimental in dev.langchain4j.model.openai
Modifier and TypeClassDescriptionclass
class
class
static final record
static final record
Modifier and TypeMethodDescriptionOpenAiTokenUsage.Builder.inputTokensDetails
(OpenAiTokenUsage.InputTokensDetails inputTokensDetails) OpenAiTokenUsage.inputTokensDetails()
OpenAiTokenUsage.Builder.outputTokensDetails
(OpenAiTokenUsage.OutputTokensDetails outputTokensDetails) OpenAiTokenUsage.outputTokensDetails()
-
Uses of Experimental in dev.langchain4j.rag
Modifier and TypeInterfaceDescriptioninterface
Augments the providedChatMessage
with retrievedContent
s. -
Uses of Experimental in dev.langchain4j.rag.content.aggregator
Modifier and TypeInterfaceDescriptioninterface
-
Uses of Experimental in dev.langchain4j.rag.content.injector
-
Uses of Experimental in dev.langchain4j.rag.query.router
Modifier and TypeInterfaceDescriptioninterface
Routes the givenQuery
to one or multipleContentRetriever
s. -
Uses of Experimental in dev.langchain4j.rag.query.transformer
Modifier and TypeInterfaceDescriptioninterface
-
Uses of Experimental in dev.langchain4j.service
Modifier and TypeMethodDescriptionTokenStream.onCompleteResponse
(Consumer<ChatResponse> completeResponseHandler) The provided handler will be invoked when a language model finishes streaming a response.TokenStream.onPartialResponse
(Consumer<String> partialResponseHandler) The provided consumer will be invoked every time a new partial response (usually a single token) from a language model is available. -
Uses of Experimental in dev.langchain4j.service.output
-
Uses of Experimental in dev.langchain4j.store.embedding
Modifier and TypeMethodDescriptiondefault void
Removes a single embedding from the store by ID.default void
EmbeddingStore.removeAll()
Removes all embeddings from the store.default void
Removes all embeddings that match the specifiedFilter
from the store.default void
EmbeddingStore.removeAll
(Collection<String> ids) Removes all embeddings that match the specified IDs from the store. -
Uses of Experimental in dev.langchain4j.store.embedding.filter.builder.sql
Modifier and TypeClassDescriptionclass
class
class
-
Uses of Experimental in dev.langchain4j.store.embedding.filter.parser.sql
Modifier and TypeClassDescriptionclass
Parses an SQL "WHERE" clause into aFilter
object using JSqlParser.