GetAITeacherExpansionDialogueSuggestion - 获取拓展练小助手提示

更新时间:

拓展练小助手。

调试

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

授权信息

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

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

请求语法

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

请求参数

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

请求 body 参数

recordsarray<object>

对话记录

recordobject

对话记录结构体

contentstring

对话内容

Ask Mark if he has thought about what his dream job might be.
rolestring

角色身份

枚举值:
  • assistant老师
  • user学生
AI:assistant;用户:user
isOnTopicboolean

是否扣题

扣题:true, 不扣题:false
isOffTopicControlboolean

是否跑题,带流程控制作用。 反映了学生的回答是否符合对话任务的设定,该参数的值来源于之前轮次的对话返回结果。此外,该参数还具有流程控制的作用。 跑题超过两次,取值会强制置为 true,用于强制切换任务。

跑题:true, 不跑题:false
orderinteger

排序编号

1
dialogueTasksarray<object>

对话任务对话内容集合

dialogueTaskobject

对话任务结构体

assistantstring

AI 对话内容

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

AI 对话内容翻译

为什么有些人认为遛狗是份好差事?
userstring

用户对话内容

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

排序编号

1
languageCodestring

语言编码

枚举值:
  • en-us美式英语
  • en-gb英式英语
en-gb
backgroundstring

对话背景描述

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.
roleInfoobject

角色设置

assistantstring

AI 的名字

Alex
userstring

用户的名字

Jamie
topicstring

主题

Let's talk about traffic rules.
startSentencestring

开场语

Hello Lily, could you please come to the kitchen for a moment?
userIdstring

用户 Id

886eba3702xxxxxxxxx4ba52a87a525

返回参数

名称类型描述示例值
object

OpenApiSingleResponse

requestIdstring

请求编号

xxxx-xxxx-xxxx-xxxxxxxx
successboolean

是否成功

true
errCodestring

错误信息编码

UNKNOWN_ERROR
errMessagestring

错误信息

未知错误
httpStatusCodeinteger

http 状态码

200
dataobject

数据对象

englishResultstring

小助手的英文提示

Thanks, Lily. Do you like meat, Lily?
chineseResultstring

小助手的中文提示

谢谢莉莉.你喜欢吃肉吗,莉莉?

示例

正常返回示例

JSON格式

{
  "requestId": "xxxx-xxxx-xxxx-xxxxxxxx",
  "success": true,
  "errCode": "UNKNOWN_ERROR",
  "errMessage": "未知错误",
  "httpStatusCode": 200,
  "data": {
    "englishResult": "Thanks, Lily. Do you like meat, Lily?",
    "chineseResult": "谢谢莉莉.你喜欢吃肉吗,莉莉?"
  }
}

错误码

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

变更历史

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