aws_sdk_wisdom/client/
query_assistant.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 [`QueryAssistant`](crate::operation::query_assistant::builders::QueryAssistantFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::query_assistant::builders::QueryAssistantFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`assistant_id(impl Into<String>)`](crate::operation::query_assistant::builders::QueryAssistantFluentBuilder::assistant_id) / [`set_assistant_id(Option<String>)`](crate::operation::query_assistant::builders::QueryAssistantFluentBuilder::set_assistant_id):<br>required: **true**<br><p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
8    ///   - [`query_text(impl Into<String>)`](crate::operation::query_assistant::builders::QueryAssistantFluentBuilder::query_text) / [`set_query_text(Option<String>)`](crate::operation::query_assistant::builders::QueryAssistantFluentBuilder::set_query_text):<br>required: **true**<br><p>The text to search for.</p><br>
9    ///   - [`next_token(impl Into<String>)`](crate::operation::query_assistant::builders::QueryAssistantFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::query_assistant::builders::QueryAssistantFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p><br>
10    ///   - [`max_results(i32)`](crate::operation::query_assistant::builders::QueryAssistantFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::query_assistant::builders::QueryAssistantFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per page.</p><br>
11    /// - On success, responds with [`QueryAssistantOutput`](crate::operation::query_assistant::QueryAssistantOutput) with field(s):
12    ///   - [`results(Vec::<ResultData>)`](crate::operation::query_assistant::QueryAssistantOutput::results): <p>The results of the query.</p>
13    ///   - [`next_token(Option<String>)`](crate::operation::query_assistant::QueryAssistantOutput::next_token): <p>If there are additional results, this is the token for the next set of results.</p>
14    /// - On failure, responds with [`SdkError<QueryAssistantError>`](crate::operation::query_assistant::QueryAssistantError)
15    #[deprecated(
16        note = "QueryAssistant API will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024 you will need to create a new Assistant in the Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications."
17    )]
18    pub fn query_assistant(&self) -> crate::operation::query_assistant::builders::QueryAssistantFluentBuilder {
19        crate::operation::query_assistant::builders::QueryAssistantFluentBuilder::new(self.handle.clone())
20    }
21}