Sophia

Sophia · Actions GPT

Memory Manager

A memory management addon for GPT

  • GET /Home endpoint
  • POST /saveSave data to long term memory
  • GET /load/{app_name}Load data for a specific app
Schéma original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "Memory Manager",
    "version": "1.0.0",
    "description": "A memory management addon for GPT"
  },
  "paths": {
    "/": {
      "get": {
        "summary": "Home endpoint",
        "operationId": "home",
        "responses": {
          "200": {
            "description": "Successful operation"
          }
        }
      }
    },
    "/save": {
      "post": {
        "summary": "Save data to long term memory",
        "operationId": "saveMessage",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "notes": {
                    "type": "string",
                    "description": "The notes to save. Record this as a JSON object with all of the data to store."
                  },
                  "appname": {
                    "type": "string",
                    "description": "The name of the app for which the data is being saved."
                  }
                },
                "additionalProperties": true,
                "description": "The JSON object to save."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "The status of the operation."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Authorization header missing or appname is missing",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "The status of the operation."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/load/{app_name}": {
      "get": {
        "summary": "Load data for a specific app",
        "operationId": "loadAppData",
        "parameters": [
          {
            "name": "app_name",
            "in": "path",
            "required": true,
            "description": "Name of the app",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "app_name": {
                      "type": "object",
                      "description": "The data of the app"
                    },
                    "app_list": {
                      "type": "object",
                      "description": "List of all apps"
                    },
                    "status": {
                      "type": "string",
                      "description": "The status of the operation."
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Authorization header missing",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "The status of the operation."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://memorygpt.net"
    }
  ]
}