Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionUse the constructor with suppliers for Tika components if you intend to use this parser for multiple files and specify whether to include metadata or not.Use the constructor with suppliers for Tika components if you intend to use this parser for multiple files.This field was removed in the 2025-09-29 version of the schema.This field was moved to the McpOfficialMeta object in schema version 2025-09-29Please use
builder()
instead, and explicitly set the model name and, if necessary, other parameters.Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters.Please useOpenAiChatModel
from thelangchain4j-open-ai
module instead:ChatModel model = OpenAiChatModel.builder() .apiKey(System.getenv("HF_API_KEY")) .baseUrl("https://router.huggingface.co/v1") .modelName("HuggingFaceTB/SmolLM3-3B:hf-inference") .build();
Please useOpenAiChatModel
from thelangchain4j-open-ai
module instead:ChatModel model = OpenAiChatModel.builder() .apiKey(System.getenv("HF_API_KEY")) .baseUrl("https://router.huggingface.co/v1") .modelName("HuggingFaceTB/SmolLM3-3B:hf-inference") .build();
Please usebuilder()
instead, and explicitly set the baseUrl and, if necessary, other parameters. The default value for baseUrl will be removed in future releases!please useVertexAiGeminiChatModel(VertexAiGeminiChatModelBuilder)
insteadplease useVertexAiGeminiStreamingChatModel(VertexAiGeminiStreamingChatModelBuilder)
insteadPlease useVertexAiChatModel(Builder)
insteadPlease useVertexAiEmbeddingModel(Builder)
insteadOnly works with the V1 API, use theChromaEmbeddingStore(Builder)
constructor instead.dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore.Builder.dimension(Integer) dimension is not used anymore.
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionPlease use
OpenAiChatModel
from thelangchain4j-open-ai
module instead:ChatModel model = OpenAiChatModel.builder() .apiKey(System.getenv("HF_API_KEY")) .baseUrl("https://router.huggingface.co/v1") .modelName("HuggingFaceTB/SmolLM3-3B:hf-inference") .build();
Please useOpenAiChatModel
from thelangchain4j-open-ai
module instead:ChatModel model = OpenAiChatModel.builder() .apiKey(System.getenv("HF_API_KEY")) .baseUrl("https://router.huggingface.co/v1") .modelName("HuggingFaceTB/SmolLM3-3B:hf-inference") .build();
-
Deprecated MethodsMethodDescriptionThis field was removed in the 2025-09-29 version of the schema.This field was moved to the McpOfficialMeta object in schema version 2025-09-29Please use
builder()
instead, and explicitly set the model name and, if necessary, other parameters.Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters.Functions are deprecated by OpenAI, useOpenAiUtils.toTools(Collection, boolean)
insteadPlease usebuilder()
instead, and explicitly set the baseUrl and, if necessary, other parameters. The default value for baseUrl will be removed in future releases!Please setToolErrorContext.Builder.invocationContext(InvocationContext)
insteadPlease useToolExecution.Builder.result(ToolExecutionResult)
insteadPlease useToolServiceResult.aggregateResponse()
instead for claritydev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore.Builder.dimension(Integer) dimension is not used anymore.
-
Deprecated ConstructorsConstructorDescriptionUse the constructor with suppliers for Tika components if you intend to use this parser for multiple files and specify whether to include metadata or not.Use the constructor with suppliers for Tika components if you intend to use this parser for multiple files.please use
VertexAiGeminiChatModel(VertexAiGeminiChatModelBuilder)
insteadplease useVertexAiGeminiStreamingChatModel(VertexAiGeminiStreamingChatModelBuilder)
insteadPlease useVertexAiChatModel(Builder)
insteadPlease useVertexAiEmbeddingModel(Builder)
insteadPlease useToolServiceResult(Builder)
insteadOnly works with the V1 API, use theChromaEmbeddingStore(Builder)
constructor instead.
-
Deprecated Enum Constants