{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-put-invocation-step-request-schema.json",
  "title": "PutInvocationStepRequest",
  "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/PutInvocationStepRequest",
  "type": "object",
  "properties": {
    "sessionIdentifier": {
      "type": "string",
      "description": "The unique identifier for the session to add the invocation step to. You can specify either the session's sessionId or its Amazon Resource Name (ARN)."
    },
    "invocationIdentifier": {
      "type": "string",
      "description": "The unique identifier (in UUID format) of the invocation to add the invocation step to."
    },
    "invocationStepTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp for when the invocation step occurred."
    },
    "payload": {
      "$ref": "#/$defs/InvocationStepPayload"
    },
    "invocationStepId": {
      "type": "string",
      "description": "The unique identifier of the invocation step in UUID format."
    }
  },
  "required": [
    "sessionIdentifier",
    "invocationIdentifier",
    "invocationStepTime",
    "payload"
  ],
  "$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."
    },
    "InvocationStepPayload": {
      "type": "object",
      "properties": {
        "contentBlocks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockSessionContentBlock"
          },
          "description": "The content for the invocation step."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}