Roleplay AI

Roleplay AI · Acciones GPT

Get prompts to roleplay as an expert

Retrieves prompts to use to roleplay as a specific expert.

  • GET /v1/projects/gpt-rap/databases/(default)/documents/config/defaultGetRoles

    Get the list of roles that this GPT can roleplay as

  • GET /v1/projects/gpt-rap/databases/(default)/documents/roles/{role}GetRolePrompt

    Get the prompt to use for a specific role

  • GET /v1/projects/gpt-rap/databases/(default)/documents/images/{card}GetFlashCardImage

    Get the image for a specific flash card

Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Get prompts to roleplay as an expert",
    "description": "Retrieves prompts to use to roleplay as a specific expert.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://firestore.googleapis.com"
    }
  ],
  "paths": {
    "/v1/projects/gpt-rap/databases/(default)/documents/config/default": {
      "get": {
        "description": "Get the list of roles that this GPT can roleplay as",
        "operationId": "GetRoles"
      }
    },
    "/v1/projects/gpt-rap/databases/(default)/documents/roles/{role}": {
      "get": {
        "description": "Get the prompt to use for a specific role",
        "operationId": "GetRolePrompt",
        "parameters": [
          {
            "name": "role",
            "in": "path",
            "required": true,
            "description": "The role of the prompt to retrieve",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RolePrompt"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/gpt-rap/databases/(default)/documents/images/{card}": {
      "get": {
        "description": "Get the image for a specific flash card",
        "operationId": "GetFlashCardImage",
        "parameters": [
          {
            "name": "card",
            "in": "path",
            "required": true,
            "description": "The image for a specific flash card",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlashCardImage"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "RolePrompt": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "fields": {
            "type": "object",
            "properties": {
              "prompt": {
                "type": "object",
                "properties": {
                  "stringValue": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "createTime": {
            "type": "string"
          },
          "updateTime": {
            "type": "string"
          }
        }
      },
      "FlashCardImage": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "fields": {
            "type": "object",
            "properties": {
              "url": {
                "type": "object",
                "properties": {
                  "stringValue": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "createTime": {
            "type": "string"
          },
          "updateTime": {
            "type": "string"
          }
        }
      }
    }
  }
}