Deprecated API
Contents
- Terminally Deprecated
- Packages
- Interfaces
- Classes
- Enum Classes
- Annotation Interfaces
- Methods
- Constructors
- Enum Constants
-
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 class has been moved to the `langchain4j-guardrails` module and will be removed in a future release. * Add a dependency on `dev.langchain4j:langchain4j-guardrails` and use the class from that module instead.This method is not supported on the official MCP registry anymore.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
AnthropicTool(Builder)insteadPlease usebuilder()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.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.Please useOpenAiChatModelfrom thelangchain4j-open-aimodule 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 useOpenAiChatModelfrom thelangchain4j-open-aimodule instead:ChatModel model = OpenAiChatModel.builder() .apiKey(System.getenv("HF_API_KEY")) .baseUrl("https://router.huggingface.co/v1") .modelName("HuggingFaceTB/SmolLM3-3B:hf-inference") .build();useEmbeddingRequestfromlangchain4j-open-aimodule insteaduseEmbeddingResponsefromlangchain4j-open-aimodule insteadDo not use anymore, uselangchain4j-open-aimodule insteadDo not use anymore, uselangchain4j-open-aimodule insteadDo not use anymore, uselangchain4j-open-aimodule insteaduseOpenAiEmbeddingModelfromlangchain4j-open-aimodule 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 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.In favor ofEmbeddingVectorto avoid naming collisions
-
Deprecated PackagesPackageDescriptionThis module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.
-
Deprecated InterfacesInterfaceDescriptionThis module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.Do not use anymore, use
langchain4j-open-aimodule instead
-
Deprecated ClassesClassDescriptionThis class has been moved to the `langchain4j-guardrails` module and will be removed in a future release. * Add a dependency on `dev.langchain4j:langchain4j-guardrails` and use the class from that module instead.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.Please use
OpenAiChatModelfrom thelangchain4j-open-aimodule 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 useOpenAiChatModelfrom thelangchain4j-open-aimodule instead:ChatModel model = OpenAiChatModel.builder() .apiKey(System.getenv("HF_API_KEY")) .baseUrl("https://router.huggingface.co/v1") .modelName("HuggingFaceTB/SmolLM3-3B:hf-inference") .build();useEmbeddingRequestfromlangchain4j-open-aimodule insteaduseEmbeddingResponsefromlangchain4j-open-aimodule insteadDo not use anymore, uselangchain4j-open-aimodule insteadDo not use anymore, uselangchain4j-open-aimodule insteaduseOpenAiEmbeddingModelfromlangchain4j-open-aimodule instead
-
Deprecated Enum ClassesEnum ClassDescriptionThis module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.This module is deprecated and will be removed in a future release. Please use the langchain4j-openai-official module instead.
-
Deprecated Annotation Interfaces
-
Deprecated MethodsMethodDescriptionUse
AgentBuilder.maxToolCallingRoundTrips(int)instead.misspelled method name, useDockerMcpTransport.Builder.dockerTlsVerify(Boolean)instead.This method is not supported on the official MCP registry anymore.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 usebuilder()instead, and explicitly set the model name and, if necessary, other parameters.Proxy configuration viaproxy(...)is no longer supported since the migration to the langchain4j HttpClient abstraction. Passing a non-null proxy will cause anUnsupportedOperationExceptionwhen the model is built. To configure a proxy, supply a customHttpClientBuilderviaCohereScoringModel.CohereScoringModelBuilder.httpClientBuilder(HttpClientBuilder)instead.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!UseAiServices.maxToolCallingRoundTrips(int)instead.useAiServices.tools(List)instead in order to specifyReturnBehavioruseAiServiceTool.returnBehavior()insteadPlease setToolErrorContext.Builder.invocationContext(InvocationContext)insteadPlease useToolExecution.Builder.result(ToolExecutionResult)insteaduseToolProviderResult.aiServiceTools()to get tool'sReturnBehavioruseToolProviderResult.aiServiceTools()insteaduseToolService.returnBehavior(String)insteadUseToolService.maxToolCallingRoundTrips()instead.UseToolService.maxToolCallingRoundTrips(int)instead.useToolService.toolProviders()insteaduseToolServiceContext.Builder.returnBehaviors(Map)insteaduseToolServiceContext.Builder.effectiveTools(List)insteaduseToolServiceContext.returnBehavior(String)insteaduseToolServiceContext.effectiveTools()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
AnthropicTool(Builder)insteadplease useAnthropicToolSchema(Builder)insteadplease useVertexAiGeminiChatModel(VertexAiGeminiChatModelBuilder)insteadplease useVertexAiGeminiStreamingChatModel(VertexAiGeminiStreamingChatModelBuilder)insteadPlease useVertexAiChatModel(Builder)insteadPlease useVertexAiEmbeddingModel(Builder)insteaduseToolServiceContext(Builder)insteadPlease useToolServiceResult(Builder)insteadOnly works with the V1 API, use theChromaEmbeddingStore(Builder)constructor instead.
-
Deprecated Enum ConstantsEnum ConstantDescriptionDALL-E models have been deprecated by OpenAI. Use
OpenAiImageModelName.GPT_IMAGE_1or other GPT image models instead.DALL-E models have been deprecated by OpenAI. UseOpenAiImageModelName.GPT_IMAGE_1or other GPT image models instead.