// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`TraverseAgentContext`](crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`max_results(i32)`](crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder::set_max_results):<br>required: **false**<br><p>Maximum total neighbors to return per page.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder::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::traverse_agent_context::builders::TraverseAgentContextFluentBuilder::agent_context_id) / [`set_agent_context_id(Option<String>)`](crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder::set_agent_context_id):<br>required: **true**<br><p>The agent context to traverse, by ID or full Amazon Resource Name (ARN).</p><br>
/// - [`node_id(impl Into<String>)`](crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder::node_id) / [`set_node_id(Option<String>)`](crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder::set_node_id):<br>required: **true**<br><p>The ID of the seed node to start traversal from.</p><br>
/// - [`traversal_strategy(TraversalStrategy)`](crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder::traversal_strategy) / [`set_traversal_strategy(Option<TraversalStrategy>)`](crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder::set_traversal_strategy):<br>required: **true**<br><p>Traversal directives: which edge types to follow, direction, and max depth.</p><br>
/// - On success, responds with [`TraverseAgentContextOutput`](crate::operation::traverse_agent_context::TraverseAgentContextOutput) with field(s):
/// - [`next_token(Option<String>)`](crate::operation::traverse_agent_context::TraverseAgentContextOutput::next_token): <p>Pagination cursor for the next page. Absent when there are no more results.</p>
/// - [`items(Vec::<NeighborNode>)`](crate::operation::traverse_agent_context::TraverseAgentContextOutput::items): <p>The neighbors reached from the seed node.</p>
/// - [`authorization_required(Option<AuthorizationRequired>)`](crate::operation::traverse_agent_context::TraverseAgentContextOutput::authorization_required): <p>Present when the end user must authorize access to a third-party resource before the traversal 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<TraverseAgentContextError>`](crate::operation::traverse_agent_context::TraverseAgentContextError)
pub fn traverse_agent_context(&self) -> crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder {
crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder::new(self.handle.clone())
}
}