Skip to content

checkpoint

Generated reference page for spec/v1/schemas/resources/checkpoint.json.

Metadata

  • Type: JSON Schema
  • Source: spec/v1/schemas/resources/checkpoint.json
  • Raw: View Raw

Summary

Source

json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agent-service.spec/v1/schemas/resources/checkpoint.json",
  "type": "object",
  "additionalProperties": false,
  "required": ["checkpointId", "runId", "status", "storage", "createdAt", "updatedAt"],
  "properties": {
    "checkpointId": {
      "$ref": "../common/identity.json#/$defs/checkpointId"
    },
    "runId": {
      "$ref": "../common/identity.json#/$defs/runId"
    },
    "attemptId": {
      "$ref": "../common/identity.json#/$defs/attemptId"
    },
    "status": {
      "$ref": "../common/enums.json#/$defs/checkpointStatus"
    },
    "storage": {
      "type": "object",
      "additionalProperties": false,
      "required": ["kind"],
      "properties": {
        "kind": {
          "type": "string",
          "enum": ["blob", "inline", "provider-managed"]
        },
        "bucket": {
          "type": "string"
        },
        "objectKey": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "metadata": {
          "type": "object",
          "additionalProperties": true
        }
      }
    },
    "stats": {
      "type": "object",
      "additionalProperties": true
    },
    "createdAt": {
      "$ref": "../common/identity.json#/$defs/timestamp"
    },
    "updatedAt": {
      "$ref": "../common/identity.json#/$defs/timestamp"
    }
  }
}

Generated from spec source.