Class AgentMLInput
java.lang.Object
org.opensearch.ml.common.input.MLInput
org.opensearch.ml.common.input.execute.agent.AgentMLInput
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject,Input
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.ml.common.input.MLInput
MLInput.MLInputBuilderNested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
FieldsFields inherited from class org.opensearch.ml.common.input.MLInput
algorithm, ALGORITHM_FIELD, CONTEXT_FIELD, INPUT_DATA_FIELD, INPUT_INDEX_FIELD, INPUT_QUERY_FIELD, inputDataset, ML_PARAMETERS_FIELD, parameters, QUERY_TEXT_FIELD, QUESTION_FIELD, RETURN_BYTES_FIELD, RETURN_NUMBER_FIELD, TARGET_RESPONSE_FIELD, TARGET_RESPONSE_POSITIONS_FIELD, TEXT_DOCS_FIELDFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionAgentMLInput(String agentId, FunctionName functionName, MLInputDataset inputDataset) AgentMLInput(org.opensearch.core.common.io.stream.StreamInput in) AgentMLInput(org.opensearch.core.xcontent.XContentParser parser, FunctionName functionName) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAgentId(String agentId) voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.ml.common.input.MLInput
builder, canEqual, equals, getAlgorithm, getFunctionName, getInputDataset, getParameters, getVersion, hashCode, parse, setAlgorithm, setInputDataset, setParameters, setVersion, toBuilder, toString, toXContentMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
AGENT_ID_FIELD
- See Also:
-
PARAMETERS_FIELD
- See Also:
-
-
Constructor Details
-
AgentMLInput
-
AgentMLInput
- Throws:
IOException
-
AgentMLInput
public AgentMLInput(org.opensearch.core.xcontent.XContentParser parser, FunctionName functionName) throws IOException - Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Overrides:
writeToin classMLInput- Throws:
IOException
-
AgentMLInputBuilder
-
getAgentId
-
setAgentId
-