{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TaskRunArtifactResponse",
  "title": "TaskRunArtifactResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Stable identifier for the artifact within this run"
    },
    "name": {
      "type": "string",
      "description": "Artifact file name"
    },
    "type": {
      "type": "string",
      "description": "Artifact classification (plan, context, etc.)"
    },
    "source": {
      "type": "string",
      "description": "Source of the artifact, such as agent_output or user_attachment"
    },
    "size": {
      "type": "integer",
      "description": "Artifact size in bytes"
    },
    "content_type": {
      "type": "string",
      "description": "Optional MIME type"
    },
    "storage_path": {
      "type": "string",
      "description": "S3 object key for the artifact"
    },
    "uploaded_at": {
      "type": "string",
      "description": "Timestamp when the artifact was uploaded"
    }
  },
  "required": [
    "name",
    "storage_path",
    "type",
    "uploaded_at"
  ]
}