// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`SearchAgentContext`](crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`max_results(i32)`](crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder::set_max_results):<br>required: **false**<br><p>Maximum number of results to return per page.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder::set_next_token):<br>required: **false**<br><p>Opaque continuation token from a prior response. Omit on the first page.</p><br>
/// - [`agent_context_id(impl Into<String>)`](crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder::agent_context_id) / [`set_agent_context_id(Option<String>)`](crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder::set_agent_context_id):<br>required: **true**<br><p>The agent context to search, by ID or full Amazon Resource Name (ARN).</p><br>
/// - [`query(impl Into<String>)`](crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder::query) / [`set_query(Option<String>)`](crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder::set_query):<br>required: **true**<br><p>The natural-language query or keywords to search for in the agent context. AWS Context interprets it based on <code>searchType</code>: as literal text for <code>KEYWORD</code>, as a semantic concept for <code>SEMANTIC</code>, or as both for <code>AUTO</code>.</p><br>
/// - [`filter(SearchFilter)`](crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder::filter) / [`set_filter(Option<SearchFilter>)`](crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder::set_filter):<br>required: **false**<br><p>Optional filter on node attributes: a single comparison, or <code>andAll</code> of comparisons that must all match.</p><br>
/// - [`search_type(SearchAgentContextType)`](crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder::search_type) / [`set_search_type(Option<SearchAgentContextType>)`](crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder::set_search_type):<br>required: **true**<br><p>The search strategy to use. Valid values:</p> <ul> <li> <p><code>KEYWORD</code> - Full-text keyword matching (BM25).</p></li> <li> <p><code>SEMANTIC</code> - Vector similarity of embeddings.</p></li> <li> <p><code>AUTO</code> - Keyword matches first, then semantic matches for the remaining results.</p></li> </ul><br>
/// - On success, responds with [`SearchAgentContextOutput`](crate::operation::search_agent_context::SearchAgentContextOutput) with field(s):
/// - [`next_token(Option<String>)`](crate::operation::search_agent_context::SearchAgentContextOutput::next_token): <p>Pagination cursor for the next page. Absent when there are no more results.</p>
/// - [`items(Vec::<SearchAgentContextResultEntity>)`](crate::operation::search_agent_context::SearchAgentContextOutput::items): <p>The matching entities, ranked by relevance.</p>
/// - [`authorization_required(Option<AuthorizationRequired>)`](crate::operation::search_agent_context::SearchAgentContextOutput::authorization_required): <p>Present when the end user must authorize access to a third-party resource before the search can run. In that case, <code>items</code> is empty. Show <code>authorizationUrl</code> to the end user, and retry after the user consents. Through the agent context's MCP server, you receive this as an MCP elicitation request that contains the URL.</p>
/// - On failure, responds with [`SdkError<SearchAgentContextError>`](crate::operation::search_agent_context::SearchAgentContextError)
pub fn search_agent_context(&self) -> crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder {
crate::operation::search_agent_context::builders::SearchAgentContextFluentBuilder::new(self.handle.clone())
}
}