Skip to main content

aws_sdk_context/client/
traverse_agent_context.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`TraverseAgentContext`](crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`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>
8    ///   - [`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>
9    ///   - [`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>
10    ///   - [`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>
11    ///   - [`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>
12    /// - On success, responds with [`TraverseAgentContextOutput`](crate::operation::traverse_agent_context::TraverseAgentContextOutput) with field(s):
13    ///   - [`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>
14    ///   - [`items(Vec::<NeighborNode>)`](crate::operation::traverse_agent_context::TraverseAgentContextOutput::items): <p>The neighbors reached from the seed node.</p>
15    ///   - [`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>
16    /// - On failure, responds with [`SdkError<TraverseAgentContextError>`](crate::operation::traverse_agent_context::TraverseAgentContextError)
17    pub fn traverse_agent_context(&self) -> crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder {
18        crate::operation::traverse_agent_context::builders::TraverseAgentContextFluentBuilder::new(self.handle.clone())
19    }
20}