英語リスニング課題を作成

英語リスニング課題を作成 · Actions GPT

オリジナルのリスニング課題を作成する

自分の弱点に応じた課題を作成して集中トレーニング

  • POST /session_keyscreateSessionKey

    セッションキーを作成する(最初に一度だけ呼ぶこと)

  • POST /dictionaries/create_with_deploycreateWithDeploy

    リスニング課題ページを作成する

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "オリジナルのリスニング課題を作成する",
    "description": "自分の弱点に応じた課題を作成して集中トレーニング",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://karaki-app.com"
    }
  ],
  "paths": {
    "/session_keys": {
      "post": {
        "description": "セッションキーを作成する(最初に一度だけ呼ぶこと)",
        "operationId": "createSessionKey",
        "responses": {
          "200": {
            "description": "A session key is created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "session_key": {
                      "type": "string",
                      "description": "生成されたセッションキー",
                      "pattern": "^[a-zA-Z0-9]{30}$"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/dictionaries/create_with_deploy": {
      "post": {
        "description": "リスニング課題ページを作成する",
        "operationId": "createWithDeploy",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "session_key": {
                    "description": "セッションを管理するために存在。このGPTのチャットが生き続ける限り同じ値を送付する。",
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9]{30}$"
                  },
                  "rows": {
                    "description": "質問文とその回答のペアの配列",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "question": {
                          "type": "string",
                          "description": "質問文"
                        }
                      },
                      "required": [
                        "question"
                      ]
                    }
                  },
                  "quiz_title": {
                    "description": "課題のタイトル",
                    "type": "string"
                  },
                  "quiz_kind": {
                    "description": "作成する課題の種類",
                    "type": "string",
                    "enum": [
                      "選択肢から選ぶタイプ",
                      "自由入力タイプ"
                    ]
                  },
                  "speak_speed": {
                    "description": "読み上げ速度(0から100の範囲で指定)",
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "speak_by": {
                    "description": "読み上げ言語",
                    "type": "string",
                    "enum": [
                      "en",
                      "ja",
                      "pt",
                      "fr",
                      "es",
                      "de",
                      "zh",
                      "ar"
                    ]
                  },
                  "enable_init_match": {
                    "description": "頭文字入力モードのON/OFF",
                    "type": "bool"
                  },
                  "max_num_of_candidates": {
                    "description": "選択肢の最大数",
                    "type": "integer",
                    "minimum": 2
                  }
                },
                "required": [
                  "session_key",
                  "rows"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Quiz created and published.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "stage_url": {
                      "type": "string",
                      "description": "この画面に遷移すると、作成したリスニング課題に挑戦することができる"
                    }
                  },
                  "required": [
                    "stage_url"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "なんらかの理由で課題作成に失敗した",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object",
                      "properties": {}
                    }
                  },
                  "required": []
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {}
  }
}