Class AgentPromptVariant


  • public final class AgentPromptVariant
    extends java.lang.Object
    • Method Detail

      • additionalModelRequestFields

        public java.util.Optional<java.lang.String> additionalModelRequestFields()
        Returns:
        Model-specific inference configurations that aren’t in the `inferenceConfiguration` block. To see model-specific inference parameters, see [Inference request parameters and response fields for foundation models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html).
      • genAiResource

        public java.util.Optional<AgentPromptVariantGenAiResource> genAiResource()
        Returns:
        Generative AI resource with which to use the prompt. If this is not supplied, then a `modelId` must be defined. See `genAiResource` Block for more information.
      • inferenceConfiguration

        public java.util.Optional<AgentPromptVariantInferenceConfiguration> inferenceConfiguration()
        Returns:
        Inference configurations for the prompt variant. See `inferenceConfiguration` Block for more information.
      • metadatas

        public java.util.List<AgentPromptVariantMetadata> metadatas()
        Returns:
        List of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant. See `metadata` Block for more information.
      • modelId

        public java.util.Optional<java.lang.String> modelId()
        Returns:
        Unique identifier of the model or [inference profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html) with which to run inference on the prompt. If this is not supplied, then a `genAiResource` must be defined.
      • name

        public java.lang.String name()
        Returns:
        Name of the tool.
      • templateConfiguration

        public java.util.Optional<AgentPromptVariantTemplateConfiguration> templateConfiguration()
        Returns:
        Configurations for the prompt template. See `templateConfiguration` Block for more information.
      • templateType

        public java.lang.String templateType()
        Returns:
        Type of prompt template to use. Valid values: `CHAT`, `TEXT`.