{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "contract": {
      "type": "string",
      "const": "AgentSessionContinuationRequest"
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "sourceMessageId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "sourceRunId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "inheritance": {
      "type": "object",
      "properties": {
        "messages": {
          "type": "string",
          "enum": [
            "through-source-message",
            "exclude"
          ]
        },
        "attachments": {
          "type": "string",
          "enum": [
            "inherit",
            "exclude"
          ]
        },
        "summaries": {
          "type": "string",
          "enum": [
            "inherit",
            "exclude"
          ]
        },
        "toolResults": {
          "type": "string",
          "enum": [
            "inherit",
            "exclude"
          ]
        },
        "codeChanges": {
          "type": "string",
          "enum": [
            "inherit",
            "exclude"
          ]
        }
      },
      "required": [
        "messages",
        "attachments",
        "summaries",
        "toolResults",
        "codeChanges"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "contract",
    "idempotencyKey",
    "sourceMessageId",
    "sourceRunId",
    "inheritance"
  ],
  "additionalProperties": false,
  "$id": "https://schemas.infmonkeys.com/contracts/agent-session-continuation-request.schema.json",
  "title": "agent-session-continuation-request"
}
