{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-invoke-agent-runtime-response-schema.json",
  "title": "InvokeAgentRuntimeResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-invocations-api-openapi.yml#/components/schemas/InvokeAgentRuntimeResponse",
  "type": "object",
  "properties": {
    "runtimeSessionId": {
      "type": "string",
      "description": "The identifier of the runtime session."
    },
    "sessionEndpointUrl": {
      "type": "string",
      "description": "The HTTPS endpoint that addresses this runtime session directly. This value is returned only when the agent runtime is configured with allowed ports and direct runtime access is available for the session. If this value is not present, use InvokeAgentRuntime to communicate with the session."
    },
    "mcpSessionId": {
      "type": "string",
      "description": "The identifier of the MCP session."
    },
    "mcpProtocolVersion": {
      "type": "string",
      "description": "The version of the MCP protocol being used."
    },
    "traceId": {
      "type": "string",
      "description": "The trace identifier for request tracking."
    },
    "traceParent": {
      "type": "string",
      "description": "The parent trace information for distributed tracing."
    },
    "traceState": {
      "type": "string",
      "description": "The trace state information for distributed tracing."
    },
    "baggage": {
      "type": "string",
      "description": "Additional context information for distributed tracing."
    },
    "contentType": {
      "type": "string",
      "description": "The MIME type of the response data. This indicates how to interpret the response data. Common values include application/json for JSON data."
    },
    "response": {
      "type": "string",
      "format": "byte",
      "description": "The response data from the agent runtime. The format of this data depends on the specific agent configuration and the requested accept type. For most agents, this is a JSON object containing the agent's response to the user's request."
    },
    "statusCode": {
      "type": "integer",
      "description": "The HTTP status code of the response. A status code of 200 indicates a successful operation. Other status codes indicate various error conditions."
    }
  },
  "required": [
    "contentType"
  ]
}