{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/calypsoai-com/json-schema/calypsoai-com-get-agent-sessions-response-schema.json",
  "title": "GetAgentSessionsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/calypsoai-com-agent-sessions-api-openapi.yml#/components/schemas/GetAgentSessionsResponse",
  "properties": {
    "agentSessions": {
      "items": {
        "$ref": "#/$defs/AgentSession"
      },
      "title": "Agentsessions",
      "type": "array"
    },
    "next": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Cursor to the next page, if any.",
      "title": "Next"
    },
    "prev": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Cursor to the previous page, if any.",
      "title": "Prev"
    }
  },
  "required": [
    "agentSessions"
  ],
  "type": "object",
  "$defs": {
    "AgentFingerprintStatus": {
      "enum": [
        "in_progress",
        "failed",
        "completed"
      ],
      "title": "AgentFingerprintStatus",
      "type": "string"
    },
    "AgentFingerprintSummary": {
      "properties": {
        "agentCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agentcount"
        },
        "errors": {
          "default": [],
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/FingerprintProviderError"
              },
              {
                "$ref": "#/$defs/FingerprintInternalError"
              },
              {
                "$ref": "#/$defs/FingerprintUnsupportedError"
              }
            ]
          },
          "title": "Errors",
          "type": "array"
        },
        "status": {
          "$ref": "#/$defs/AgentFingerprintStatus"
        },
        "toolCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Toolcount"
        },
        "updatedAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updatedat"
        }
      },
      "required": [
        "status"
      ],
      "title": "AgentFingerprintSummary",
      "type": "object"
    },
    "AgentSession": {
      "properties": {
        "fingerprints": {
          "anyOf": [
            {
              "$ref": "#/$defs/AgentFingerprintSummary"
            },
            {
              "type": "null"
            }
          ]
        },
        "firstPromptAt": {
          "format": "date-time",
          "title": "Firstpromptat",
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "lastPromptAt": {
          "format": "date-time",
          "title": "Lastpromptat",
          "type": "string"
        },
        "peakOutcome": {
          "$ref": "#/$defs/PromptOutcome"
        },
        "projectId": {
          "format": "uuid",
          "title": "Projectid",
          "type": "string"
        },
        "sessionId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": "",
          "title": "Sessionid"
        }
      },
      "required": [
        "id",
        "firstPromptAt",
        "lastPromptAt",
        "peakOutcome",
        "projectId"
      ],
      "title": "AgentSession",
      "type": "object"
    },
    "FingerprintInternalError": {
      "properties": {
        "message": {
          "title": "Message",
          "type": "string"
        },
        "type": {
          "const": "internal",
          "default": "internal",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "message"
      ],
      "title": "FingerprintInternalError",
      "type": "object"
    },
    "FingerprintProviderError": {
      "properties": {
        "message": {
          "title": "Message",
          "type": "string"
        },
        "providerId": {
          "format": "uuid",
          "title": "Providerid",
          "type": "string"
        },
        "statusCode": {
          "title": "Statuscode",
          "type": "integer"
        },
        "type": {
          "const": "provider",
          "default": "provider",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "message",
        "providerId",
        "statusCode"
      ],
      "title": "FingerprintProviderError",
      "type": "object"
    },
    "FingerprintUnsupportedError": {
      "properties": {
        "message": {
          "title": "Message",
          "type": "string"
        },
        "providerId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Providerid"
        },
        "type": {
          "const": "incompatible_format",
          "default": "incompatible_format",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "message"
      ],
      "title": "FingerprintUnsupportedError",
      "type": "object"
    },
    "PromptOutcome": {
      "description": "Outcome of a prompt after it has been processed by all guardrails and providers.\n\nCleared: All guardrails passed, and the prompt was sent to providers\nFlagged: At least one guardrail failed, and the prompt was sent to providers\nBlocked: At least one guardrail failed, and the prompt was not sent to providers.",
      "enum": [
        "cleared",
        "flagged",
        "redacted",
        "blocked"
      ],
      "title": "PromptOutcome",
      "type": "string"
    }
  }
}