Interface PromptOverrideConfiguration.Builder

    • Method Detail

      • overrideLambda

        PromptOverrideConfiguration.Builder overrideLambda​(String overrideLambda)

        The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence. If you specify this field, at least one of the promptConfigurations must contain a parserMode value that is set to OVERRIDDEN. For more information, see Parser Lambda function in Amazon Bedrock Agents.

        Parameters:
        overrideLambda - The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence. If you specify this field, at least one of the promptConfigurations must contain a parserMode value that is set to OVERRIDDEN. For more information, see Parser Lambda function in Amazon Bedrock Agents.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • promptConfigurations

        PromptOverrideConfiguration.Builder promptConfigurations​(Collection<PromptConfiguration> promptConfigurations)

        Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.

        Parameters:
        promptConfigurations - Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • promptConfigurations

        PromptOverrideConfiguration.Builder promptConfigurations​(PromptConfiguration... promptConfigurations)

        Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.

        Parameters:
        promptConfigurations - Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.
        Returns:
        Returns a reference to this object so that method calls can be chained together.