{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-get-invocation-step-response-schema.json",
  "title": "GetInvocationStepResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-invocationsteps-api-openapi.yml#/components/schemas/GetInvocationStepResponse",
  "type": "object",
  "properties": {
    "invocationStep": {
      "$ref": "#/$defs/InvocationStep"
    }
  },
  "required": [
    "invocationStep"
  ],
  "$defs": {
    "BedrockAgentRuntimeImageBlock": {
      "type": "object",
      "properties": {
        "format": {
          "type": "string",
          "enum": [
            "png",
            "jpeg",
            "gif",
            "webp"
          ],
          "description": "The format of the image."
        },
        "source": {
          "$ref": "#/$defs/BedrockAgentRuntimeImageSource"
        }
      },
      "required": [
        "format",
        "source"
      ]
    },
    "BedrockAgentRuntimeImageSource": {
      "type": "object",
      "properties": {
        "bytes": {
          "type": "string",
          "description": "The raw image bytes for the image. If you use an Amazon Web Services SDK, you don't need to encode the image bytes in base64."
        },
        "s3Location": {
          "$ref": "#/$defs/BedrockAgentRuntimeS3Location"
        }
      },
      "description": "Exactly one member is set."
    },
    "BedrockAgentRuntimeS3Location": {
      "type": "object",
      "properties": {
        "uri": {
          "type": "string",
          "description": "The path to the Amazon S3 bucket where the image is stored."
        }
      },
      "required": [
        "uri"
      ]
    },
    "BedrockSessionContentBlock": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "The text in the invocation step."
        },
        "image": {
          "$ref": "#/$defs/BedrockAgentRuntimeImageBlock"
        }
      },
      "description": "Exactly one member is set."
    },
    "InvocationStep": {
      "type": "object",
      "properties": {
        "sessionId": {
          "type": "string",
          "description": "The unique identifier of the session containing the invocation step."
        },
        "invocationId": {
          "type": "string",
          "description": "The unique identifier (in UUID format) for the invocation that includes the invocation step."
        },
        "invocationStepId": {
          "type": "string",
          "description": "The unique identifier (in UUID format) for the invocation step."
        },
        "invocationStepTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp for when the invocation step was created."
        },
        "payload": {
          "$ref": "#/$defs/InvocationStepPayload"
        }
      },
      "required": [
        "sessionId",
        "invocationId",
        "invocationStepId",
        "invocationStepTime",
        "payload"
      ]
    },
    "InvocationStepPayload": {
      "type": "object",
      "properties": {
        "contentBlocks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockSessionContentBlock"
          },
          "description": "The content for the invocation step."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}