Class AgenticQuery.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder<AgenticQuery.Builder>
org.opensearch.client.opensearch._types.query_dsl.AgenticQuery.Builder
- All Implemented Interfaces:
CopyableBuilder<AgenticQuery.Builder,,AgenticQuery> MutableBuilder<AgenticQuery.Builder,,AgenticQuery> ObjectBuilder<AgenticQuery>
- Enclosing class:
AgenticQuery
public static class AgenticQuery.Builder
extends QueryBase.AbstractBuilder<AgenticQuery.Builder>
implements CopyableBuilder<AgenticQuery.Builder,AgenticQuery>
Builder for
AgenticQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAgenticQuery.copy()Create a new builderCopyableBuilderthat is a copy of this one.final AgenticQuery.BuilderThe memory ID from a previous response, used to continue a conversation with prior context.final AgenticQuery.BuilderqueryFields(String value, String... values) A list of index fields that the agent should consider when generating the search query.final AgenticQuery.BuilderqueryFields(List<String> list) A list of index fields that the agent should consider when generating the search query.final AgenticQuery.BuilderRequired - The natural language question to be answered by the agent.protected AgenticQuery.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder
boost, queryNameMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<AgenticQuery.Builder,AgenticQuery> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classQueryBase.AbstractBuilder<AgenticQuery.Builder>
-
memoryId
The memory ID from a previous response, used to continue a conversation with prior context. Applicable for conversational agents only.API name:
memory_id -
queryFields
A list of index fields that the agent should consider when generating the search query.API name:
query_fieldsAdds all elements of
listtoqueryFields. -
queryFields
A list of index fields that the agent should consider when generating the search query.API name:
query_fieldsAdds one or more values to
queryFields. -
queryText
Required - The natural language question to be answered by the agent.API name:
query_text -
build
Builds aAgenticQuery.- Specified by:
buildin interfaceObjectBuilder<AgenticQuery>- Throws:
NullPointerException- if some of the required fields are null.
-