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.properties(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()
insteadas 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.UseUtils.isNullOrEmpty(Collection)
instead.useEmbeddingStoreContentRetriever
instead.Please useContentRetriever
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.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();
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.properties(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()
insteadas 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.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.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 parameters