1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateAgent`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`agent_id(impl Into<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::agent_id) / [`set_agent_id(Option<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_agent_id):<br>required: **true**<br><p>The unique identifier of the agent.</p><br>
    ///   - [`agent_name(impl Into<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::agent_name) / [`set_agent_name(Option<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_agent_name):<br>required: **true**<br><p>Specifies a new name for the agent.</p><br>
    ///   - [`instruction(impl Into<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::instruction) / [`set_instruction(Option<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_instruction):<br>required: **false**<br><p>Specifies new instructions that tell the agent what it should do and how it should interact with users.</p><br>
    ///   - [`foundation_model(impl Into<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::foundation_model) / [`set_foundation_model(Option<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_foundation_model):<br>required: **true**<br><p>Specifies a new foundation model to be used for orchestration by the agent.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_description):<br>required: **false**<br><p>Specifies a new description of the agent.</p><br>
    ///   - [`idle_session_ttl_in_seconds(i32)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::idle_session_ttl_in_seconds) / [`set_idle_session_ttl_in_seconds(Option<i32>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_idle_session_ttl_in_seconds):<br>required: **false**<br><p>The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.</p> <p>A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.</p><br>
    ///   - [`agent_resource_role_arn(impl Into<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::agent_resource_role_arn) / [`set_agent_resource_role_arn(Option<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_agent_resource_role_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.</p><br>
    ///   - [`customer_encryption_key_arn(impl Into<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::customer_encryption_key_arn) / [`set_customer_encryption_key_arn(Option<String>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_customer_encryption_key_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.</p><br>
    ///   - [`prompt_override_configuration(PromptOverrideConfiguration)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::prompt_override_configuration) / [`set_prompt_override_configuration(Option<PromptOverrideConfiguration>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_prompt_override_configuration):<br>required: **false**<br><p>Contains configurations to override prompts in different parts of an agent sequence. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html">Advanced prompts</a>.</p><br>
    ///   - [`guardrail_configuration(GuardrailConfiguration)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::guardrail_configuration) / [`set_guardrail_configuration(Option<GuardrailConfiguration>)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_guardrail_configuration):<br>required: **false**<br><p>The unique Guardrail configuration assigned to the agent when it is updated.</p><br>
    /// - On success, responds with [`UpdateAgentOutput`](crate::operation::update_agent::UpdateAgentOutput) with field(s):
    ///   - [`agent(Option<Agent>)`](crate::operation::update_agent::UpdateAgentOutput::agent): <p>Contains details about the agent that was updated.</p>
    /// - On failure, responds with [`SdkError<UpdateAgentError>`](crate::operation::update_agent::UpdateAgentError)
    pub fn update_agent(&self) -> crate::operation::update_agent::builders::UpdateAgentFluentBuilder {
        crate::operation::update_agent::builders::UpdateAgentFluentBuilder::new(self.handle.clone())
    }
}