{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-get-advanced-prompt-optimization-job-response-schema.json",
  "title": "GetAdvancedPromptOptimizationJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-advanced-prompt-optimization-jobs-api-openapi.yml#/components/schemas/GetAdvancedPromptOptimizationJobResponse",
  "type": "object",
  "properties": {
    "jobArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the advanced prompt optimization job."
    },
    "jobName": {
      "type": "string",
      "description": "The name of the advanced prompt optimization job."
    },
    "jobDescription": {
      "type": "string",
      "description": "The description of the advanced prompt optimization job."
    },
    "jobStatus": {
      "type": "string",
      "enum": [
        "InProgress",
        "Completed",
        "Failed",
        "PartiallyCompleted",
        "Stopping",
        "Stopped",
        "Deleting"
      ],
      "description": "The status of the advanced prompt optimization job."
    },
    "inputConfig": {
      "$ref": "#/$defs/AdvancedPromptOptimizationInputConfig"
    },
    "outputConfig": {
      "$ref": "#/$defs/AdvancedPromptOptimizationOutputConfig"
    },
    "encryptionKeyArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the KMS key used to encrypt the output data."
    },
    "creationTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time at which the advanced prompt optimization job was created."
    },
    "lastModifiedTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time at which the advanced prompt optimization job was last modified."
    },
    "failureMessage": {
      "type": "string",
      "description": "If the job failed, a message describing the reason for the failure."
    },
    "modelConfigurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ModelConfiguration"
      },
      "description": "The model configurations used in the optimization job."
    }
  },
  "required": [
    "jobArn",
    "jobName",
    "jobStatus",
    "inputConfig",
    "outputConfig",
    "creationTime",
    "modelConfigurations"
  ],
  "$defs": {
    "AdvancedPromptOptimizationInputConfig": {
      "type": "object",
      "properties": {
        "s3Uri": {
          "type": "string",
          "description": "The S3 URI of the JSONL input file containing prompt templates and evaluation samples."
        }
      },
      "required": [
        "s3Uri"
      ]
    },
    "AdvancedPromptOptimizationOutputConfig": {
      "type": "object",
      "properties": {
        "s3Uri": {
          "type": "string",
          "description": "The S3 URI prefix where the optimization results will be written."
        }
      },
      "required": [
        "s3Uri"
      ]
    },
    "InferenceConfiguration": {
      "type": "object",
      "properties": {
        "maxTokens": {
          "type": "integer",
          "description": "The maximum number of tokens to allow in the generated response. The default value is the maximum allowed value for the model that you are using."
        },
        "temperature": {
          "type": "number",
          "description": "The likelihood of the model selecting higher-probability options while generating a response. A lower value makes the model more likely to choose higher-probability options, while a higher value makes the model more likely to choose lower-probability options."
        },
        "topP": {
          "type": "number",
          "description": "The percentage of most-likely candidates that the model considers for the next token. For example, if you choose a value of 0.8 for topP, the model selects from the top 80% of the probability distribution of tokens that could be next in the sequence."
        },
        "stopSequences": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of stop sequences. A stop sequence is a sequence of characters that causes the model to stop generating the response."
        }
      }
    },
    "ModelConfiguration": {
      "type": "object",
      "properties": {
        "modelId": {
          "type": "string",
          "description": "The model to use for optimization. The value depends on the resource that you use: If you use a base model, specify the model ID or its ARN. For a list of model IDs, see Models at a glance in the Amazon Bedrock User Guide. If you use a cross-Region (system-defined) inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see Supported Regions and models for inference profiles in the Amazon Bedrock User Guide. If you use an application inference profile, specify its full ARN, including the account ID and Region."
        },
        "inferenceConfig": {
          "$ref": "#/$defs/InferenceConfiguration"
        },
        "additionalModelRequestFields": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          },
          "description": "Additional model request fields. Use this to pass model-specific parameters that are not included in the standard inference configuration."
        }
      },
      "required": [
        "modelId"
      ]
    }
  }
}