Class Tool
java.lang.Object
org.opensearch.client.opensearch.ml.Tool
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<Tool.Builder,Tool>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Tool
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<Tool.Builder,Tool>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal ToolAttributesAPI name:attributesstatic Tool.Builderbuilder()final StringThe tool description.booleaninthashCode()final Stringname()API name:namestatic Toolof(Function<Tool.Builder, ObjectBuilder<Tool>> fn) voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final Stringtype()The tool type.final Stringversion()API name:versionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forTool
-
-
Method Details
-
of
-
attributes
API name:attributes -
description
The tool description.API name:
description -
name
API name:name -
type
The tool type.API name:
type -
version
API name:version -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Tool.Builder,Tool> - Returns:
- a new builder instance.
-
builder
-
setupToolDeserializer
-
hashCode
public int hashCode() -
equals
-