Class CreateMessageRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.ml.CreateMessageRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<CreateMessageRequest.Builder,CreateMessageRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class CreateMessageRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<CreateMessageRequest.Builder,CreateMessageRequest>
Create a message.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CreateMessageRequest> Json deserializer forCreateMessageRequeststatic final Endpoint<CreateMessageRequest, CreateMessageResponse, ErrorResponse> Endpoint "ml.create_message". -
Method Summary
Modifier and TypeMethodDescriptionAPI name:additional_infostatic CreateMessageRequest.Builderbuilder()booleaninthashCode()final Stringinput()The question in the message.final StringmemoryId()Required - API name:memory_idstatic CreateMessageRequestfinal Stringorigin()The system name that generated the response.final StringThe prompt template.final Stringresponse()The answer to the question.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.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
applyQueryParameters, errorTrace, humanMethods 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 forCreateMessageRequest -
_ENDPOINT
Endpoint "ml.create_message".
-
-
Method Details
-
of
public static CreateMessageRequest of(Function<CreateMessageRequest.Builder, ObjectBuilder<CreateMessageRequest>> fn) -
additionalInfo
API name:additional_info -
input
The question in the message.API name:
input -
memoryId
Required - API name:memory_id -
origin
The system name that generated the response.API name:
origin -
promptTemplate
The prompt template.API name:
prompt_template -
response
The answer to the question.API name:
response -
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<CreateMessageRequest.Builder,CreateMessageRequest> - Returns:
- a new builder instance.
-
builder
-
setupCreateMessageRequestDeserializer
protected static void setupCreateMessageRequestDeserializer(ObjectDeserializer<CreateMessageRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-