Package dev.langchain4j.agent.tool
Class ToolParameters.Builder
java.lang.Object
dev.langchain4j.agent.tool.ToolParameters.Builder
- Enclosing class:
ToolParameters
ToolParameters
builder static inner class.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.please useJsonObjectSchema.Builder.properties(Map)
insteadDeprecated, for removal: This API element is subject to removal in a future version.please useJsonObjectSchema.Builder.required(List)
insteadDeprecated, for removal: This API element is subject to removal in a future version.please useJsonObjectSchema.builder()
instead
-
Method Details
-
type
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonObjectSchema.builder()
insteadSets thetype
.- Parameters:
type
- thetype
- Returns:
- the
Builder
.
-
properties
@Deprecated(forRemoval=true) public ToolParameters.Builder properties(Map<String, Map<String, Object>> properties) Deprecated, for removal: This API element is subject to removal in a future version.please useJsonObjectSchema.Builder.properties(Map)
insteadSets theproperties
.- Parameters:
properties
- theproperties
- Returns:
- the
Builder
.
-
required
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonObjectSchema.Builder.required(List)
insteadSets therequired
.- Parameters:
required
- therequired
- Returns:
- the
Builder
.
-
build
Deprecated, for removal: This API element is subject to removal in a future version.please useJsonObjectSchema.Builder.build()
insteadReturns aToolParameters
built from the parameters previously set.- Returns:
- a
ToolParameters
built with parameters of thisToolParameters.Builder
-
JsonObjectSchema.Builder.build()
instead