Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionplease use the new
JsonSchemaElement
API instead to define the schema for tool parametersplease use the newJsonSchemaElement
API instead to define the schema for tool parametersplease useJsonArraySchema.builder()
insteadplease useJsonBooleanSchema()
insteadplease use the newJsonSchemaElement
API instead to define the schema for tool parametersplease useJsonEnumSchema
insteadplease useJsonEnumSchema
insteadplease useJsonEnumSchema
insteadplease use the newJsonSchemaElement
API instead to define the schema for tool parametersplease useJsonIntegerSchema()
insteadplease useJsonArraySchema
insteadplease useJsonNumberSchema()
insteadplease useJsonObjectSchema.builder()
insteadplease useJsonObjectSchema
insteadplease use the newJsonSchemaElement
API instead to define the schema for tool parametersplease useJsonStringSchema()
insteadplease use the newJsonSchemaElement
API instead to define the schema for tool parametersplease use the newJsonObjectSchema
API instead to define the schema for tool parameters. Example:ToolSpecification.builder() .name("weather") .description("Returns the current weather in the specified city") .parameters(JsonObjectSchema.builder() .addStringProperty("city", "The name of the city, e.g., Munich") .addEnumProperty("units", List.of("CELSIUS", "FAHRENHEIT")) .required("city") // please specify mandatory properties explicitly .build()) .build();
please useJsonObjectSchema.builder()
insteadplease useJsonObjectSchema.Builder.build()
insteadplease useJsonObjectSchema.Builder.addProperties(Map)
insteadplease useJsonObjectSchema.Builder.required(List)
insteadplease useJsonObjectSchema.builder()
insteadplease useToolSpecification.Builder.parameters(JsonObjectSchema)
instead. Example:ToolSpecification.builder() .name("weather") .description("Returns the current weather in the specified city") .parameters(JsonObjectSchema.builder() .addStringProperty("city", "The name of the city, e.g., Munich") .addEnumProperty("units", List.of("CELSIUS", "FAHRENHEIT")) .required("city") // please specify mandatory properties explicitly .build()) .build();
please useToolSpecification.Builder.parameters(JsonObjectSchema)
instead. Example:ToolSpecification.builder() .name("weather") .description("Returns the current weather in the specified city") .parameters(JsonObjectSchema.builder() .addStringProperty("city", "The name of the city, e.g., Munich") .addEnumProperty("units", List.of("CELSIUS", "FAHRENHEIT")) .required("city") // please specify mandatory properties explicitly .build()) .build();
please useToolSpecification.Builder.parameters(JsonObjectSchema)
instead. Example:ToolSpecification.builder() .name("weather") .description("Returns the current weather in the specified city") .parameters(JsonObjectSchema.builder() .addStringProperty("city", "The name of the city, e.g., Munich") .addEnumProperty("units", List.of("CELSIUS", "FAHRENHEIT")) .required("city") // please specify mandatory properties explicitly .build()) .build();
please useToolSpecification.Builder.parameters(JsonObjectSchema)
instead. Example:ToolSpecification.builder() .name("weather") .description("Returns the current weather in the specified city") .parameters(JsonObjectSchema.builder() .addStringProperty("city", "The name of the city, e.g., Munich") .addEnumProperty("units", List.of("CELSIUS", "FAHRENHEIT")) .required("city") // please specify mandatory properties explicitly .build()) .build();
please useToolSpecification.Builder.parameters(JsonObjectSchema)
instead. Example:ToolSpecification.builder() .name("weather") .description("Returns the current weather in the specified city") .parameters(JsonObjectSchema.builder() .addStringProperty("city", "The name of the city, e.g., Munich") .addEnumProperty("units", List.of("CELSIUS", "FAHRENHEIT")) .required("city") // please specify mandatory properties explicitly .build()) .build();
please useToolSpecification.parameters()
insteadPlease use another constructor with a newContentRetriever
instead.Use this instead:.retrievalAugmentor(DefaultRetrievalAugmentor.builder() .contentInjector(DefaultContentInjector.builder() .promptTemplate(promptTemplate) .build()) .build());
as of 0.31.0, useDocument.metadata()
and thenMetadata.getString(String)
,Metadata.getInteger(String)
,Metadata.getLong(String)
,Metadata.getFloat(String)
,Metadata.getDouble(String)
instead.as of 0.31.0, useMetadata.put(String, String)
,Metadata.put(String, int)
,Metadata.put(String, long)
,Metadata.put(String, float)
,Metadata.put(String, double)
instead.as of 0.31.0, useMetadata.put(String, String)
,Metadata.put(String, int)
,Metadata.put(String, long)
,Metadata.put(String, float)
,Metadata.put(String, double)
instead.as of 0.31.0, useMetadata.toMap()
instead.UseMetadata.from(String, String)
insteadas of 0.31.0, useMetadata.getString(String)
,Metadata.getInteger(String)
,Metadata.getLong(String)
,Metadata.getFloat(String)
,Metadata.getDouble(String)
instead.UseMetadata.metadata(String, String)
insteadUse 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.UseUserMessage.singleText()
orUserMessage.contents()
instead.as of 0.31.0, useTextSegment.metadata()
and thenMetadata.getString(String)
,Metadata.getInteger(String)
,Metadata.getLong(String)
,Metadata.getFloat(String)
,Metadata.getDouble(String)
instead.UseUtils.isNullOrEmpty(Collection)
instead.Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!For JSON output, you can replace `.responseFormat(new ChatCompletionsJsonResponseFormat())` with a `JsonSchema` in the `ResponseFormat`. You can then use `.strictJsonSchema(true)`to force JSON schema adherence.Please useAzureOpenAiStreamingChatModel.Builder.openAIAsyncClient(OpenAIAsyncClient)
instead, if you require response streaming. Please useAzureOpenAiChatModel
instead, if you require sync responses.For JSON output, you can replace `.responseFormat(new ChatCompletionsJsonResponseFormat())` with a `JsonSchema` in the `ResponseFormat`. You can then use `.strictJsonSchema(true)`to force JSON schema adherence.If you want to continue using sync client, useAzureOpenAiChatModel
instead.please useChatLanguageModel.chat(ChatMessage...)
insteadplease useChatLanguageModel.chat(String)
insteadplease useChatLanguageModel.chat(List)
insteadplease useChatLanguageModel.chat(ChatRequest)
instead. SeeChatRequestParameters.toolSpecifications()
andChatRequestParameters.toolChoice()
.please useChatLanguageModel.chat(ChatRequest)
instead. SeeChatRequestParameters.toolSpecifications()
.please useChatModelErrorContext(Throwable, ChatRequest, Map)
insteadPartial response will not be available in future versions to simplify the design and implementation. Please reach out if you have any concerns.please useChatModelErrorContext.chatRequest()
insteadin favour ofChatRequest
please useChatModelRequestContext(ChatRequest, Map)
insteadplease useChatModelRequestContext.chatRequest()
insteadin favour ofChatResponse
please useChatModelResponseContext(ChatResponse, ChatRequest, Map)
insteadplease useChatModelResponseContext.chatRequest()
insteadplease useChatModelResponseContext.chatResponse()
insteadplease useChatRequest.parameters()
andChatRequestParameters.responseFormat()
insteadplease useChatRequest.parameters()
andChatRequestParameters.toolSpecifications()
insteadplease useChatRequest.parameters()
andChatRequestParameters.toolSpecifications()
insteadplease useChatRequest.parameters()
and thenChatRequestParameters.responseFormat()
insteadplease useChatRequest.parameters()
and thenChatRequestParameters.toolSpecifications()
insteadsince it has the misleading side effect of deleting all other properties eventually added so far. UseJsonObjectSchema.Builder.addProperties(Map)
instead.please useStreamingChatLanguageModel.chat(List, StreamingChatResponseHandler)
insteadplease useStreamingChatLanguageModel.chat(String, StreamingChatResponseHandler)
insteadplease useStreamingChatLanguageModel.chat(List, StreamingChatResponseHandler)
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.Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!As of release 0.29.0, replaced byMistralAiChatModelName.MISTRAL_MEDIUM_LATEST
As of release 0.29.0, replaced byMistralAiChatModelName.MISTRAL_SMALL_LATEST
As of release 0.29.0, replaced byMistralAiChatModelName.OPEN_MISTRAL_7B
Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!please useOpenAiChatModel.defaultRequestParameters()
and thenChatRequestParameters.modelName()
insteadPlease usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default values for the model name and temperature will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default values for the model name and temperature will be removed in future releases!use one of the following enums instead:OpenAiChatModelName
,OpenAiEmbeddingModelName
OpenAiImageModelName
,OpenAiLanguageModelName
,OpenAiModerationModelName
Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!please useOpenAiStreamingChatModel.defaultRequestParameters()
and thenChatRequestParameters.modelName()
insteadPlease usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default values for the model name and temperature will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default values for the model name and temperature will be removed in future releases!Please use other constructors and specify the model name explicitly.Please usebuilder()
instead, and explicitly set the baseUrl and, if necessary, other parameters. The default value for baseUrl will be removed in future releases!useEmbeddingStoreContentRetriever
instead.Please useContentRetriever
instead.UseAiServices.contentRetriever(ContentRetriever)
(e.g.EmbeddingStoreContentRetriever
) instead.
Configures a retriever that will be invoked on every method call to fetch relevant information related to the current user message from an underlying source (e.g., embedding store). This relevant information is automatically injected into the message sent to the LLM.please useTokenStream.onCompleteResponse(Consumer)
insteadplease useTokenStream.onPartialResponse(Consumer)
insteaddev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore.Builder.dimension(Integer) dimension is not used anymore.as of 0.31.0, useEmbeddingStore.search(EmbeddingSearchRequest)
instead.as of 0.31.0, useEmbeddingStore.search(EmbeddingSearchRequest)
instead.as of 0.31.0, useEmbeddingStore.search(EmbeddingSearchRequest)
instead.as of 0.31.0, useEmbeddingStore.search(EmbeddingSearchRequest)
instead.
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionplease use the new
JsonSchemaElement
API instead to define the schema for tool parametersplease use the newJsonObjectSchema
API instead to define the schema for tool parameters. Example:ToolSpecification.builder() .name("weather") .description("Returns the current weather in the specified city") .parameters(JsonObjectSchema.builder() .addStringProperty("city", "The name of the city, e.g., Munich") .addEnumProperty("units", List.of("CELSIUS", "FAHRENHEIT")) .required("city") // please specify mandatory properties explicitly .build()) .build();
in favour ofChatRequest
in favour ofChatResponse
use one of the following enums instead:OpenAiChatModelName
,OpenAiEmbeddingModelName
OpenAiImageModelName
,OpenAiLanguageModelName
,OpenAiModerationModelName
useEmbeddingStoreContentRetriever
instead.
-
Deprecated FieldsFieldDescriptionplease use
JsonArraySchema.builder()
insteadplease useJsonBooleanSchema()
insteadplease useJsonIntegerSchema()
insteadplease useJsonNumberSchema()
insteadplease useJsonObjectSchema.builder()
insteadplease useJsonStringSchema()
instead
-
Deprecated MethodsMethodDescriptionplease use the new
JsonSchemaElement
API instead to define the schema for tool parametersplease useJsonEnumSchema
insteadplease useJsonEnumSchema
insteadplease useJsonEnumSchema
insteadplease use the newJsonSchemaElement
API instead to define the schema for tool parametersplease useJsonArraySchema
insteadplease useJsonObjectSchema
insteadplease use the newJsonSchemaElement
API instead to define the schema for tool parametersplease use the newJsonSchemaElement
API instead to define the schema for tool parametersplease useJsonObjectSchema.builder()
insteadplease useJsonObjectSchema.Builder.build()
insteadplease useJsonObjectSchema.Builder.addProperties(Map)
insteadplease useJsonObjectSchema.Builder.required(List)
insteadplease useJsonObjectSchema.builder()
insteadplease useToolSpecification.Builder.parameters(JsonObjectSchema)
instead. Example:ToolSpecification.builder() .name("weather") .description("Returns the current weather in the specified city") .parameters(JsonObjectSchema.builder() .addStringProperty("city", "The name of the city, e.g., Munich") .addEnumProperty("units", List.of("CELSIUS", "FAHRENHEIT")) .required("city") // please specify mandatory properties explicitly .build()) .build();
please useToolSpecification.Builder.parameters(JsonObjectSchema)
instead. Example:ToolSpecification.builder() .name("weather") .description("Returns the current weather in the specified city") .parameters(JsonObjectSchema.builder() .addStringProperty("city", "The name of the city, e.g., Munich") .addEnumProperty("units", List.of("CELSIUS", "FAHRENHEIT")) .required("city") // please specify mandatory properties explicitly .build()) .build();
please useToolSpecification.Builder.parameters(JsonObjectSchema)
instead. Example:ToolSpecification.builder() .name("weather") .description("Returns the current weather in the specified city") .parameters(JsonObjectSchema.builder() .addStringProperty("city", "The name of the city, e.g., Munich") .addEnumProperty("units", List.of("CELSIUS", "FAHRENHEIT")) .required("city") // please specify mandatory properties explicitly .build()) .build();
please useToolSpecification.Builder.parameters(JsonObjectSchema)
instead. Example:ToolSpecification.builder() .name("weather") .description("Returns the current weather in the specified city") .parameters(JsonObjectSchema.builder() .addStringProperty("city", "The name of the city, e.g., Munich") .addEnumProperty("units", List.of("CELSIUS", "FAHRENHEIT")) .required("city") // please specify mandatory properties explicitly .build()) .build();
please useToolSpecification.Builder.parameters(JsonObjectSchema)
instead. Example:ToolSpecification.builder() .name("weather") .description("Returns the current weather in the specified city") .parameters(JsonObjectSchema.builder() .addStringProperty("city", "The name of the city, e.g., Munich") .addEnumProperty("units", List.of("CELSIUS", "FAHRENHEIT")) .required("city") // please specify mandatory properties explicitly .build()) .build();
please useToolSpecification.parameters()
insteadUse this instead:.retrievalAugmentor(DefaultRetrievalAugmentor.builder() .contentInjector(DefaultContentInjector.builder() .promptTemplate(promptTemplate) .build()) .build());
as of 0.31.0, useDocument.metadata()
and thenMetadata.getString(String)
,Metadata.getInteger(String)
,Metadata.getLong(String)
,Metadata.getFloat(String)
,Metadata.getDouble(String)
instead.as of 0.31.0, useMetadata.put(String, String)
,Metadata.put(String, int)
,Metadata.put(String, long)
,Metadata.put(String, float)
,Metadata.put(String, double)
instead.as of 0.31.0, useMetadata.put(String, String)
,Metadata.put(String, int)
,Metadata.put(String, long)
,Metadata.put(String, float)
,Metadata.put(String, double)
instead.as of 0.31.0, useMetadata.toMap()
instead.UseMetadata.from(String, String)
insteadas of 0.31.0, useMetadata.getString(String)
,Metadata.getInteger(String)
,Metadata.getLong(String)
,Metadata.getFloat(String)
,Metadata.getDouble(String)
instead.UseMetadata.metadata(String, String)
insteadUseUserMessage.singleText()
orUserMessage.contents()
instead.as of 0.31.0, useTextSegment.metadata()
and thenMetadata.getString(String)
,Metadata.getInteger(String)
,Metadata.getLong(String)
,Metadata.getFloat(String)
,Metadata.getDouble(String)
instead.use Jackson's ObjectMapperuse Jackson's ObjectMapperuse Jackson's ObjectMapperuse Jackson's ObjectMapperUseUtils.isNullOrEmpty(Collection)
instead.Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!For JSON output, you can replace `.responseFormat(new ChatCompletionsJsonResponseFormat())` with a `JsonSchema` in the `ResponseFormat`. You can then use `.strictJsonSchema(true)`to force JSON schema adherence.Please useAzureOpenAiStreamingChatModel.Builder.openAIAsyncClient(OpenAIAsyncClient)
instead, if you require response streaming. Please useAzureOpenAiChatModel
instead, if you require sync responses.For JSON output, you can replace `.responseFormat(new ChatCompletionsJsonResponseFormat())` with a `JsonSchema` in the `ResponseFormat`. You can then use `.strictJsonSchema(true)`to force JSON schema adherence.If you want to continue using sync client, useAzureOpenAiChatModel
instead.please useChatLanguageModel.chat(ChatMessage...)
insteadplease useChatLanguageModel.chat(String)
insteadplease useChatLanguageModel.chat(List)
insteadplease useChatLanguageModel.chat(ChatRequest)
instead. SeeChatRequestParameters.toolSpecifications()
andChatRequestParameters.toolChoice()
.please useChatLanguageModel.chat(ChatRequest)
instead. SeeChatRequestParameters.toolSpecifications()
.Partial response will not be available in future versions to simplify the design and implementation. Please reach out if you have any concerns.please useChatModelErrorContext.chatRequest()
insteadplease useChatModelRequestContext.chatRequest()
insteadplease useChatModelResponseContext.chatRequest()
insteadplease useChatModelResponseContext.chatResponse()
insteadplease useChatRequest.parameters()
andChatRequestParameters.responseFormat()
insteadplease useChatRequest.parameters()
andChatRequestParameters.toolSpecifications()
insteadplease useChatRequest.parameters()
andChatRequestParameters.toolSpecifications()
insteadplease useChatRequest.parameters()
and thenChatRequestParameters.responseFormat()
insteadplease useChatRequest.parameters()
and thenChatRequestParameters.toolSpecifications()
insteadsince it has the misleading side effect of deleting all other properties eventually added so far. UseJsonObjectSchema.Builder.addProperties(Map)
instead.please useStreamingChatLanguageModel.chat(List, StreamingChatResponseHandler)
insteadplease useStreamingChatLanguageModel.chat(String, StreamingChatResponseHandler)
insteadplease useStreamingChatLanguageModel.chat(List, StreamingChatResponseHandler)
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.Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please useOllamaChatModel.OllamaChatModelBuilder.responseFormat(ResponseFormat)
instead. For example:responseFormat(ResponseFormat.JSON)
.
Instead of using JSON mode, consider using structured outputs with JSON schema instead, see more info here.Please useOllamaLanguageModel.OllamaLanguageModelBuilder.responseFormat(ResponseFormat)
instead. For example:responseFormat(ResponseFormat.JSON)
.
Instead of using JSON mode, consider using structured outputs with JSON schema instead, see more info here.dev.langchain4j.model.ollama.OllamaStreamingChatModel.OllamaStreamingChatModelBuilder.format(String) Please useOllamaStreamingChatModel.OllamaStreamingChatModelBuilder.responseFormat(ResponseFormat)
instead. For example:responseFormat(ResponseFormat.JSON)
.
Instead of using JSON mode, consider using structured outputs with JSON schema instead, see more info here.Please useOllamaStreamingLanguageModel.OllamaStreamingLanguageModelBuilder.responseFormat(ResponseFormat)
instead. For example:responseFormat(ResponseFormat.JSON)
.
Instead of using JSON mode, consider using structured outputs with JSON schema instead, see more info here.Functions are deprecated by OpenAI, useInternalOpenAiHelper.toTools(Collection, boolean)
insteadplease useOpenAiChatModel.defaultRequestParameters()
and thenChatRequestParameters.modelName()
insteadPlease usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default values for the model name and temperature will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default values for the model name and temperature will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!please useOpenAiStreamingChatModel.defaultRequestParameters()
and thenChatRequestParameters.modelName()
insteadPlease usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default values for the model name and temperature will be removed in future releases!Please usebuilder()
instead, and explicitly set the model name and, if necessary, other parameters. The default values for the model name and temperature will be removed in future releases!Please usebuilder()
instead, and explicitly set the baseUrl and, if necessary, other parameters. The default value for baseUrl will be removed in future releases!Use/implementContentInjector.inject(List, ChatMessage)
instead.dev.langchain4j.rag.content.injector.DefaultContentInjector.createPrompt(UserMessage, List<Content>) implement/overrideDefaultContentInjector.createPrompt(ChatMessage, List)
instead.useDefaultContentInjector.inject(List, ChatMessage)
instead.Use/implementRetrievalAugmentor.augment(AugmentationRequest)
instead.UseAiServices.contentRetriever(ContentRetriever)
(e.g.EmbeddingStoreContentRetriever
) instead.
Configures a retriever that will be invoked on every method call to fetch relevant information related to the current user message from an underlying source (e.g., embedding store). This relevant information is automatically injected into the message sent to the LLM.please useTokenStream.onCompleteResponse(Consumer)
insteadplease useTokenStream.onPartialResponse(Consumer)
insteaddev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore.Builder.dimension(Integer) dimension is not used anymore.as of 0.31.0, useEmbeddingStore.search(EmbeddingSearchRequest)
instead.as of 0.31.0, useEmbeddingStore.search(EmbeddingSearchRequest)
instead.as of 0.31.0, useEmbeddingStore.search(EmbeddingSearchRequest)
instead.as of 0.31.0, useEmbeddingStore.search(EmbeddingSearchRequest)
instead.
-
Deprecated ConstructorsConstructorDescriptionplease use the new
JsonSchemaElement
API instead to define the schema for tool parametersPlease use another constructor with a newContentRetriever
instead.Use 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 useChatModelErrorContext(Throwable, ChatRequest, Map)
insteadplease useChatModelRequestContext(ChatRequest, Map)
insteadplease useChatModelResponseContext(ChatResponse, ChatRequest, Map)
insteadPlease use other constructors and specify the model name explicitly.
-
Deprecated Enum ConstantsEnum ConstantDescriptionAs of release 0.29.0, replaced by
MistralAiChatModelName.MISTRAL_MEDIUM_LATEST
As of release 0.29.0, replaced byMistralAiChatModelName.MISTRAL_SMALL_LATEST
As of release 0.29.0, replaced byMistralAiChatModelName.OPEN_MISTRAL_7B