Interface SearchAgentContextRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ContextRequest.Builder,CopyableBuilder<SearchAgentContextRequest.Builder,,SearchAgentContextRequest> SdkBuilder<SearchAgentContextRequest.Builder,,SearchAgentContextRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
SearchAgentContextRequest
-
Method Summary
Modifier and TypeMethodDescriptionagentContextId(String agentContextId) The agent context to search, by ID or full Amazon Resource Name (ARN).filter(Consumer<SearchFilter.Builder> filter) Optional filter on node attributes: a single comparison, orandAllof comparisons that must all match.filter(SearchFilter filter) Optional filter on node attributes: a single comparison, orandAllof comparisons that must all match.maxResults(Integer maxResults) Maximum number of results to return per page.Opaque continuation token from a prior response.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The natural-language query or keywords to search for in the agent context.searchType(String searchType) The search strategy to use.searchType(SearchAgentContextType searchType) The search strategy to use.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.context.model.ContextRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
maxResults
Maximum number of results to return per page.
- Parameters:
maxResults- Maximum number of results to return per page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
Opaque continuation token from a prior response. Omit on the first page.
- Parameters:
nextToken- Opaque continuation token from a prior response. Omit on the first page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentContextId
The agent context to search, by ID or full Amazon Resource Name (ARN).
- Parameters:
agentContextId- The agent context to search, by ID or full Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
query
The natural-language query or keywords to search for in the agent context. AWS Context interprets it based on
searchType: as literal text forKEYWORD, as a semantic concept forSEMANTIC, or as both forAUTO.- Parameters:
query- The natural-language query or keywords to search for in the agent context. AWS Context interprets it based onsearchType: as literal text forKEYWORD, as a semantic concept forSEMANTIC, or as both forAUTO.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
Optional filter on node attributes: a single comparison, or
andAllof comparisons that must all match.- Parameters:
filter- Optional filter on node attributes: a single comparison, orandAllof comparisons that must all match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
Optional filter on node attributes: a single comparison, or
This is a convenience method that creates an instance of theandAllof comparisons that must all match.SearchFilter.Builderavoiding the need to create one manually viaSearchFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilter(SearchFilter).- Parameters:
filter- a consumer that will call methods onSearchFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
searchType
The search strategy to use. Valid values:
-
KEYWORD- Full-text keyword matching (BM25). -
SEMANTIC- Vector similarity of embeddings. -
AUTO- Keyword matches first, then semantic matches for the remaining results.
- Parameters:
searchType- The search strategy to use. Valid values:-
KEYWORD- Full-text keyword matching (BM25). -
SEMANTIC- Vector similarity of embeddings. -
AUTO- Keyword matches first, then semantic matches for the remaining results.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
searchType
The search strategy to use. Valid values:
-
KEYWORD- Full-text keyword matching (BM25). -
SEMANTIC- Vector similarity of embeddings. -
AUTO- Keyword matches first, then semantic matches for the remaining results.
- Parameters:
searchType- The search strategy to use. Valid values:-
KEYWORD- Full-text keyword matching (BM25). -
SEMANTIC- Vector similarity of embeddings. -
AUTO- Keyword matches first, then semantic matches for the remaining results.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
SearchAgentContextRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SearchAgentContextRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-