AITeacherExpansionPracticeTaskGenerate - 拓展练对话任务生成

更新时间:

拓展练问答对生成。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用前面加 * 表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
aicontent:ExpansionPracticeTaskGenerateget
*全部资源
*

请求语法

POST /api/v1/aiteacher/expansionPractice/generateTask HTTP/1.1

请求参数

名称类型必填描述示例值
bodyobject

请求 body 参数。

userIdstring

用户 Id

6440xxxxxxxxxx5fafc98c421
gradestring

年级

枚举值:
  • 3小学3年级
  • 4小学4年级
  • 5小学5年级
  • 6小学6年级
  • 7中学7年级
  • 8中学8年级
  • 9中学9年级
  • 10中学10年级
  • 11中学11年级
  • 12中学12年级
  • 13大学
13
textbookstring

教材名称

英语(基础模块)修订版
topicstring

对话主题

talk about your dream job.
learningObjectstring

学习目标

Understanding unique professions such as dog walkers, hotel test sleepers, and food tasters, including their job responsibilities and the benefits or challenges associated with each role.
textContentstring

用于生成问题的参考文章

Dog walker Dog walking, as a profession, originated in the US. Some may think that it's a perfect job, because dog walkers won't be imprisoned in an office. But it's actually manual labour. At their busiest, dog walkers may have more than ten dogs to take care of in a day. Hotel test sleeper A hotel test sleeper, as the name suggests, has to write expert reviews about the facilities, locations, prices, dining and other services of hotels, in order to provide evaluations and guides for travelers. Hotel test sleepers don't need to punch in for work and they get about ten thousand yuan as income every month. What a comfortable job! Food taster In ancient times, a food taster was a person who tasted foods (or drinks) to be served to someone else, to confirm that it was safe to eat. But now, those working as food tasters just get to taste various new foods and drinks aimed at specific regions across the world. They then give their opinions on these products to the companies and suggest improvements.
keySentencesarray

重点学习句子集合

string

重点学习句子

A hotel test sleeper, as the name suggests, has to write expert reviews about the facilities, locations, prices, dining, and other services of hotels.
keyWordsarray

重点学习单词集合

string

重点学习单词

responsibility

返回参数

名称类型描述示例值
object

响应结构体

requestIdstring

请求 Id

xxxx-xxxx-xxxx-xxxxxxxx
successboolean

是否成功

true
errCodestring

错误信息编码

UNKNOWN_ERROR
errMessagestring

错误信息

未知错误
httpStatusCodeinteger

http 状态码

200
dataobject

数据对象

taskTypestring

任务类型

textbook_dialogue
taskContentarray<object>

问答对集合

问答对object

问答对

assistantstring

AI 老师提问

Why might some people think dog walking is a great job?
userstring

学生回答

They think it's great because they won't be stuck in an office.
backgroundDescriptionstring

对话背景描述

In a career counseling session, we are going to discuss our dream jobs and the responsibilities associated with them. Alex, who dreams of becoming a professional travel blogger, will share the tasks and skills required for this role, while Jamie, aspiring to be a wildlife photographer, will outline the responsibilities and challenges of capturing nature's moments. Both will explore how their interests align with the practical aspects of their chosen careers, discussing the potential for travel, creativity, and the impact of their work on society and the environment.
startSentencestring

起始句子

Hey Jamie, do you know what a travel blogger does?
roleSetobject

角色设置

assistantstring

AI 老师扮演者

Alex
userstring

学生扮演者

Jamie

示例

正常返回示例

JSON格式

{
  "requestId": "xxxx-xxxx-xxxx-xxxxxxxx",
  "success": true,
  "errCode": "UNKNOWN_ERROR",
  "errMessage": "未知错误",
  "httpStatusCode": 200,
  "data": {
    "taskType": "textbook_dialogue",
    "taskContent": [
      {
        "assistant": "Why might some people think dog walking is a great job?",
        "user": "They think it's great because they won't be stuck in an office."
      }
    ],
    "backgroundDescription": "In a career counseling session, we are going to discuss our dream jobs and the responsibilities associated with them. Alex, who dreams of becoming a professional travel blogger, will share the tasks and skills required for this role, while Jamie, aspiring to be a wildlife photographer, will outline the responsibilities and challenges of capturing nature's moments. Both will explore how their interests align with the practical aspects of their chosen careers, discussing the potential for travel, creativity, and the impact of their work on society and the environment.",
    "startSentence": "Hey Jamie, do you know what a travel blogger does?",
    "roleSet": {
      "assistant": "Alex",
      "user": "Jamie"
    }
  }
}

错误码

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史