'1.0',
'info' => ['style' => 'RPC', 'product' => 'Qualitycheck', 'version' => '2019-01-15'],
'directories' => [
[
'children' => ['UploadAudioData', 'UploadDataV4', 'UploadData', 'UpdateQualityCheckData'],
'type' => 'directory',
'title' => '数据上传',
'id' => 314469,
],
[
'children' => [
[
'children' => ['AddRuleV4', 'UpdateRuleV4', 'ListRulesV4', 'GetRuleV4', 'DeleteRuleV4', 'TestRuleV4'],
'type' => 'directory',
'title' => '质检规则管理',
'id' => 314434,
],
[
'children' => ['DeleteCheckTypeToScheme', 'CreateQualityCheckScheme', 'UpdateQualityCheckScheme', 'GetQualityCheckScheme', 'ListQualityCheckScheme', 'DeleteQualityCheckScheme', 'UpdateRuleToScheme', 'CreateCheckTypeToScheme', 'UpdateCheckTypeToScheme'],
'type' => 'directory',
'title' => '质检方案管理',
'id' => 314446,
],
[
'children' => ['AddRuleCategory', 'GetRuleCategory', 'DelRuleCategory'],
'type' => 'directory',
'title' => '质检规则-分类',
'id' => 314442,
],
[
'children' => ['AddBusinessCategory', 'DeleteBusinessCategory', 'GetBusinessCategoryList'],
'type' => 'directory',
'title' => '质检规则-适用业务',
'id' => 314425,
],
],
'type' => 'directory',
'title' => '质检规则&方案',
'id' => 314423,
],
[
'children' => ['GetSchemeTaskConfig', 'CreateSchemeTaskConfig', 'UpdateSchemeTaskConfig', 'ListSchemeTaskConfig'],
'type' => 'directory',
'title' => '呼叫中心-质检任务管理',
'id' => 314464,
],
[
'children' => ['SubmitQualityCheckTask', 'SaveConfigDataSet', 'ListDataSet'],
'type' => 'directory',
'title' => '数据集',
'id' => 314376,
],
[
'children' => [
[
'children' => ['GetResult', 'GetResultToReview'],
'type' => 'directory',
'title' => '质检结果',
'id' => 314370,
],
[
'children' => ['ListSessionGroup', 'AssignReviewerBySessionGroup', 'RevertAssignedSessionGroup'],
'type' => 'directory',
'title' => '会话组质检',
'id' => 314361,
],
[
'children' => ['SubmitReviewInfoV4', 'AssignReviewer', 'SubmitComplaint', 'HandleComplaint', 'RevertAssignedSession'],
'type' => 'directory',
'title' => '申诉&复核&分配',
'id' => 314350,
],
],
'type' => 'directory',
'title' => '质检结果',
'id' => 314348,
],
[
'children' => [
[
'children' => ['CreateAsrVocab', 'UpdateAsrVocab', 'GetAsrVocab', 'ListAsrVocab', 'DeleteAsrVocab'],
'type' => 'directory',
'title' => '热词模型',
'id' => 314335,
],
[
'children' => ['GetCustomizationConfigList', 'DeleteCustomizationConfig'],
'type' => 'directory',
'title' => '语言模型',
'id' => 314329,
],
],
'type' => 'directory',
'title' => '语音模型训练',
'id' => 314327,
],
[
'children' => [
[
'children' => ['CreateTaskAssignRule', 'UpdateTaskAssignRule', 'ListTaskAssignRules', 'DeleteTaskAssignRule'],
'type' => 'directory',
'title' => '复核管理',
'id' => 314390,
],
[
'children' => ['CreateWarningConfig', 'UpdateWarningConfig', 'ListWarningConfig', 'DeleteWarningConfig'],
'type' => 'directory',
'title' => '预警管理',
'id' => 314401,
],
[
'children' => ['CreateSkillGroupConfig', 'UpdateSkillGroupConfig', 'GetSkillGroupConfig', 'ListSkillGroupConfig', 'DeleteSkillGroupConfig'],
'type' => 'directory',
'title' => '技能组管理',
'id' => 314410,
],
],
'type' => 'directory',
'title' => '系统管理',
'id' => 314387,
],
[
'children' => [
[
'children' => ['ApplyWsToken', 'GetSyncResult', 'SyncQualityCheck', 'UpdateSyncQualityCheckData'],
'type' => 'directory',
'title' => '实时质检',
'id' => 314457,
],
[
'children' => ['DeleteSchemeTaskConfig'],
'type' => 'directory',
'title' => '其他',
'id' => 314462,
],
],
'type' => 'directory',
'title' => '不推荐或白名单开放',
'id' => 314456,
],
[
'children' => [
[
'children' => ['GetRuleById', 'GetRulesCountList', 'UpdateRuleById', 'UpdateRule', 'UploadRule', 'GetRuleDetail', 'InvalidRule'],
'type' => 'directory',
'title' => '规则管理',
'id' => 314480,
],
[
'children' => ['GetScoreInfo'],
'type' => 'directory',
'title' => '评分管理',
'id' => 314491,
],
[
'children' => ['SubmitReviewInfo', 'BatchSubmitReviewInfo', 'UploadDataSync'],
'type' => 'directory',
'title' => '其他',
'id' => 314497,
],
[
'children' => ['GetNextResultToVerify', 'VerifyFile', 'VerifySentence'],
'type' => 'directory',
'title' => '人工评测',
'id' => 314493,
],
[
'children' => ['SubmitPrecisionTask', 'GetPrecisionTask', 'ListPrecisionTask', 'DeletePrecisionTask'],
'type' => 'directory',
'title' => '模型效果评测',
'id' => 314475,
],
],
'type' => 'directory',
'title' => '新版本(V4)弃用',
'id' => 314474,
],
[
'children' => [
'CreateMiningTask', 'GetMiningTaskResult', 'AnalyzeLabel', 'CreateAgent', 'CreateAgentTask', 'CreateTag', 'CreateUser', 'DeleteAgent', 'DeleteDataSet', 'DeleteRule', 'DeleteTag', 'ExecuteAgent', 'GenerateLabel', 'GetAgent', 'GetAgentTaskResult', 'GetLabelAnalysisResult', 'GetLabelGeneratedResult', 'GetRule', 'GetTag', 'ListRules',
'ListTag', 'ListUsers', 'RunCompletionMessage', 'UpdateAgent', 'UpdateTag', 'UpdateUser',
],
'type' => 'directory',
'title' => '其他',
'id' => 314501,
],
],
'components' => [
'schemas' => [
'AgentInfo' => [
'type' => 'object',
'properties' => [
'Id' => ['type' => 'integer', 'format' => 'int64'],
'AgentName' => ['type' => 'string'],
'AgentDescription' => ['type' => 'string'],
'ModelType' => ['type' => 'string'],
'InputType' => ['type' => 'string'],
'InstructionType' => ['type' => 'string'],
'InstructionTypeParam' => [
'type' => 'object',
'properties' => [
'FieldsParam' => [
'type' => 'object',
'properties' => [
'NameDescPairList' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Name' => ['type' => 'string'],
'Desc' => ['type' => 'string'],
'Value' => ['type' => 'string'],
],
],
],
],
],
'ServiceInspectionParam' => [
'type' => 'object',
'properties' => [
'SceneName' => ['type' => 'string'],
'SceneDescription' => ['type' => 'string'],
'Dimensions' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Dimension' => ['type' => 'string'],
'Desc' => ['type' => 'string'],
],
],
],
],
],
'TagCategoryParam' => [
'type' => 'object',
'properties' => [
'NameDescPairList' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Name' => ['type' => 'string'],
'Desc' => ['type' => 'string'],
'ValueList' => [
'type' => 'array',
'items' => ['type' => 'string'],
],
],
],
],
],
],
'CustomPromptParam' => [
'type' => 'object',
'properties' => [
'CustomPrompt' => ['type' => 'string'],
'NameDescPairList' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Name' => ['type' => 'string'],
'Value' => ['type' => 'string'],
],
],
],
],
],
],
],
],
],
'BusinessCategoryBasicInfo' => [
'description' => '适用业务',
'type' => 'object',
'properties' => [
'Bid' => ['title' => '业务ID', 'description' => '业务ID', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ServiceType' => ['title' => '服务类型(ServiceCategory)', 'description' => '服务类型(ServiceCategory)。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Name' => ['title' => '业务名称', 'description' => '业务名称', 'type' => 'string', 'example' => '全部'],
'OriginalId' => ['title' => 'originalId', 'description' => 'originalId', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
],
'ConditionBasicInfo' => [
'description' => '表达式',
'type' => 'object',
'properties' => [
'Cid' => ['title' => '条件id,可能是db中的主键,也可能是转换成的a, b, c', 'description' => '条件id,可能是db中的主键,也可能是转换成的a, b, c', 'type' => 'string', 'example' => 'a'],
'Id' => ['title' => '在db中的主键', 'description' => '在db中的主键', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'Rid' => ['title' => '条件所属的规则id', 'description' => '条件所属的规则id', 'type' => 'string', 'example' => '1'],
'Check_range' => [
'title' => '检测范围',
'description' => '检测范围',
'type' => 'object',
'properties' => [
'RoleId' => ['title' => '对应 RoleType.id', 'description' => '对应 RoleType.id', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Role' => ['title' => '对应 RoleType.type', 'description' => '对应 RoleType.type', 'type' => 'string', 'example' => '客服'],
'Anchor' => [
'title' => '前置后置条件',
'description' => '前置后置条件',
'type' => 'object',
'properties' => [
'Cid' => ['title' => '条件ID', 'description' => '条件ID', 'type' => 'string', 'example' => 'a'],
'Location' => ['title' => '位置', 'description' => '位置', 'type' => 'string', 'example' => 'BEFORE'],
'Hit_time' => ['title' => '命中次数', 'description' => '命中次数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
'Range' => [
'title' => '相对范围',
'description' => '相对范围',
'type' => 'object',
'properties' => [
'From' => ['title' => '对话开始索引', 'description' => '对话开始索引', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'To' => ['title' => '对话结束索引', 'description' => '对话结束索引', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
],
],
'Absolute' => ['title' => 'false: 相对位置; 会结合anchor以及角色来决定句子位置', 'description' => 'false: 相对位置; 会结合anchor以及角色来决定句子位置', 'type' => 'boolean', 'example' => 'true'],
'AllSentencesSatisfy' => ['title' => 'true: 每句话都必须满足条件;', 'description' => 'true: 每句话都必须满足条件;', 'type' => 'boolean', 'example' => 'true'],
],
],
'Operators' => [
'title' => '算子列表',
'description' => '算子列表',
'type' => 'array',
'items' => ['description' => '算子', '$ref' => '#/components/schemas/OperatorBasicInfo'],
],
'Lambda' => ['title' => 'Lambda表达式:例如:a&&b', 'description' => 'Lambda表达式:例如:a&&b', 'type' => 'string', 'example' => 'a'],
'Exclusion' => ['title' => '排除', 'description' => '排除', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'Name' => ['title' => '条件名', 'description' => '条件名', 'type' => 'string', 'example' => 'xx'],
'UserGroup' => ['title' => '用户组', 'description' => '用户组', 'type' => 'string', 'example' => 'xxxx'],
],
],
'GraphFlowNode' => [
'description' => '流程节点',
'type' => 'object',
'properties' => [
'Id' => ['title' => '节点id', 'description' => '节点ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'Rid' => ['title' => '规则ID,当规则没有落库时 rid为空。当规则落库时 rid == id', 'description' => '规则ID,当规则没有落库时rid为空。当规则落库时rid==ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'Name' => ['title' => '节点名字', 'description' => '节点名字', 'type' => 'string', 'example' => '开始节点'],
'NodeType' => ['title' => '节点类型', 'description' => '节点类型', 'type' => 'string', 'example' => 'startNode'],
'Index' => ['title' => 'index', 'description' => '索引', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Content' => ['title' => '前端展示使用', 'description' => '前端展示使用', 'type' => 'string', 'example' => '{}'],
'Properties' => [
'title' => '节点属性',
'description' => '节点属性',
'type' => 'object',
'properties' => [
'Type' => ['title' => '属性类型', 'description' => '属性类型', 'type' => 'string', 'example' => 'xx'],
'Role' => ['title' => 'single类型时,角色', 'description' => 'single类型时,角色', 'type' => 'string', 'example' => '客户'],
'SayType' => ['title' => 'single类型时,是否表达', 'description' => 'single类型时,是否表达', 'type' => 'string'],
'RuleScoreType' => ['title' => '是否计分', 'description' => '是否计分', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScoreNum' => ['title' => '计分值', 'description' => '计分值', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScoreType' => ['title' => '1加分 3减分 默认1', 'description' => '1:加分;3:减分;默认1。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScoreRuleHitType' => ['title' => '0-命中节点时计分', 'description' => '0:命中节点时计分', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'AutoReview' => ['title' => '1 "不自动审核"', 'description' => '1:不自动审核', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScoreNumType' => ['title' => '0-触发规则后加减分;1-触发规则后一次性得分', 'description' => '0:触发规则后加减分;1:触发规则后一次性得分。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Lambda' => ['title' => '普通算子逻辑', 'description' => '普通算子逻辑', 'type' => 'string', 'example' => 'a'],
'CheckType' => ['title' => '质检维度', 'description' => '质检维度', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Triggers' => [
'title' => '关注的算子',
'description' => '关注的算子',
'type' => 'array',
'items' => ['description' => '算子', 'type' => 'string', 'example' => 'a'],
],
'BranchJudge' => ['title' => '是否开启分支判断', 'description' => '是否开启分支判断', 'type' => 'boolean', 'example' => 'true'],
'CheckMoreSize' => ['title' => '最多检测N句', 'description' => '最多检测N句', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
'Conditions' => [
'title' => '算子信息',
'description' => '算子信息',
'type' => 'array',
'items' => ['description' => '算子', '$ref' => '#/components/schemas/ConditionBasicInfo'],
],
'NextNodes' => [
'title' => '子节点',
'description' => '子节点',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Index' => ['title' => '流程分支优先级。越小优先级越高', 'description' => '流程分支优先级。越小优先级越高', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Name' => ['title' => '条件分支名', 'description' => '条件分支名', 'type' => 'string', 'example' => 'a'],
'NextNodeId' => ['title' => '后续节点ID', 'description' => '后续节点ID', 'type' => 'integer', 'format' => 'int64', 'example' => '31533'],
'Lambda' => ['title' => '通往下一跳的Lambda表达式', 'description' => '通往下一跳的Lambda表达式', 'type' => 'string', 'example' => 'a'],
'CheckType' => ['title' => '质检维度', 'description' => '质检维度', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Triggers' => [
'title' => '关注的算子',
'description' => '关注的算子',
'type' => 'array',
'items' => ['description' => '算子', 'type' => 'string', 'example' => 'a'],
],
],
'description' => '',
],
],
'UseConditions' => ['title' => '是否使用 算子匹配还是使用老板的匹配', 'description' => '是否使用算子匹配还是使用老板的匹配。', 'type' => 'boolean', 'example' => 'true'],
],
],
'JudgeNodeMetaDesc' => [
'description' => '随录参数配置',
'type' => 'object',
'properties' => [
'Field' => ['title' => '系统字段', 'description' => '系统字段', 'type' => 'string', 'example' => 'remark1'],
'FieldType' => ['title' => '字段数据来源类型:1:系统预定义字段 2:传参质检字段', 'description' => '字段数据来源类型:1:系统预定义字段 2:传参质检字段', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'DataType' => ['title' => '数据类型', 'description' => '数据类型', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Symbol' => ['title' => '逻辑表达式', 'description' => '逻辑表达式', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Value' => ['title' => '预设值的值', 'description' => '预设值的值', 'type' => 'string', 'example' => 'xxx'],
'ActualValue' => ['title' => '实际值', 'description' => '实际值', 'type' => 'string', 'example' => 'xx'],
'ExpressionMetaDesc' => [
'type' => 'object',
'properties' => [
'LeftFieldType' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
'LeftOperand' => ['type' => 'string', 'description' => ''],
'Operator' => ['type' => 'string', 'description' => ''],
'RightFieldType' => ['type' => 'integer', 'format' => 'int32', 'description' => ''],
'RightOperand' => ['type' => 'string', 'description' => ''],
'RoundingMode' => ['type' => 'string', 'description' => ''],
],
'description' => '',
],
],
],
'NextNodeSituations' => [
'description' => '返回结果',
'type' => 'object',
'properties' => [
'ConditionGroup' => [
'title' => '判断条件',
'description' => '判断条件',
'type' => 'array',
'items' => [
'description' => '条件',
'type' => 'object',
'properties' => [
'Conditions' => [
'title' => '匹配条件集合',
'description' => '匹配条件集合',
'type' => 'array',
'items' => ['description' => '条件', '$ref' => '#/components/schemas/JudgeNodeMetaDesc'],
],
'Type' => ['title' => '条件之间的匹配关系', 'description' => '条件之间的匹配关系', 'type' => 'string', 'example' => '1'],
],
],
],
'Type' => ['title' => '条件之间的匹配关系 目前都是or的关系', 'description' => '条件之间的匹配关系:目前都是or的关系', 'type' => 'string', 'example' => '1'],
],
],
'OperatorBasicInfo' => [
'type' => 'object',
'properties' => [
'Oid' => ['title' => '可能是主键id,也可能是前端生成的id', 'description' => '可能是主键ID,也可能是前端生成的ID。', 'type' => 'string', 'example' => 'a'],
'Id' => ['title' => '主键id', 'description' => '主键ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'Type' => ['title' => '算子类别', 'description' => '算子类别', 'type' => 'string', 'example' => 'HIT_ANY_KEYWORDS'],
'Param' => [
'title' => '算子参数',
'description' => '算子参数',
'type' => 'object',
'properties' => [
'CustomerParam' => ['title' => '随录参数算子参数', 'description' => '随录参数算子参数', '$ref' => '#/components/schemas/JudgeNodeMetaDesc'],
'Keywords' => [
'title' => '关键词',
'description' => '关键词',
'type' => 'array',
'items' => ['description' => '关键词', 'type' => 'string', 'example' => '你好'],
],
'Regex' => ['title' => '正则表达式', 'description' => '正则表达式', 'type' => 'string', 'example' => '质疑.*'],
'NotRegex' => ['title' => '排除的正则表达式', 'description' => '排除的正则表达式', 'type' => 'string', 'example' => '优秀.*'],
'Phrase' => ['title' => '语句', 'description' => '语句', 'type' => 'string', 'example' => '你好,请问'],
'References' => [
'title' => 'references引用',
'description' => 'references引用',
'type' => 'array',
'items' => ['description' => 'references引用', 'type' => 'string', 'example' => '你好.{0,10}'],
],
'Interval' => ['title' => 'interval代表区间范围开始', 'description' => 'interval代表区间范围开始', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'IntervalEnd' => ['title' => 'intervalEnd 代表区间范围结束', 'description' => '代表区间范围结束', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'Threshold' => ['title' => '阈值', 'description' => '阈值', 'type' => 'number', 'format' => 'float', 'example' => '90'],
'In_sentence' => ['title' => '生效句子, true单个句子,false多个句子', 'description' => '生效句子,true单个句子,false多个句子', 'type' => 'boolean', 'example' => 'true'],
'Target' => ['title' => 'target', 'description' => '目标句子是当前句子的前多少句,为0时间间隔等于本句的结束时间-本句的开始时间', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'From_end' => ['title' => 'from_end', 'description' => '用于时间间隔算子,判断时间间隔,指定时间间隔的计算方式是否用本句的结束时间减目标句子的结束时间', 'type' => 'boolean', 'example' => 'true'],
'Different_role' => ['title' => 'different_role', 'description' => '用以时间间隔算子,判断时间间隔,为true则目标句子如果与本句是同一个角色说的话就不参与计算', 'type' => 'boolean', 'example' => 'true'],
'Target_role' => ['title' => 'target_role', 'description' => '用于判断重复算子,如果本句匹配上该正则表达式,那么匹配上的部份会在本句之前target_role指定的句子中查找', 'type' => 'string', 'example' => '客服'],
'RoleId' => ['title' => '算子中使用角色,目前用于上下文重复算子,与target_role一起使用。', 'description' => '算子中使用角色,目前用于上下文重复算子,与Target_role一起使用。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Velocity' => ['title' => '速度', 'description' => '用于语速判断算子。单位时间内的语速值,判断本句的语速是否超过指定值。时间单位取决于传入的start、end的时间单位', 'type' => 'number', 'format' => 'double', 'example' => '111'],
'VelocityInMint' => ['title' => 'velocityInMint', 'description' => '用于语速判断算子。每分钟的语速值,用以判断本句的语速是否超过指定值', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'KeywordExtension' => ['title' => '关键字扩展', 'description' => '关键字扩展', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Synonyms' => [
'title' => '同义词',
'description' => '同义词',
'type' => 'object',
'additionalProperties' => [
'description' => '同义词',
'type' => 'array',
'items' => ['description' => '同义词', 'type' => 'string', 'example' => '售卖'],
],
],
'Case_sensitive' => ['title' => '区分大小写', 'description' => '区分大小写', 'type' => 'boolean', 'example' => 'true'],
'Near_dialogue' => ['title' => 'true表示取不同角色相邻的两句话,false表示取不同角色的第一句话比较响应时间(默认)', 'description' => 'true表示取不同角色相邻的两句话,false表示取不同角色的第一句话比较响应时间(默认)', 'type' => 'boolean', 'example' => 'true'],
'MinWordSize' => ['title' => '句子中最少字数,小于此字数的句子不检查', 'description' => '句子中最少字数,小于此字数的句子不检查', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Hit_time' => ['title' => '上下文重复算子:重复几次', 'description' => '上下文重复算子:重复几次', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'Excludes' => [
'title' => '上下文重复算子:排除掉某些对话',
'description' => '上下文重复算子:排除掉某些对话',
'type' => 'array',
'items' => ['description' => '上下文重复算子:排除掉某些对话', 'type' => 'string', 'example' => '负向'],
],
'From' => ['title' => '上下文重复算子:检测当前句的前from句是否有重复;0表示前面的所有句', 'description' => '上下文重复算子:检测当前句的前from句是否有重复;0表示前面的所有句', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'CheckFirstSentence' => ['title' => '静音检测:要不要检测第一句话', 'description' => '静音检测:要不要检测第一句话', 'type' => 'boolean', 'example' => 'true'],
'Average' => ['title' => '语速检测,是否计算整个对话平均语速,默认false', 'description' => '语速检测,是否计算整个对话平均语速,默认false', 'type' => 'boolean', 'example' => 'true'],
'BeginType' => ['title' => '时长算子,时长计算开始类型,录音开始,还是某句对话开始', 'description' => '时长算子,时长计算开始类型,录音开始,还是某句对话开始', 'type' => 'string', 'example' => '1'],
'EndType' => ['title' => '时长算子,时长计算结束类型,录音结束,还是某句对话结束', 'description' => '时长算子,时长计算结束类型,录音结束,还是某句对话结束', 'type' => 'string', 'example' => '2'],
'CompareOperator' => ['title' => '大于,还是小于,gt/lt', 'description' => '大于,还是小于,gt/lt', 'type' => 'string', 'example' => 'gt'],
'Pkey' => ['title' => '涉外属性需要的变量', 'description' => '涉外属性需要的变量', 'type' => 'string', 'example' => 'xx'],
'Poutput_type' => ['title' => 'poutput类型', 'description' => 'poutput类型', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'SimilarlySentences' => [
'title' => '相识问',
'description' => '相识问',
'type' => 'array',
'items' => ['description' => '相识问', 'type' => 'string', 'example' => '我要购买'],
],
'LgfSentences' => [
'title' => 'lgf句子',
'description' => 'lgf句子',
'type' => 'array',
'items' => ['description' => 'lgf句子', 'type' => 'string', 'example' => '你好{1}'],
],
'Score' => ['title' => '分数', 'description' => '分数', 'type' => 'integer', 'format' => 'int32', 'example' => '70'],
'ContextChatMatch' => ['title' => '是否单句话匹配;', 'description' => '是否单句话匹配;', 'type' => 'boolean', 'example' => 'true'],
'KeywordMatchSize' => ['title' => '匹配到的关键字数量', 'description' => '匹配到的关键字数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'MaxEmotionChangeValue' => ['title' => '能量值变化,默认3, 1~9', 'description' => '能量值变化,默认3,1~9', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'CheckType' => ['title' => '检测方式,1 相邻句能量波动 2 最大能量跨度 默认1', 'description' => '检测方式:默认1'."\n"
.'- 1:相邻句能量波动'."\n"
.'- 2:最大能量跨度', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'KnowledgeTargetId' => ['title' => '知识类目或者知识Id', 'description' => '知识类目或者知识ID。', 'type' => 'string', 'example' => '1'],
'CategoryPathCode' => ['title' => '知识类目路径', 'description' => '知识类目路径', 'type' => 'string', 'example' => 'xx'],
'KnowledgeTargetType' => ['title' => '0-类目 1-知识', 'description' => '0-类目,1-知识。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'KnowledgeTargetName' => ['title' => '知识类目名字或知识名字', 'description' => '知识类目名字或知识名字', 'type' => 'string', 'example' => '订单'],
'QuestionThreshold' => ['title' => '问题命中阈值', 'description' => '问题命中阈值', 'type' => 'string', 'example' => '90'],
'AnswerThreshold' => ['title' => '答案命中阈值', 'description' => '答案命中阈值', 'type' => 'string', 'example' => '90'],
'KnowledgeSentenceNum' => ['title' => '命中问题后几句内检测答案', 'description' => '命中问题后几句内检测答案', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'KnowledgeInfo' => ['title' => '知识信息', 'description' => '知识信息', 'type' => 'string', 'example' => '下单'],
'BotId' => ['title' => '机器人id', 'description' => '机器人ID。', 'type' => 'string', 'example' => 'chatbot-cn-xxx'],
'UseEasAlgorithm' => ['title' => '使用eas算法', 'description' => '使用eas算法', 'type' => 'boolean', 'example' => 'true'],
'Pvalues' => [
'title' => '模型检测类型',
'description' => '模型检测类型',
'type' => 'array',
'items' => ['type' => 'string', 'description' => ''],
],
'Similarity_threshold' => ['title' => '相似度阈值', 'description' => '相似度阈值', 'type' => 'number', 'format' => 'double', 'example' => '90'],
'AntModelInfo' => [
'title' => '蚂蚁模型信息',
'description' => '蚂蚁模型信息',
'type' => 'object',
'additionalProperties' => ['description' => '蚂蚁模型信息', 'type' => 'string', 'example' => 'xxx'],
],
'DelayTime' => ['title' => '抢话算子 延时时长', 'description' => '抢话算子:延时时长', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'Knowledges' => ['type' => 'string'],
'LlmModelCode' => ['type' => 'string'],
'HitCondition' => ['type' => 'string'],
'SceneName' => ['type' => 'string'],
'Dimensions' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Dimension' => ['type' => 'string'],
'Desc' => ['type' => 'string'],
'ExcludeCondition' => ['type' => 'string'],
'IncludeCondition' => ['type' => 'string'],
],
],
],
],
],
'Name' => ['title' => '算子名', 'description' => '算子名', 'type' => 'string', 'example' => 'a'],
'UserGroup' => ['title' => '用户组', 'description' => '用户组', 'type' => 'string', 'example' => 'xxx'],
'QualityCheckType' => ['title' => '质检类型:0 离线质检,1 实时质检', 'description' => '质检类型:'."\n"
.'- 0:离线质检'."\n"
.'- 1:实时质检', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
],
'description' => '',
],
'RuleCountInfo' => [
'description' => '规则详情',
'type' => 'object',
'properties' => [
'Rid' => ['title' => '规则ID', 'description' => '规则ID', 'type' => 'integer', 'format' => 'int64', 'example' => '123'],
'Name' => ['title' => '规则名称', 'description' => '规则名称', 'type' => 'string', 'example' => '0801转封装测试'],
'Type' => ['title' => '规则类型', 'description' => '规则类型', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Status' => ['title' => '状态:待生效 / 生效中 / 已失效: 0 / 1 / 2', 'description' => '状态:'."\n"
.'- 待生效:0'."\n"
.'- 生效中:1'."\n"
.'- 已失效:2', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'CheckNumber' => ['title' => '检测会话数', 'description' => '检测会话数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'HitNumber' => ['title' => '命中会话量', 'description' => '命中会话量', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'HitRate' => ['title' => '命中率', 'description' => '命中率', 'type' => 'number', 'format' => 'float', 'example' => '1'],
'ReviewAccuracyRate' => ['title' => '复核准确率', 'description' => '复核准确率', 'type' => 'number', 'format' => 'float', 'example' => '1'],
'ReviewRate' => ['title' => '复核率', 'description' => '复核率', 'type' => 'number', 'format' => 'float', 'example' => '1'],
'PreReviewNumber' => ['title' => '待复核数', 'description' => '待复核数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'ReviewNumber' => ['title' => '已复核数', 'description' => '已复核数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'UnReviewNumber' => ['title' => '未复核数量', 'description' => '未复核数量', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'ProblemNumber' => ['title' => '发现问题数', 'description' => '发现问题数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'StartTime' => ['title' => '开始时间', 'description' => '开始时间', 'type' => 'string', 'example' => '1662685868850'],
'EndTime' => ['title' => '结束时间', 'description' => '结束时间', 'type' => 'string', 'example' => '1650092585176'],
'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '1615133575000'],
'CreateEmpid' => ['title' => '创建人工号', 'description' => '创建人工号', 'type' => 'string', 'example' => '1'],
'CreateEmpName' => ['title' => '创建人姓名', 'description' => '创建人姓名', 'type' => 'string', 'example' => '张三'],
'LastUpdateEmpid' => ['title' => '最后更新人工号', 'description' => '最后更新人工号', 'type' => 'string', 'example' => '1'],
'LastUpdateEmpName' => ['title' => '最后更新人姓名', 'description' => '最后更新人姓名', 'type' => 'string', 'example' => '张三'],
'LastUpdateTime' => ['title' => '最后更新时间', 'description' => '最后更新时间', 'type' => 'string', 'example' => '1648200901000'],
'BusinessRange' => [
'title' => '业务范围',
'description' => '业务范围',
'type' => 'array',
'items' => ['description' => '业务范围', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
'BusinessCategoryBasicInfoList' => [
'title' => '业务类别基本信息列表',
'description' => '业务类别基本信息列表',
'type' => 'array',
'items' => ['description' => '业务ID', '$ref' => '#/components/schemas/BusinessCategoryBasicInfo'],
],
'BusinessCategoryNameList' => [
'title' => '业务类别名称列表',
'description' => '业务类别名称列表',
'type' => 'array',
'items' => ['description' => '业务类别名称列表', 'type' => 'string'],
],
'IsDelete' => ['title' => '是否删除', 'description' => '是否删除', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'TypeName' => ['title' => '类型名称', 'description' => '类型名称', 'type' => 'string', 'example' => '全部类别'],
'JobName' => ['title' => '定时任务名称', 'description' => '定时任务名称', 'type' => 'string', 'example' => 'job-1-20221012-105943'],
'Comments' => ['title' => '评论', 'description' => '评论', 'type' => 'string', 'example' => '测试'],
'RealViolationNumber' => ['title' => '复核后真实违规的数量', 'description' => '复核后真实违规的数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'HitRealViolationRate' => ['title' => '命中违规率', 'description' => '命中违规率', 'type' => 'number', 'format' => 'float', 'example' => '1'],
'ReviewStatusName' => ['title' => '审核状态名字', 'description' => '审核状态名字', 'type' => 'string', 'example' => '通过'],
'Deny' => ['title' => '1拒绝编辑规则,0/null可以编辑规则', 'description' => '1拒绝编辑规则,0/null可以编辑规则', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScoreSubId' => ['title' => '小项id', 'description' => '小项id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'AutoReview' => ['title' => '审核选项 1 不自动审核 3 自动审核', 'description' => '审核选项:'."\n"
.'- 1:不自动审核'."\n"
.'- 3:自动审核', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'RuleScoreType' => ['title' => '是否计分 1不计分 3计分', 'description' => '是否计分:'."\n"
.'- 1:不计分'."\n"
.'- 3:计分', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'UserGroup' => ['title' => '用户组', 'description' => '用户组', 'type' => 'string', 'example' => 'xxxx'],
'OperationMode' => ['title' => '操作模式', 'description' => '操作模式', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'IsSelect' => ['title' => '是否选择', 'description' => '是否选择', 'type' => 'boolean', 'example' => 'true'],
'RuleType' => ['title' => '内置规则Or用户创建规则', 'description' => '内置规则Or用户创建规则', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Effective' => ['title' => '是否生效:0否,1是', 'description' => '是否生效:0否,1是', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'FullCycle' => ['title' => '是否为全生命周期生效,0否,1是', 'description' => '是否为全生命周期生效,0否,1是', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'EffectiveStartTime' => ['title' => '生效开始时间', 'description' => '生效开始时间', 'type' => 'string', 'example' => '1662685868850'],
'EffectiveEndTime' => ['title' => '生效结束时间', 'description' => '生效结束时间', 'type' => 'string', 'example' => '1662685868850'],
'QualityCheckType' => ['title' => '质检类型:0 离线质检,1 实时质检', 'description' => '质检类型:'."\n"
.'- 0:离线质检'."\n"
.'- 1:实时质检', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'GraphFlow' => ['title' => '流程画布', 'description' => '流程画布,格式为Json', 'type' => 'any', 'example' => '较复杂,忽略'],
'RuleScoreSingleType' => ['title' => '-- 8-未设置评分', 'description' => '评分类型:8:未设置评分', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'TargetType' => ['title' => '规则种类:10-普通规则,11-流程规则', 'description' => '规则种类:'."\n"
.'- 10:普通规则'."\n"
.'- 11:流程规则', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
],
],
'RuleInfo' => [
'title' => '规则明细',
'description' => '规则明细',
'type' => 'object',
'properties' => [
'Status' => ['title' => '规则状态', 'description' => '规则状态', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'IsDelete' => ['title' => '是否已删除', 'description' => '是否已删除', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'StartTime' => ['title' => '开始时间', 'description' => '开始时间', 'type' => 'string', 'example' => '1641277321000'],
'EndTime' => ['title' => '结束时间', 'description' => '结束时间', 'type' => 'string', 'example' => '1641277321000'],
'Weight' => ['title' => '权重', 'description' => '权重', 'type' => 'string', 'example' => '1'],
'IsOnline' => ['title' => '是否在线', 'description' => '是否在线', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'CreateEmpid' => ['title' => '创建人工号', 'description' => '创建人工号', 'type' => 'string', 'example' => '1'],
'CreateEmpName' => ['title' => '创建人姓名', 'description' => '创建人姓名', 'type' => 'string', 'example' => '张三'],
'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '1641277321000'],
'LastUpdateTime' => ['title' => '最后更新时间', 'description' => '最后更新时间', 'type' => 'string', 'example' => '1641277321000'],
'LastUpdateEmpid' => ['title' => '最后更新人工号', 'description' => '最后更新人工号', 'type' => 'string', 'example' => '1'],
'LastUpdateEmpName' => ['title' => '最后更新人姓名', 'description' => '最后更新人姓名', 'type' => 'string', 'example' => '张三'],
'Comments' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'example' => '违规'],
'Deny' => ['title' => '1拒绝编辑规则,0/null可以编辑规则', 'description' => '1拒绝编辑规则,0/null可以编辑规则', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScoreSubId' => ['title' => '小项id', 'description' => '小项id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'ScoreName' => ['title' => '评分大项名称', 'description' => '评分大项名称', 'type' => 'string', 'example' => '违规'],
'ScoreSubName' => ['title' => '评分小项', 'description' => '评分小项', 'type' => 'string', 'example' => '1'],
'ScoreType' => ['title' => '加分或者减分', 'description' => '加分或者减分', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScoreDeleted' => ['title' => '评分项是否删除,用于删除时显示置灰', 'description' => '评分项是否删除,用于删除时显示置灰', 'type' => 'boolean', 'example' => 'true'],
'OperationMode' => ['title' => '操作模式', 'description' => '操作模式', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Meet' => ['title' => '是否满足', 'description' => '是否满足', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Effective' => ['title' => '是否生效:0否,1是', 'description' => '是否生效:0否,1是', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'FullCycle' => ['title' => '是否为全生命周期生效,0否,1是', 'description' => '是否为全生命周期生效,0否,1是', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'EffectiveStartTime' => ['title' => '生效开始时间', 'description' => '生效开始时间', 'type' => 'string', 'example' => 'OperationMode'],
'EffectiveEndTime' => ['title' => '生效结束时间', 'description' => '生效结束时间', 'type' => 'string', 'example' => 'OperationMode'],
'QualityCheckType' => ['title' => '质检类型:0 离线质检,1 实时质检 //4.0逻辑兼容使用', 'description' => '质检类型:0 离线质检,1 实时质检 //4.0逻辑兼容使用', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Level' => ['title' => '规则级别:0 重度违规 1 中度违规 2 轻度违规', 'description' => '规则级别:0 重度违规 1 中度违规 2 轻度违规', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'GraphFlow' => ['title' => '图流程画布', 'description' => '图流程画布', 'type' => 'any', 'example' => '{}'],
'TaskFlowType' => ['title' => '流程图类型-已废弃-默认-1', 'description' => '流程图类型-已废弃-默认-1', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'CheckType' => ['title' => '0-服务规范性检测 1-服务态度检测 2-服务专业性检测 3-客户态度检测 4-服务流程正确性检测', 'description' => '0-服务规范性检测 1-服务态度检测 2-服务专业性检测 3-客户态度检测 4-服务流程正确性检测', 'type' => 'integer', 'format' => 'int64', 'example' => '3'],
'SchemeCheckType' => ['title' => '质检维度对象', 'description' => '质检维度对象', '$ref' => '#/components/schemas/SchemeCheckType'],
'TargetType' => ['title' => '规则类别:10:质检方案-通用规则;11:质检方案-流程规则 //4.0协议专用', 'description' => '规则类别:10:质检方案-通用规则;11:质检方案-流程规则 //4.0协议专用', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'ConfigType' => ['title' => '配置类型:1:简单条件配置,2:高级配置,默认1 //4.0协议专用', 'description' => '配置类型:1:简单条件配置,2:高级配置,默认1 //4.0协议专用', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScoreNumType' => ['title' => '0-触发规则后加减分 1-触发规则后一次性得分 //4.0协议专用', 'description' => '0-触发规则后加减分 1-触发规则后一次性得分 //4.0协议专用', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScoreRuleHitType' => ['title' => '0-命中节点时计分', 'description' => '0-命中节点时计分', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'SchemeId' => ['title' => '所属质检方案Id', 'description' => '所属质检方案Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'SchemeRuleMappingId' => ['title' => '质检方案与规则映射ID', 'description' => '质检方案与规则映射ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'SchemeName' => ['title' => '质检方案名称', 'description' => '质检方案名称', 'type' => 'string', 'example' => '通用方案'],
'ModifyType' => ['title' => '在质检方案中是否已修改', 'description' => '在质检方案中是否已修改', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'SortIndex' => ['title' => '质检维度内的排序', 'description' => '质检维度内的排序', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'RuleType' => ['title' => '0:默认;1:用户创建 //4.0逻辑兼容使用', 'description' => '0:默认;1:用户创建 //4.0逻辑兼容使用', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Rid' => ['title' => '规则ID', 'description' => '规则ID', 'type' => 'string', 'example' => '1'],
'Name' => ['title' => '规则名称', 'description' => '规则名称', 'type' => 'string', 'example' => '开头语规则'],
'TaskFlowId' => ['title' => '流程画布ID', 'description' => '流程画布ID', 'type' => 'integer', 'format' => 'int64', 'example' => '111111111'],
'Lambda' => ['title' => '形如a&&b的条件表达式', 'description' => '形如a&&b的条件表达式', 'type' => 'string', 'example' => 'a&&b'],
'ExternalProperty' => ['title' => '外部属性', 'description' => '外部属性', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Type' => ['title' => 'RuleCategory,2舆情监控,3业务类 //4.0 逻辑兼容使用', 'description' => 'RuleCategory,2舆情监控,3业务类 //4.0 逻辑兼容使用', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'RuleCategoryName' => ['title' => '规则类别名称', 'description' => '规则类别名称', 'type' => 'string', 'example' => '正向规则'],
'AutoReview' => ['title' => '审核选项 1 不自动审核 3 自动审核 //4.0 协议兼容使用', 'description' => '审核选项 1 不自动审核 3 自动审核 //4.0 协议兼容使用', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'RuleScoreType' => ['title' => '是否计分 1不计分 3计分 //4.0 协议兼容使用', 'description' => '是否计分 1不计分 3计分 //4.0 协议兼容使用', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'ScoreId' => ['title' => '评分大项ID', 'description' => '评分大项ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'PreqRule' => [
'type' => 'object',
'properties' => [
'Rid' => ['type' => 'string'],
],
],
'ScoreNum' => ['title' => '分数num', 'description' => '分数num', 'type' => 'number', 'format' => 'float', 'example' => '1'],
'BusinessCategoryNameList' => [
'title' => '业务名称列表',
'description' => '业务名称列表',
'type' => 'array',
'items' => ['description' => '所属业务分类列表', 'type' => 'string', 'example' => '全部'],
],
'Dialogues' => [
'title' => '测试文案',
'description' => '测试文案',
'type' => 'array',
'items' => ['description' => '测试对话内容', '$ref' => '#/components/schemas/RuleTestDialogue'],
],
'Triggers' => [
'title' => '关注的条件列表',
'description' => '关注的条件列表',
'type' => 'array',
'items' => ['description' => '算子列表', 'type' => 'string', 'example' => 'a'],
],
],
],
'RulesInfo' => [
'description' => '规则集合信息',
'type' => 'object',
'properties' => [
'Conditions' => [
'title' => '规则条件信息,多个规则的条件都放在一个list中',
'description' => '规则条件信息,多个规则的条件都放在一个list中',
'type' => 'array',
'items' => ['description' => '规则条件信息', '$ref' => '#/components/schemas/ConditionBasicInfo'],
],
'Rules' => [
'title' => '规则基本信息,可能有多个规则',
'description' => '规则基本信息,可能有多个规则',
'type' => 'array',
'items' => ['description' => '规则基本信息', '$ref' => '#/components/schemas/RuleInfo'],
],
'Dialogues' => [
'title' => '测试文案',
'description' => '测试文案',
'type' => 'array',
'items' => ['description' => '测试文案信息', '$ref' => '#/components/schemas/RuleTestDialogue'],
],
'Count' => ['title' => '总条数', 'description' => '总条数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'PageSize' => ['title' => '页数', 'description' => '页数', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'PageNumber' => ['title' => '当前页', 'description' => '当前页', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
'RuleTestDialogue' => [
'description' => '规则测试对话',
'type' => 'object',
'properties' => [
'Id' => ['title' => '对话ID', 'description' => '对话ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'Content' => [
'title' => '对话内容',
'description' => '对话内容',
'type' => 'array',
'items' => [
'description' => '对话',
'type' => 'object',
'properties' => [
'HourMinSec' => ['title' => '时分秒', 'description' => '时分秒', 'type' => 'string', 'example' => '00:00:00'],
'Role' => ['title' => '角色', 'description' => '角色', 'type' => 'string', 'example' => '客户'],
'Identity' => ['title' => '身份标识', 'description' => '身份标识', 'type' => 'string', 'example' => '客户'],
'EmotionValue' => ['title' => '情绪能量值', 'description' => '情绪能量值', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'SpeechRate' => ['title' => '语速', 'description' => '语速', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'Words' => ['title' => '对话', 'description' => '对话', 'type' => 'string', 'example' => '方便'],
'End' => ['title' => '结束时间inLong', 'description' => '结束时间inLong', 'type' => 'integer', 'format' => 'int64', 'example' => '1360'],
'SilenceDuration' => ['title' => '静音时长', 'description' => '静音时长', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'BeginTime' => ['title' => '开始时间InLong', 'description' => '开始时间InLong', 'type' => 'integer', 'format' => 'int64', 'example' => '350'],
'Begin' => ['title' => '开始时间InLong', 'description' => '开始时间InLong', 'type' => 'integer', 'format' => 'int64', 'example' => '360'],
],
],
],
'Name' => ['title' => '对话名称', 'description' => '对话名称', 'type' => 'string', 'example' => 'xx'],
'UserGroup' => ['title' => '用户组', 'description' => '用户组', 'type' => 'string', 'example' => 'xx'],
],
],
'SchemeCheckType' => [
'description' => '方案维度',
'type' => 'object',
'properties' => [
'CheckType' => ['title' => '检测项类型:默认如下', 'description' => '质检维度ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'CheckName' => ['title' => '检测项名称', 'description' => '检测项名称', 'type' => 'string', 'example' => '流程规则'],
'SourceScore' => ['title' => '原始得分', 'description' => '原始得分', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Score' => ['title' => '最终得分', 'description' => '最终得分', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
'Enable' => ['title' => '是否启用', 'description' => '是否启用', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'SchemeId' => ['title' => '质检方案ID', 'description' => '质检方案ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'SchemeScoreInfoList' => [
'title' => '检测项下评分项列表,见SchemeScoreInfo',
'description' => '检测项下评分项列表,见SchemeScoreInfo',
'type' => 'array',
'items' => [
'description' => '方案评分',
'type' => 'object',
'properties' => [
'Rid' => ['title' => '规则ID', 'description' => '规则ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'Name' => ['title' => '规则名称', 'description' => '规则名称', 'type' => 'string', 'example' => 'xx'],
'TaskFlowId' => ['title' => '流程ID', 'description' => '流程ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'TaskFlowName' => ['title' => '流程名称', 'description' => '流程名称', 'type' => 'string', 'example' => 'xx'],
'ScoreType' => ['title' => '1加分 3减分 默认1', 'description' => '1加分 3减分 默认1', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScoreNumType' => ['title' => '0-触发规则后加减分', 'description' => '0-触发规则后加减分', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'ScoreNum' => ['title' => '客服评分:默认0,[0, 100]', 'description' => '客服评分:默认0,[0, 100]', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScoreRuleHitType' => ['title' => '0-命中节点时计分', 'description' => '0-命中节点时计分', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
],
],
],
'TaskFlowScoreInfoList' => [
'title' => '检测项下评分项列表,见TaskFlowScoreInfo',
'description' => '检测项下评分项列表,见TaskFlowScoreInfo',
'type' => 'array',
'items' => [
'description' => '流程评分',
'type' => 'object',
'properties' => [
'TaskFlowId' => ['title' => '流程ID', 'description' => '流程ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'TaskFlowName' => ['title' => '流程名称', 'description' => '流程名称', 'type' => 'string', 'example' => 'xx'],
'TaskFlowType' => ['title' => '\'流程版本:0:树,1:图\'', 'description' => '\'流程版本:0:树,1:图\'', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'SchemeScoreInfoList' => [
'title' => '评分项列表',
'description' => '评分项列表',
'type' => 'array',
'items' => [
'description' => '方案评分',
'type' => 'object',
'properties' => [
'Rid' => ['title' => '规则ID', 'description' => '规则ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'Name' => ['title' => '规则名称', 'description' => '规则名称', 'type' => 'string', 'example' => 'xx'],
'TaskFlowId' => ['title' => '流程ID', 'description' => '流程ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'TaskFlowName' => ['title' => '流程名称', 'description' => '流程名称', 'type' => 'string', 'example' => 'xx'],
'ScoreType' => ['title' => '1加分 3减分 默认1', 'description' => '1加分 3减分 默认1', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScoreNumType' => ['title' => '0-触发规则后加减分', 'description' => '0-触发规则后加减分', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'ScoreNum' => ['title' => '客服评分:默认0,[0, 100]', 'description' => '客服评分:默认0,[0, 100]', 'type' => 'integer', 'format' => 'int32', 'example' => '11'],
'ScoreRuleHitType' => ['title' => '0-命中节点时计分', 'description' => '0-命中节点时计分', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
],
],
],
],
],
],
],
],
'TaskGraphFlow' => [
'description' => '流程',
'type' => 'object',
'properties' => [
'Id' => ['title' => '流程画布id', 'description' => '流程画布id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'Rid' => ['title' => '规则ID', 'description' => '规则ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'RuleName' => ['title' => '规则名称', 'description' => '规则名称', 'type' => 'string', 'example' => '违规'],
'SkipWhenFirstSessionNodeMiss' => ['title' => '首个对话节点未命中则跳过', 'description' => '首个对话节点未命中则跳过', 'type' => 'boolean', 'example' => 'true'],
'FlowRuleScoreType' => ['title' => '流程计分逻辑设置', 'description' => '流程计分逻辑设置', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ShowProperties' => ['title' => '前端展示使用', 'description' => '前端展示使用', 'type' => 'string', 'example' => '{}'],
'Nodes' => [
'title' => '流程所有节点',
'description' => '流程所有节点',
'type' => 'array',
'items' => ['description' => '节点信息。', '$ref' => '#/components/schemas/GraphFlowNode'],
],
],
],
],
],
'apis' => [
'AddBusinessCategory' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => [],
'parameters' => [
[
'name' => 'JsonStr',
'in' => 'query',
'schema' => ['description' => '完整JSON字符串信息,具体内容参见以下详细信息。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '{"name":"适用业务名称"}'],
],
[
'name' => 'BaseMeAgentId',
'in' => 'query',
'schema' => ['title' => '业务空间Id', 'description' => '业务空间Id', 'type' => 'integer', 'format' => 'int64', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '响应码', 'type' => 'string', 'example' => '200'],
'Message' => ['description' => '响应信息', 'type' => 'string', 'example' => 'successful'],
'Data' => ['description' => '业务类型ID', 'type' => 'string', 'example' => '348193421'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '76DB5D8C-5BD9-42A7-B527-5AF3A5F83F12'],
'Success' => ['description' => '请求是否成功', 'type' => 'boolean', 'example' => 'true'],
],
'description' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": \\"348193421\\",\\n \\"RequestId\\": \\"76DB5D8C-5BD9-42A7-B527-5AF3A5F83F12\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\r\\n 200\\r\\n 348193421\\r\\n successful\\r\\n 76DB5D8C-5BD9-42A7-B527-5AF3A5F83F12\\r\\n true\\r\\n","errorExample":""}]',
'title' => '新增业务类型',
'summary' => '新增业务类型。',
'requestParamsDescription' => '**请求参数Json字符串信息**'."\n"
.'| 属性 | 值类型 | 是否必须 | 说明 |'."\n"
.'|:---------|:-------|:---------|:---------|'."\n"
.'| name | String | 是 | 适用业务名称 |'."\n"
.'| serviceType | int | 否 | 大的业务分类 |'."\n"
.'| originalId | int | 否 | 源业务类型ID |',
'responseParamsDescription' => ' ',
'extraInfo' => '### 调用示例'."\n"
."\n"
.'```'."\n"
.'AddBusinessCategoryRequest addBusinessCategoryRequest = new AddBusinessCategoryRequest();'."\n"
.'addBusinessCategoryRequest.setAcceptFormat(FormatType.JSON);'."\n"
.'Map callMap = Maps.newHashMap();'."\n"
.'callMap.put("name","测试123");'."\n"
.'addBusinessCategoryRequest.setJsonStr(JSON.toJSONString(callMap));'."\n"
.'AddBusinessCategoryResponse response = client.getAcsResponse(addBusinessCategoryRequest);'."\n"
.'```',
'changeSet' => [
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AddBusinessCategory'],
],
'product' => ['code' => 'sca', 'title' => '智能对话分析'],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'sca:AddBusinessCategory',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'SmartConversationAnalysis', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'AddRuleCategory' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'JsonStr',
'in' => 'query',
'schema' => ['description' => '一个JSON格式的字符串,具体内容参见以下详细信息。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '{"typeName":"规则类型A"}'],
],
[
'name' => 'BaseMeAgentId',
'in' => 'query',
'schema' => ['title' => '业务空间Id', 'description' => '业务空间Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1232927'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '响应码', 'type' => 'string', 'example' => '200'],
'Message' => ['description' => '响应信息', 'type' => 'string', 'example' => 'successful'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D10B9203-1A6A-49DA-AE56-4D160DD37DBC'],
'Success' => ['description' => '请求是否成功', 'type' => 'boolean', 'example' => 'true'],
'Data' => [
'description' => '返回结果',
'type' => 'object',
'properties' => [
'Select' => ['description' => '是否选择新增的规则类型', 'type' => 'boolean', 'example' => 'false'],
'Type' => ['description' => '规则类型Id', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
],
'description' => '',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"D10B9203-1A6A-49DA-AE56-4D160DD37DBC\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"Select\\": false,\\n \\"Type\\": 1\\n }\\n}","errorExample":""},{"type":"xml","example":"\\r\\n \\r\\n \\r\\n \\r\\n successful\\r\\n D10B9203-1A6A-49DA-AE56-4D160DD37DBC\\r\\n true\\r\\n 200\\r\\n","errorExample":""}]',
'title' => '新增规则类型',
'summary' => '新增规则类型。',
'requestParamsDescription' => '**请求参数Json字符串信息**'."\n"
.'| 属性| 值类型|是否必须|说明|'."\n"
.'|:---------|:-------|:---------|:---------|'."\n"
.'| typeName| String| 是 |规则类型名称 |',
'responseParamsDescription' => ' ',
'extraInfo' => '### 调用示例'."\n"
.'```'."\n"
.' AddRuleCategoryRequest addRuleCategoryRequest = new AddRuleCategoryRequest();'."\n"
.' addRuleCategoryRequest.setAcceptFormat(FormatType.JSON);'."\n"
.' Map map = Maps.newHashMap();'."\n"
.' map.put("typeName", "***");'."\n"
.' addRuleCategoryRequest.setJsonStr(JSON.toJSONString(map));'."\n"
.' AddRuleCategoryResponse response = client.getAcsResponse(addRuleCategoryRequest);'."\n"
.'```',
'changeSet' => [
['createdAt' => '2024-06-21T03:06:47.000Z', 'description' => '响应参数发生变更、错误码发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AddRuleCategory'],
],
'product' => ['code' => 'sca', 'title' => '智能对话分析'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'sca:AddRuleCategory',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'SmartConversationAnalysis', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'AddRuleV4' => [
'summary' => '对应前端功能位置:质检规则配置-新建。专有云URL:ip:port/api/client/UpdateRuleById.json。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'JsonStrForRule',
'in' => 'formData',
'schema' => ['description' => 'JsonStrForlRule具体参考文档《[`规则对象说明`](~~453053~~)》', 'type' => 'string', 'required' => true, 'example' => '无'],
],
[
'name' => 'IsCopy',
'in' => 'formData',
'schema' => ['description' => '是否复制。为true是等效于复制规则。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'BaseMeAgentId',
'in' => 'query',
'schema' => ['title' => '业务空间Id', 'description' => '业务空间Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123456'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'BaseResult',
'description' => 'BaseResult',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '106C6CA0-282D-4AF7-85F0-D2D24***'],
'Success' => ['description' => '请求是否成功,调用方可根据此字段来判断请求是否成功:true表示成功;false/null表示失败。'."\n", 'type' => 'boolean', 'example' => 'true'],
'Code' => ['description' => '结果代码,**200**表示成功,若为别的值则表示失败,调用方可根据此字段判断失败原因。', 'type' => 'string', 'example' => '200'],
'Message' => ['description' => '响应信息', 'type' => 'string', 'example' => 'successful'],
'Messages' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Message' => [
'description' => '出错时表示出错详情,当输出多条信息时使用。',
'type' => 'array',
'items' => ['description' => '出错时表示出错详情,当输出多条信息时使用。', 'type' => 'string', 'example' => '无'],
],
],
'description' => '',
],
'HttpStatusCode' => ['description' => 'HTTP请求返回的响应状态码,200表示请求成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Data' => ['description' => '新建的规则ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '无'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"106C6CA0-282D-4AF7-85F0-D2D24***\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Messages\\": {\\n \\"Message\\": [\\n \\"无\\"\\n ]\\n },\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 0\\n}","type":"json"}]',
'title' => '新增规则(新版质检)',
'requestParamsDescription' => '## 请求入参示例'."\n"
.'```json'."\n"
.'{'."\n"
.' "rules": ['."\n"
.' {'."\n"
.' "name": "siqi-test",'."\n"
.' "comments": "新建测试规则",'."\n"
.' "autoReview": 1,'."\n"
.' "level": 2,'."\n"
.' "type": 1,'."\n"
.' "business": ['."\n"
.' {'."\n"
.' "bid": 0,'."\n"
.' "name": "所有业务"'."\n"
.' }'."\n"
.' ],'."\n"
.' "fullCycle": 1,'."\n"
.' "targetType": 10,'."\n"
.' "scoreNumType": 0,'."\n"
.' "scoreType": 1,'."\n"
.' "scoreNum": "1",'."\n"
.' "lambda": "a",'."\n"
.' "triggers": ['."\n"
.' "a"'."\n"
.' ],'."\n"
.' "ruleScoreType": 3,'."\n"
.' "isHitNumScore": 0'."\n"
.' }'."\n"
.' ],'."\n"
.' "conditions": ['."\n"
.' {'."\n"
.' "cid": "a",'."\n"
.' "lambda": "1",'."\n"
.' "check_range": {},'."\n"
.' "operators": ['."\n"
.' {'."\n"
.' "oid": "1",'."\n"
.' "type": "HIT_ANY_KEYWORDS",'."\n"
.' "param": {'."\n"
.' "contextChatMatch": false,'."\n"
.' "in_sentence": false,'."\n"
.' "keywordMatchSize": 1,'."\n"
.' "keywords": ['."\n"
.' "你好",'."\n"
.' "欢迎"'."\n"
.' ]'."\n"
.' }'."\n"
.' }'."\n"
.' ]'."\n"
.' }'."\n"
.' ]'."\n"
.'}'."\n"
.'```'."\n"
.'## 请求代码示例'."\n"
.'```java'."\n"
.'public class sca {'."\n"
."\n"
.' private static String ak = "YOUR_ACCESS_KEY_ID";'."\n"
.' private static String sk = "YOUR_ACCESS_KEY_SECRET";'."\n"
."\n"
.' private static void addRule() throws Exception {'."\n"
.' String json="{\\n" +'."\n"
.' " \\"rules\\": [\\n" +'."\n"
.' " {\\n" +'."\n"
.' " \\"name\\": \\"siqi-test\\",\\n" +'."\n"
.' " \\"comments\\": \\"新建测试规则\\",\\n" +'."\n"
.' " \\"autoReview\\": 1,\\n" +'."\n"
.' " \\"level\\": 2,\\n" +'."\n"
.' " \\"type\\": 1,\\n" +'."\n"
.' " \\"business\\": [\\n" +'."\n"
.' " {\\n" +'."\n"
.' " \\"bid\\": 0,\\n" +'."\n"
.' " \\"name\\": \\"所有业务\\"\\n" +'."\n"
.' " }\\n" +'."\n"
.' " ],\\n" +'."\n"
.' " \\"fullCycle\\": 1,\\n" +'."\n"
.' " \\"targetType\\": 10,\\n" +'."\n"
.' " \\"scoreNumType\\": 0,\\n" +'."\n"
.' " \\"scoreType\\": 1,\\n" +'."\n"
.' " \\"scoreNum\\": \\"1\\",\\n" +'."\n"
.' " \\"lambda\\": \\"a\\",\\n" +'."\n"
.' " \\"triggers\\": [\\n" +'."\n"
.' " \\"a\\"\\n" +'."\n"
.' " ],\\n" +'."\n"
.' " \\"ruleScoreType\\": 3,\\n" +'."\n"
.' " \\"isHitNumScore\\": 0\\n" +'."\n"
.' " }\\n" +'."\n"
.' " ],\\n" +'."\n"
.' " \\"conditions\\": [\\n" +'."\n"
.' " {\\n" +'."\n"
.' " \\"cid\\": \\"a\\",\\n" +'."\n"
.' " \\"lambda\\": \\"1\\",\\n" +'."\n"
.' " \\"check_range\\": {},\\n" +'."\n"
.' " \\"operators\\": [\\n" +'."\n"
.' " {\\n" +'."\n"
.' " \\"oid\\": \\"1\\",\\n" +'."\n"
.' " \\"type\\": \\"HIT_ANY_KEYWORDS\\",\\n" +'."\n"
.' " \\"param\\": {\\n" +'."\n"
.' " \\"contextChatMatch\\": false,\\n" +'."\n"
.' " \\"in_sentence\\": false,\\n" +'."\n"
.' " \\"keywordMatchSize\\": 1,\\n" +'."\n"
.' " \\"keywords\\": [\\n" +'."\n"
.' " \\"你好\\",\\n" +'."\n"
.' " \\"欢迎\\"\\n" +'."\n"
.' " ]\\n" +'."\n"
.' " }\\n" +'."\n"
.' " }\\n" +'."\n"
.' " ]\\n" +'."\n"
.' " }\\n" +'."\n"
.' " ]\\n" +'."\n"
.' "}";'."\n"
."\n\n"
.' Config config = new Config();'."\n"
.' config.setAccessKeyId(ak).setAccessKeySecret(sk)'."\n"
.' .setEndpoint("qualitycheck.cn-hangzhou.aliyuncs.com")'."\n"
.' .setRegionId("cn-hangzhou").setProtocol("HTTPS");'."\n"
."\n"
.' Client client = new Client(config);'."\n"
.' AddRuleV4Request result = new AddRuleV4Request();'."\n"
."\n"
.' result.setJsonStrForRule(json);'."\n"
."\n"
.' AddRuleV4Response response = client.addRuleV4(result);'."\n"
.' System.out.println(JSONObject.toJSONString(response));'."\n"
.' }'."\n"
."\n"
.' public static void main(String[] args) throws Exception {'."\n"
.' addRule();'."\n"
.' }'."\n"
.'}'."\n"
."\n"
.'```',
'changeSet' => [
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AddRuleV4'],
],
'product' => ['code' => 'sca', 'title' => '智能对话分析'],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'sca:AddRuleV4',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'SmartConversationAnalysis', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'AnalyzeLabel' => [
'path' => '',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREsca27EUYZ'],
],
'parameters' => [
[
'name' => 'JsonStr',
'in' => 'query',
'schema' => ['description' => '完整JSON字符串信息,具体内容参见以下详细信息。', 'type' => 'string', 'required' => false, 'example' => '“”'],
],
[
'name' => 'BaseMeAgentId',
'in' => 'query',
'schema' => ['description' => '业务空间Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123456'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '106C6CA0-282D-4AF7-85F0-D2D24***'],
'Data' => ['description' => '分析任务ID', 'type' => 'string', 'example' => '20260629-DCC646E7-BE7F-114E-9F32-0C928292FC7F'],
'Code' => ['description' => '结果代码,**200**表示成功,若为别的值则表示失败,调用方可根据此字段判断失败原因。', 'type' => 'string', 'example' => '200'],
'Success' => ['description' => '是否调用成功:true:调用成功。 false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'Message' => ['description' => '如果有错误,会输出错误信息', 'type' => 'string', 'example' => 'successful'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '标签分析',
'summary' => '标签分析',
'requestParamsDescription' => '# 1.顶层字段'."\n"
.'| 字段 | 类型 | 必填 | 说明 |'."\n"
.'|------|------|------|------|'."\n"
.'| agentId | Long | 是 | Agent ID |'."\n"
.'| ticketsList | Array | 是 | 待分析对话列表,当前只支持 1 条 |'."\n"
.'| tagIds | Array | 否 | 运行时已命中的父标签 ID 列表,最多 50 个;当前只取第一个 ID 生效 |'."\n"
.'| callbackUrl | String | 否 | 任务完成后的回调地址 |'."\n"
.'| modelType | String | 否 | 模型类型;不传时默认 TYXM_TURBO |'."\n"
.'# 2.ticketsList[0]字段'."\n"
.'| 字段 | 类型 | 必填 | 说明 |'."\n"
.'|------|------|------|------|'."\n"
.'| tid | String | 否 | 对话唯一标识 |'."\n"
.'| dialogueList | Array | 是 | 对话内容 |'."\n"
.'# 3.dialogueList字段'."\n"
.'| 字段 | 类型 | 必填 | 说明 |'."\n"
.'|------|------|------|------|'."\n"
.'| role | String | 是 | 角色名,如“客户”“客服” |'."\n"
.'| words | String | 是 | 话术内容 |'."\n"
.'| identity | String | 否 | 身份补充信息 |'."\n"
.'| type | String | 否 | 句子类型,如 TEXT |'."\n"
.'| begin | Integer | 否 | 开始偏移,毫秒 |'."\n"
.'| end | Integer | 否 | 结束偏移,毫秒 |'."\n"
.'| beginTime | String | 否 | 开始时间 |',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
'product' => ['code' => 'sca', 'title' => '智能对话分析'],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"106C6CA0-282D-4AF7-85F0-D2D24***\\",\\n \\"Data\\": \\"20260629-DCC646E7-BE7F-114E-9F32-0C928292FC7F\\",\\n \\"Code\\": \\"200\\",\\n \\"Success\\": true,\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]',
],
'ApplyWsToken' => [
'summary' => '申领实时语音所需token。',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'abilityTreeCode' => '257754',
'abilityTreeNodes' => ['FEATUREscaKR8LQC'],
],
'parameters' => [
[
'name' => 'BaseMeAgentId',
'in' => 'query',
'schema' => ['description' => '业务空间Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123456'],
],
[
'name' => 'JsonStr',
'in' => 'query',
'schema' => ['description' => '完整JSON字符串信息,具体内容参见以下详细信息。', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
.' "business": "test",'."\n"
.' "callType": 1,'."\n"
.' "callee": "13111111111",'."\n"
.' "caller": "13800000000",'."\n"
.' "skillGroupId": 1,'."\n"
.' "skillGroupName": "test",'."\n"
.' "taskConfigId": 399,'."\n"
.' "tid": "2025012412cb129e-1579-46b5-9326-1b2ececf8f30"'."\n"
.'}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '6987D326-83D9-4A42-B9A5-0B27F9B40539'],
'Code' => ['description' => '响应码', 'type' => 'string', 'example' => '200'],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Data' => [
'description' => '返回结果',
'type' => 'object',
'properties' => [
'SessionId' => ['description' => '会话ID。', 'type' => 'string', 'example' => '42e59bcd-7206-44c5-ad34-525d364687c4'],
'Token' => ['description' => '用户访问token', 'type' => 'string', 'example' => '5607b21d1728700640'],
'WsEndpoint' => ['description' => 'websocket连接域名', 'type' => 'string', 'example' => 'wss://ws-gateway-real-voice.aliyuncs.com'],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6987D326-83D9-4A42-B9A5-0B27F9B40539\\",\\n \\"Code\\": \\"200\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"SessionId\\": \\"42e59bcd-7206-44c5-ad34-525d364687c4\\",\\n \\"Token\\": \\"5607b21d1728700640\\",\\n \\"WsEndpoint\\": \\"wss://ws-gateway-real-voice.aliyuncs.com\\"\\n }\\n}","type":"json"}]',
'title' => '实时语音质检申领token',
'requestParamsDescription' => '**jsonStr属性说明:**'."\n"
."\n"
.'| 属性 | 值类型 | 是否必须 | 说明 |'."\n"
.'| :--- | :--- | :--- | :--- |'."\n"
.'| tid | String | 是 | 当前对话唯一标识(务必确保唯一性),可以理解为自有业务系统中的通话ID,后台会根据此标识,合并为一个完整的对话,长度至少8位,并且前8位是通话的发生时间(年月日),例如录音发生时间是2020年7月5日,那么前缀即为20200705,建议在前缀后再拼接上自有业务系统中的通话ID,例如:20200705-234890134。前缀时间必须在API调用时间的前一个月、后一小时范围内。'."\n"
.'| business | String | 否 | 业务线名称,属于自定义数据,用于分类统计。 |'."\n"
.'| callType | Integer | 否 | 呼叫类型,可取值:1(呼出)(默认);3(呼入);4(其他) |'."\n"
.'| callee | String | 否 | 被叫号码,呼出时指的是客户号码,呼入时指的是客服号码。 |'."\n"
.'| caller | String | 否 | 主叫号码,呼出时指的是客服号码,呼入时指的是客户号码。 |'."\n"
.'| skillGroupId | Long | 否 | 技能组ID。 |'."\n"
.'| skillGroupName | String | 否 | 技能组名称。 |'."\n"
.'| schemeTaskConfigId | Integer | 否 | 任务ID |',
'changeSet' => [
['createdAt' => '2025-02-06T02:59:49.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '10', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ApplyWsToken'],
],
'product' => ['code' => 'sca', 'title' => '智能对话分析'],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'sca:ApplyWsToken',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'SmartConversationAnalysis', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'AssignReviewer' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => [],
'parameters' => [
[
'name' => 'JsonStr',
'in' => 'query',
'schema' => ['description' => '完整JSON字符串信息,具体内容参见以下详细信息。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '{"assignmentList":[{"taskId":"1C21CF1E-2917-4236-A046-20E37B293B69","fileId":"7981b466fd6a4c70a7065da159739a5b"},{"taskId":"0111DDBC-5F10-47E0-B7D4-7175F47D626F","fileId":"1814eeae3cff41e989e31ab547f07561"}],"assignments":[{"reviewer":"255746168704895558"},{"reviewer":"268370362815185444"}]}'],
],
[
'name' => 'BaseMeAgentId',
'in' => 'query',
'schema' => ['title' => '业务空间Id', 'description' => '业务空间Id', 'type' => 'integer', 'format' => 'int64', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '结果代码,**200**表示成功,若为别的值则表示失败,调用方可根据此字段判断失败原因。', 'type' => 'string', 'example' => '200'],
'Message' => ['description' => '出错时表示出错详情,成功时为successful。'."\n", 'type' => 'string', 'example' => 'successful'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '82C91484-B2D5-4D2A-A21F-A6D73F4D55C6'],
'Success' => ['description' => '请求是否成功,调用方可根据此字段来判断请求是否成功:true表示成功;false/null表示失败'."\n", 'type' => 'boolean', 'example' => 'true'],
],
'description' => '',
],
],
],
'errorCodes' => [],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"82C91484-B2D5-4D2A-A21F-A6D73F4D55C6\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n D1436A84-8A33-4416-ACC9-94D0247C6DA8\\n true\\n successful\\n","errorExample":""}]',
'title' => '分配质检员',
'summary' => '进行手动分配质检员。',
'description' => '手动分配质检完成的文件给质检员处理,支持单个文件分配和批量分配:'."\n"
."\n"
.'单个文件分配:将某个文件分给指定质检员。'."\n"
."\n"
.'批量分配:将筛选出来的多个文件批量分配给某些质检员,可以指定每个质检员分配的文件个数,也可以指定多个质检员平均分配。',
'requestParamsDescription' => '### jsonStr参数说明'."\n"
.'| 属性 | 值类型 | 是否必须 | 说明 |'."\n"
.'|:---------|:-------|:---------|:---------|'."\n"
.'| assignmentList | List| 否 | 待分配的文件列表,按所选文件逐个分配,与searchParam不能同时为空;若同时提供,则取assignmentList,详见下方**请求参数assignmentList结构信息** |'."\n"
.'| searchParam | Object | 否 | 筛选条件,与[GetResult](https://help.aliyun.com/document_detail/142334.html)的入参一致,用于筛选出一批文件进行批量分配 |'."\n"
.'| assignments | List| 否 | 质检员信息,批量分配时用来指定质检员,详见下方**请求参数Assignments结构信息** |'."\n"
."\n"
.'#### 请求参数assignmentList结构信息'."\n"
.'| 属性 | 值类型 | 是否必须 | 说明 |'."\n"
.'|:---------|:-------|:---------|:---------|'."\n"
.'| taskId | String | 是 | 文件的任务ID |'."\n"
.'| fileId | String | 是| 文件ID |'."\n"
.'| reviewer | String | 否 | 质检员ID,单个文件分配时使用 |'."\n"
."\n"
.'#### 请求参数Assignments结构信息'."\n"
.'| 属性 | 值类型 | 是否必须 | 说明 |'."\n"
.'|:---------|:-------|:---------|:---------|'."\n"
.'| reviewer | String | 是| 质检员ID |'."\n"
.'| count | String | 否 | 分配文件的数量,如果为空,则进行平均分配 |'."\n"
."\n"
.'### 入参示例'."\n"
.'#### 1、多个文件平均分配给多个质检员:'."\n"
.'```'."\n"
.'{'."\n"
.' "assignmentList":['."\n"
.' {'."\n"
.' "taskId":"1C21CF1E-2917-4236-A046-20E37B293B69",'."\n"
.' "fileId":"7981b466fd6a4c70a7065da159739a5b"'."\n"
.' },'."\n"
.' {'."\n"
.' "taskId":"0111DDBC-5F10-47E0-B7D4-7175F47D626F",'."\n"
.' "fileId":"1814eeae3cff41e989e31ab547f07561"'."\n"
.' }'."\n"
.' ],'."\n"
.' "assignments":['."\n"
.' {'."\n"
.' "reviewer":"255746168704895558"'."\n"
.' },'."\n"
.' {'."\n"
.' "reviewer":"268370362815185444"'."\n"
.' }'."\n"
.' ]'."\n"
.'}'."\n"
.'```'."\n"
.'#### 2、分配的文件个数:'."\n"
."\n"
.'多个文件分配给多个质检员,指定每个质检员分配的文件个数'."\n"
."\n"
.'```'."\n"
.'{'."\n"
.' "assignmentList":['."\n"
.' {'."\n"
.' "taskId":"C97132A8-F0C5-4FA3-83C3-8C145CECB8C1",'."\n"
.' "fileId":"fae2f045162d459daa35f8ec5570c68e"'."\n"
.' },'."\n"
.' {'."\n"
.' "taskId":"1C21CF1E-2917-4236-A046-20E37B293B69",'."\n"
.' "fileId":"7981b466fd6a4c70a7065da159739a5b"'."\n"
.' },'."\n"
.' {'."\n"
.' "taskId":"0111DDBC-5F10-47E0-B7D4-7175F47D626F",'."\n"
.' "fileId":"1814eeae3cff41e989e31ab547f07561"'."\n"
.' }'."\n"
.' ],'."\n"
.' "assignments":['."\n"
.' {'."\n"
.' "reviewer":"255746168704895558",'."\n"
.' "count":1'."\n"
.' },'."\n"
.' {'."\n"
.' "reviewer":"268370362815185444",'."\n"
.' "count":2'."\n"
.' }'."\n"
.' ]'."\n"
.'}'."\n"
.'```'."\n"
.'#### 3、通过筛选条件进行批量分配:'."\n"
.'```'."\n"
.'{'."\n"
.' "searchParam":{'."\n"
.' "dataType":1,'."\n"
.' "sourceType":0,'."\n"
.' "startTime":"2020-03-07 00:00:00",'."\n"
.' "endTime":"2020-03-13 23:59:59"'."\n"
.' },'."\n"
.' "assignments":['."\n"
.' {'."\n"
.' "reviewer":"255746168704895558"'."\n"
.' },'."\n"
.' {'."\n"
.' "reviewer":"268370362815185444"'."\n"
.' }'."\n"
.' ]'."\n"
.'}'."\n"
.'```'."\n"
.'#### 4、分配单个文件:'."\n"
.'```'."\n"
.'{'."\n"
.' "assignmentList":['."\n"
.' {'."\n"
.' "taskId":"C97132A8-F0C5-4FA3-83C3-8C145CECB8C1",'."\n"
.' "fileId":"fae2f045162d459daa35f8ec5570c68e",'."\n"
.' "reviewer":"255746168704895558"'."\n"
.' }'."\n"
.' ]'."\n"
.'}'."\n"
.'```',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AssignReviewer'],
],
'product' => ['code' => 'sca', 'title' => '智能对话分析'],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'sca:AssignReviewer',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'SmartConversationAnalysis', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'AssignReviewerBySessionGroup' => [
'summary' => '对应前端功能位置:质检方案管理-任务结果-会话组-批量分配。专有云URL:ip:port/api/job/AssignReviewerBySessionGroup.json。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => true,
'systemTags' => [
'operationType' => 'update',
'abilityTreeCode' => '153845',
'abilityTreeNodes' => ['FEATUREscaAJDYMI'],
],
'parameters' => [
[
'name' => 'jsonStr',
'in' => 'query',
'schema' => ['description' => '详细信息见请求参数补充说明。', 'type' => 'string', 'required' => false, 'example' => '{"sessionGroupParam":{"isSchemeData":1,"callStartTime":"2022-09-17 00:00:00","callEndTime":"2022-09-23 23:59:59","schemeTaskConfigId":24},"assignments":[{"reviewer":63,"count":4}],"isSchemeData":1}'],
],
[
'name' => 'BaseMeAgentId',
'in' => 'query',
'schema' => ['title' => '业务空间Id', 'description' => '业务空间Id', 'type' => 'integer', 'format' => 'int64', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'BaseResult',
'description' => 'BaseResult',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'F190ADE9-619A-447D-84E3-7E241A5C428E'],
'Success' => ['description' => '请求是否成功,调用方可根据此字段来判断请求是否成功:true表示成功;false/null表示失败。'."\n"
."\n", 'type' => 'boolean', 'example' => 'true'],
'Code' => ['description' => '结果代码,200表示成功,若为别的值则表示失败,调用方可根据此字段判断失败原因。', 'type' => 'string', 'example' => '200'],
'Message' => ['description' => '出错时表示出错详情,成功时为successful。'."\n"
."\n", 'type' => 'string', 'example' => 'successful'],
'Messages' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Message' => [
'description' => '出错时表示出错详情,当输出多条信息时使用。',
'type' => 'array',
'items' => ['description' => '出错时表示出错详情,当输出多条信息时使用。', 'type' => 'string', 'example' => '无'],
],
],
'description' => '',
],
'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
],
],
],
],
'staticInfo' => ['noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F190ADE9-619A-447D-84E3-7E241A5C428E\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Messages\\": {\\n \\"Message\\": [\\n \\"无\\"\\n ]\\n },\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]',
'title' => '会话组分配',
'requestParamsDescription' => '### JsonStr说明'."\n"
.'| 属性 | 值类型 | 是否必须 | 描述 |'."\n"
.'| --- | --- | --- | --- |'."\n"
.'| sessionGroupParam | SessionGroupParam | 是 | 会话组检索参数,参考ListSessionGroup |'."\n"
.'| assignments | List | 是 | 分配参数 |'."\n"
.'| - assignments.reviewer | Long | 是 | 分配的质检员ID | |'."\n"
.'| - assignments.count | Integer | 是 | 分配数量 |'."\n"
.'| - assignments.percentage | Integer | 是 | 分配比例 |',
'changeSet' => [
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'AssignReviewerBySessionGroup'],
],
'product' => ['code' => 'sca', 'title' => '智能对话分析'],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'sca:AssignReviewerBySessionGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'SmartConversationAnalysis', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'BatchSubmitReviewInfo' => [
'summary' => '对应前端功能位置:任务管理-任务结果-批量复核'."\n"
.'对应私有云URL:ip:port/api/qcsBatchSubmitReviewInfo.json'."\n"
."\n"
.'对筛选范围内的所有数据进行批量复核操作。'."\n"
.'注意!此操作涉及大量更新操作,可能生效有一定延迟。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'jsonStr',
'in' => 'query',
'schema' => ['description' => '入参JSON,具体参考请求参数补充说明。', 'type' => 'string', 'required' => false, 'example' => '{"isSchemeData":1,"schemeTaskConfigId":334,"sourceDataType":2,"startTime":"2022-08-25 00:00:00","endTime":"2022-09-23 23:59:59","sessionList":[{"taskId":"20220831-F8D7F4DF-0A16-1A1C-BA63-28F203922692","fileId":"20220831-164343"},{"taskId":"20220831-F2A50A72-82C4-1E3F-A1FD-52A662283D25","fileId":"20220831-164343"}]}'],
],
[
'name' => 'BaseMeAgentId',
'in' => 'query',
'schema' => ['title' => '业务空间Id', 'description' => '业务空间Id', 'type' => 'integer', 'format' => 'int64', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'BaseResult',
'description' => 'BaseResult',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'F190ADE9-619A-447D-84E3-7E241A5C428E'],
'Success' => ['description' => '请求是否成功,调用方可根据此字段来判断请求是否成功:true表示成功;false/null表示失败。', 'type' => 'boolean', 'example' => 'true'],
'Code' => ['description' => '结果代码,**200**表示成功,若为别的值则表示失败,调用方可根据此字段判断失败原因。', 'type' => 'string', 'example' => '200'],
'Message' => ['description' => '出错时表示出错详情,成功时为successful。'."\n", 'type' => 'string', 'example' => 'successful'],
'Messages' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'Message' => [
'description' => '出错时表示出错详情,当输出多条信息时使用。',
'type' => 'array',
'items' => ['description' => '出错时表示出错详情,当输出多条信息时使用。', 'type' => 'string', 'example' => '无'],
],
],
'description' => '',
],
'HttpStatusCode' => ['description' => 'HTTP状态码。'."\n"
."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F190ADE9-619A-447D-84E3-7E241A5C428E\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Messages\\": {\\n \\"Message\\": [\\n \\"无\\"\\n ]\\n },\\n \\"HttpStatusCode\\": 200\\n}","type":"json"}]',
'title' => '批量复核',
'requestParamsDescription' => '### JsonStr说明'."\n"
.'导出全部是参数同GetResult接口。'."\n"
.'
导出所选时见下,'."\n"
.'| 属性 | 值类型 | 是否必须 | 描述 |'."\n"
.'| --- | --- | --- | --- |'."\n"
.'| sessionList | List | 是 | 所选会话质检任务列表 |'."\n"
.'|-- taskId | String | 是 | 所选会话质检任务的taskId。 |'."\n"
.'|-- fileId | String | 是 | 所选会话质检任务的tid,vic,fileId。三者等效。 |',
'changeSet' => [
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
['createdAt' => '2023-08-01T09:31:55.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'BatchSubmitReviewInfo'],
],
'product' => ['code' => 'sca', 'title' => '智能对话分析'],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'sca:BatchSubmitReviewInfo',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'SmartConversationAnalysis', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'CreateAgent' => [
'summary' => '新建Agent',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREscaFRLL5D'],
],
'parameters' => [
[
'name' => 'BaseMeAgentId',
'in' => 'formData',
'schema' => ['description' => '业务空间Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123456'],
],
[
'name' => 'JsonStr',
'in' => 'formData',
'schema' => ['description' => '完整**JSON字符串**信息,具体内容参见以下详细信息。', 'type' => 'string', 'required' => false, 'example' => '""'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '106C6CA0-282D-4AF7-85F0-D2D24***'],
'Code' => ['description' => '结果代码,**200**表示成功,若为别的值则表示失败,调用方可根据此字段判断失败原因。', 'type' => 'string', 'example' => '200'],
'Message' => ['description' => '如果有错误,会输出错误信息', 'type' => 'string', 'example' => 'successful'],
'Success' => ['description' => '是否调用成功:true:调用成功。 false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'Data' => ['description' => '该任务的AgentId', 'type' => 'integer', 'format' => 'int64', 'example' => '12'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '新建Agent',
'requestParamsDescription' => '---'."\n"
."\n"
.'# 接口入参说明'."\n"
."\n"
.'## 1. 概述'."\n"
."\n"
.' Agent 管理请求的入参对象,包含 Agent 的基本属性配置和指令类型参数两大部分。'."\n"
."\n"
.'---'."\n"
."\n"
.'## 2. 顶层字段'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `agentName` | `String` | 是 | Agent 名称 |'."\n"
.'| `agentDescription` | `String` | 否 | Agent 描述信息 |'."\n"
.'| `modelType` | `String` | 是 | 大模型类型,取值参见 `LLMCodeEnum` 枚举 |'."\n"
.'| `inputType` | `String` | 是 | 分析对象类型,可选值:`text`(文本)、`voice`(语音)、`image`(图片) |'."\n"
.'| `instructionType` | `String` | 是 | 指令类型 code,取值参见 `AgentInstructionTypeEnum` 枚举(见下表) |'."\n"
.'| `instructionTypeParam` | `InstructionTypeParam` | 是 | 指令类型的详细配置参数,根据 `instructionType` 的不同传入对应的子对象 |'."\n"
."\n"
.'### instructionType 枚举值'."\n"
."\n"
.'| code | 描述 | 对应 Param |'."\n"
.'|------|------|-----------|'."\n"
.'| `serviceInspection` | 服务质检 | `serviceInspectionParam` |'."\n"
.'| `field` | 关键属性抽取 | `fieldsParam` |'."\n"
.'| `tagCategory` | 标签分类 | `tagCategoryParam` |'."\n"
.'| `multiLevelTag` | 多级标签识别 | `tagTreeLevelParam` |'."\n"
.'| `customPrompt` | 自定义指令 | `customPromptParam` |'."\n"
."\n"
.'---'."\n"
."\n"
.'## 3. InstructionTypeParam(指令类型参数)'."\n"
."\n"
.'`instructionTypeParam` 是各种指令类型的配置容器,根据 `instructionType` 的值,**仅需传入对应的子对象**,其余子对象可为 null。'."\n"
."\n"
.'| 字段名 | 类型 | 说明 |'."\n"
.'|--------|------|------|'."\n"
.'| `fieldsParam` | `FieldsParam` | 关键属性抽取配置,当 `instructionType=field` 时传入 |'."\n"
.'| `serviceInspectionParam` | `ServiceInspectionParam` | 服务质检配置,当 `instructionType=serviceInspection` 时传入 |'."\n"
.'| `tagCategoryParam` | `TagCategoryParam` | 标签分类配置,当 `instructionType=tagCategory` 时传入 |'."\n"
.'| `tagTreeLevelParam` | `TagTreeLevelParam` | 多级标签分析配置,当 `instructionType=multiLevelTag` 时传入 |'."\n"
.'| `customPromptParam` | `CustomPromptParam` | 自定义指令配置,当 `instructionType=customPrompt` 时传入 |'."\n"
."\n"
.'---'."\n"
."\n"
.'### 3.1 FieldsParam(关键属性抽取)'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `nameDescPairList` | `List` | 是 | 需要抽取的关键属性维度列表 |'."\n"
."\n"
.'**NameDescPair 结构:**'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `name` | `String` | 是 | 属性名称 |'."\n"
.'| `desc` | `String` | 是 | 属性描述 |'."\n"
.'| `value` | `String` | 是| 属性值 |'."\n"
."\n"
.'---'."\n"
."\n"
.'### 3.2 ServiceInspectionParam(服务质检)'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `sceneName` | `String` | 是 | 质检场景名称 |'."\n"
.'| `sceneDescription` | `String` | 是 | 质检场景描述 |'."\n"
.'| `dimensions` | `List` | 是 | 质检维度列表,定义具体的检查维度及其条件 |'."\n"
."\n"
.'**Dimension 结构:**'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `dimension` | `String` | 是 | 维度名称(JSON 反序列化时也接受 `title` 作为别名) |'."\n"
.'| `desc` | `String` | 是 | 维度描述(JSON 反序列化时也接受 `content` 作为别名) |'."\n"
."\n"
.'---'."\n"
."\n"
.'### 3.3 TagCategoryParam(标签分类)'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `nameDescPairList` | `List` | 是 | 标签分类维度列表,每个维度可包含多个候选标签值 |'."\n"
."\n"
.'**NameDescValueListPair 结构:**'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `name` | `String` | 是 | 维度/分类名称 |'."\n"
.'| `desc` | `String` | 是 | 维度描述 |'."\n"
.'| `valueList` | `List` | 是 | 该维度下的候选标签值列表 |'."\n"
."\n"
.'---'."\n"
."\n"
.'### 3.4 TagTreeLevelParam(多级标签识别)'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `tagIds` | `List` | 是 | 运行时传入的标签 ID 列表。取第一个 ID 作为已命中的起始父标签,从其子节点开始继续匹配 |'."\n"
.'| `tagTreeLevels` | `List` | 是 | 每一级的 prompt 配置列表,按层级顺序排列 |'."\n"
."\n"
.'**TagTreeLevelInfoParam 结构:**'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `tagTreeIds` | `List` | 是 | 当前层候选标签 ID 列表。包含 `-1` 表示全选(即匹配该层所有标签) |'."\n"
.'| `prompt` | `String` | 是 | 该层级的分析 prompt,与标签数据拼接后发送给大模型进行分析 |'."\n"
."\n"
.'---'."\n"
."\n"
.'### 3.5 CustomPromptParam(自定义指令)'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `customPrompt` | `String` | 是 | 用户自定义的 prompt 指令内容 |'."\n"
.'| `nameDescPairList` | `List` | 否 | 自定义字段列表,用于在 prompt 中引用的额外变量 |'."\n"
."\n"
.'**NameDescPair 结构同 3.1。**'."\n"
."\n"
.'---'."\n"
."\n"
.'## 4. 请求示例'."\n"
."\n"
.'```json'."\n"
.'{'."\n"
.' "id": 123,'."\n"
.' "userGroup": "default",'."\n"
.' "aliUid": 1000000001,'."\n"
.' "agentName": "客服质检Agent",'."\n"
.' "agentDescription": "用于客服对话质量的自动检测",'."\n"
.' "modelType": "qwen-max",'."\n"
.' "inputType": "text",'."\n"
.' "instructionType": "serviceInspection",'."\n"
.' "instructionTypeParam": {'."\n"
.' "serviceInspectionParam": {'."\n"
.' "sceneName": "售后客服场景",'."\n"
.' "sceneDescription": "检查售后客服对话的服务质量",'."\n"
.' "dimensions": ['."\n"
.' {'."\n"
.' "dimension": "服务态度",'."\n"
.' "desc": "检查客服是否使用礼貌用语",'."\n"
.' "includeCondition": "包含问候语和感谢语",'."\n"
.' "excludeCondition": "无明显不当用语则不排除"'."\n"
.' }'."\n"
.' ]'."\n"
.' }'."\n"
.' }'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
'product' => ['code' => 'sca', 'title' => '智能对话分析'],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"106C6CA0-282D-4AF7-85F0-D2D24***\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Success\\": true,\\n \\"Data\\": 12\\n}","type":"json"}]',
],
'CreateAgentTask' => [
'summary' => '创建Agent离线任务进行对话分析。应用调用支持 HTTP 调用来完成客户的响应。',
'path' => '',
'methods' => ['post', 'get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREscaFRLL5D'],
],
'parameters' => [
[
'name' => 'BaseMeAgentId',
'in' => 'formData',
'schema' => ['description' => '业务空间Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '12345'],
],
[
'name' => 'JsonStr',
'in' => 'formData',
'schema' => ['description' => '完整**JSON字符串**信息,具体内容参见以下详细信息。', 'type' => 'string', 'required' => false, 'example' => '{\\"\\":\\"\\"}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '106C6CA0-282D-4AF7-85F0-D2D24F4CE647'],
'Code' => ['description' => '结果代码,**200**表示成功,若为别的值则表示失败,调用方可根据此字段判断失败原因。', 'type' => 'string', 'example' => '200'],
'Message' => ['description' => '出错时表示出错详情,成功时为**successful**。', 'type' => 'string', 'example' => 'successful'],
'Success' => ['description' => '请求是否成功,调用方可根据此字段来判断请求是否成功:true表示成功;false/null表示失败。'."\n", 'type' => 'boolean', 'example' => 'true'],
'Data' => [
'description' => '返回结果',
'type' => 'object',
'properties' => [
'TaskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => '7C1DEF5F-2C18-4D36-99C6-8***'],
'Vid' => ['description' => '会话ID。', 'type' => 'string', 'example' => '6fa76916-3ce6-45d8-ac64-01b7f31***'],
],
],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '创建Agnet任务',
'requestParamsDescription' => '## 1. 概述'."\n"
."\n"
.'**使用场景:** 调用 `createAgentTask` 接口时,将本类各字段序列化为 JSON 传入。服务端根据 `inputType` 路由到不同的处理链路(文本/音频),根据 `instructionType` 路由到不同的指令处理器(关键属性抽取/服务质检/标签分类等)。'."\n"
.'---'."\n"
."\n"
.'## 2. 顶层字段说明'."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `vid` | `String` | 否 | 会话ID,若未传入则使用当前时间戳自动生成 |'."\n"
.'| `modelType` | `String` | 是 | 大模型类型, |'."\n"
.'| `agentId` | `Long` | 是 | Agent 配置 ID |'."\n"
.'| `inputType` | `String` | 是 | 分析对象类型: audio-语音,text-文本|'."\n"
.'| `instructionType` | `String` | 是 | 指令类型: serviceInspection-服务质检,field-关键属性抽取,tagCategory-标签分类,customPrompt-自定义指令 |'."\n"
.'| `instructionTypeParam` | `InstructionTypeParam` | 是 | 指令类型对应的参数,不同 `instructionType` 需要不同的子参数(详见 §4.1) |'."\n"
.'| `taskParam` | `TaskParam` | 是 | 任务数据参数,包含文本对话或音频文件信息(详见 §3.1) |'."\n"
.'## 3. 嵌套类详细说明'."\n"
."\n"
.'### 3.1 TaskParam — 任务数据参数'."\n"
."\n"
.'`AgentTaskParam.TaskParam` 承载本次任务的输入数据,根据 `inputType` 的不同,使用不同的子参数。'."\n"
."\n"
.'| 字段名 | 类型 | 说明 |'."\n"
.'|--------|------|------|'."\n"
.'| `textParam` | `TextParam` | 文本参数,当 `inputType = "text"` 时使用 |'."\n"
.'| `audioParam` | `AudioParam` | 音频参数,当 `inputType = "audio"` 时使用 |'."\n"
.'| `callbackUrl` | `String` | 任务完成后的回调通知地址(可选) |'."\n"
."\n"
.'**使用规则:**'."\n"
.'- `inputType = "text"` 时,必须提供 `textParam`'."\n"
.'- `inputType = "audio"` 时,必须提供 `audioParam`'."\n"
.'- `textParam` 与 `audioParam` 互斥,同一任务只需提供其中一个'."\n"
."\n"
.'### 3.2 TextParam — 文本参数'."\n"
."\n"
.'`AgentTaskParam.TextParam` 封装文本类型的输入数据。'."\n"
."\n"
.'| 字段名 | 类型 | 说明 |'."\n"
.'|--------|------|------|'."\n"
.'| `dialogue` | `List` | 对话列表,每条评论为一个 `Dialogue` 对象 |'."\n"
."\n"
.'**Dialogue 对象结构:**'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `role` | `String` | 是 | 说话角色,如 `"客户"` / `"客服"` |'."\n"
.'| `words` | `String` | 是 | 对话文本内容 |'."\n"
.'| `identity` | `String` | 否 | 说话人身份标识(如客服工号) |'."\n"
.'| `begin` | `Long` | 否 | 本句开始时间相对偏移量(毫秒) |'."\n"
.'| `end` | `Long` | 否 | 本句结束时间相对偏移量(毫秒) |'."\n"
.'| `beginTime` | `Date` | 否 | 本句开始绝对时间(`yyyy-MM-dd HH:mm:ss`) |'."\n"
.'| `hourMinSec` | `String` | 否 | 时分秒格式(`HH:mm:ss`),电话场景必填 |'."\n"
.'| `emotionValue` | `Integer` | 否 | 情绪能量值(1-10) |'."\n"
.'| `speechRate` | `Integer` | 否 | 语速值(每分钟字数) |'."\n"
.'| `silenceDuration` | `Integer` | 否 | 静音时长(秒) |'."\n"
."\n"
.'### 3.3 AudioParam — 音频参数'."\n"
."\n"
.'`AgentTaskParam.AudioParam` 封装音频类型的输入数据。'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `fileUrl` | `String` | 是 | 音频文件的访问 URL |'."\n"
.'| `fileName` | `String` | 否 | 音频文件名称 |'."\n"
.'| `asrVersion` | `String` | 否 | ASR(语音转文本)引擎版本号 |'."\n"
."\n"
.'---'."\n"
.'## 4. InstructionTypeParam — 指令参数详细说明'."\n"
."\n"
.'`AgentManageParam.InstructionTypeParam` 根据不同的 `instructionType` 承载不同的指令配置参数。**只需填写与当前 `instructionType` 对应的子参数,其余字段留空即可。**'."\n"
."\n"
.'### 4.1 FieldsParam — 关键属性抽取(`instructionType = "field"`)'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `nameDescPairList` | `List` | 是 | 需要抽取的属性维度列表 |'."\n"
."\n"
.'**NameDescPair 结构:**'."\n"
."\n"
.'| 字段名 | 类型 | 说明 |'."\n"
.'|--------|------|------|'."\n"
.'| `name` | `String` | 属性名称(必填) |'."\n"
.'| `desc` | `String` | 属性描述(可选) |'."\n"
."\n"
.'### 4.2 ServiceInspectionParam — 服务质检(`instructionType = "serviceInspection"`)'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `sceneName` | `String` | 是 | 质检场景名称 |'."\n"
.'| `sceneDescription` | `String` | 否 | 质检场景描述 |'."\n"
.'| `dimensions` | `List` | 是 | 质检维度列表 |'."\n"
."\n"
.'**Dimension 结构:**'."\n"
."\n"
.'| 字段名 | 类型 | 说明 |'."\n"
.'|--------|------|------|'."\n"
.'| `dimension` | `String` | 维度名称(必填) |'."\n"
.'| `desc` | `String` | 维度描述(可选) |'."\n"
."\n"
.'### 4.3 TagCategoryParam — 标签分类(`instructionType = "tagCategory"`)'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `nameDescPairList` | `List` | 是 | 标签分类维度列表 |'."\n"
."\n"
.'**NameDescValueListPair 结构:**'."\n"
."\n"
.'| 字段名 | 类型 | 说明 |'."\n"
.'|--------|------|------|'."\n"
.'| `name` | `String` | 维度名称 |'."\n"
.'| `desc` | `String` | 维度描述 |'."\n"
.'| `valueList` | `List` | 候选标签值列表 |'."\n"
."\n"
.'### 4.4 CustomPrompt — 自定义指令(`instructionType = "customPrompt"`)'."\n"
."\n"
.'| 字段名 | 类型 | 必填 | 说明 |'."\n"
.'|--------|------|------|------|'."\n"
.'| `customPrompt` | `String` | 是 | 用户自定义的 prompt 模板内容 |'."\n"
."\n"
.'---',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
'product' => ['code' => 'sca', 'title' => '智能对话分析'],
],
'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"106C6CA0-282D-4AF7-85F0-D2D24F4CE647\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"TaskId\\": \\"7C1DEF5F-2C18-4D36-99C6-8***\\",\\n \\"Vid\\": \\"6fa76916-3ce6-45d8-ac64-01b7f31***\\"\\n }\\n}","type":"json"}]',
],
'CreateAsrVocab' => [
'summary' => '将一组语音热词上传到服务端,并获取返回的热词ID。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => [
'operationType' => 'create',
'abilityTreeCode' => '56145',
'abilityTreeNodes' => ['FEATUREscaKR8LQC'],
],
'parameters' => [
[
'name' => 'JsonStr',
'in' => 'query',
'schema' => ['description' => '完整JSON字符串信息,具体内容参见以下详细信息。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '{"name":"热词名称"}'],
],
[
'name' => 'BaseMeAgentId',
'in' => 'query',
'schema' => ['title' => '业务空间Id', 'description' => '业务空间Id', 'type' => 'integer', 'format' => 'int64', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '结果代码,**200**表示成功,若为别的值则表示失败,调用方可根据此字段判断失败原因。', 'type' => 'string', 'example' => '200'],
'Message' => ['description' => '出错时表示出错详情,成功时为**successful**。', 'type' => 'string', 'example' => 'successful'],
'Data' => ['description' => '热词ID', 'type' => 'string', 'example' => '71b1795ac8634bd8bdf4d3878480c7c2'],
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '96138D8D-8D26-4E41-BFF4-77AED1088BBD'],
'Success' => ['description' => '请求是否成功,调用方可根据此字段来判断请求是否成功:**true**表示成功;**false/null**表示失败。', 'type' => 'boolean', 'example' => 'true'],
],
'description' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": \\"71b1795ac8634bd8bdf4d3878480c7c2\\",\\n \\"RequestId\\": \\"96138D8D-8D26-4E41-BFF4-77AED1088BBD\\",\\n \\"Success\\": true\\n}","type":"json"}]',
'title' => '新建热词组',
'description' => '> 热词用于解决某个特定名词(如人名、地名、专有名词等)识别不准的问题。[了解更多](https://help.aliyun.com/document_detail/213249.html)。',
'requestParamsDescription' => '**请求参数Json字符串信息**'."\n"
.'| 属性| 值类型 | 是否必须 | 说明 |'."\n"
.'|:---------|:-------|:---------|:---------|'."\n"
.'| name | String| 是 | 热词名称 |'."\n"
.'| words | List | 是 | 热词列表 |'."\n"
."\n"
.'**words说明**'."\n"
.'| 属性| 值类型 | 是否必须 | 说明 |'."\n"
.'|:---------|:-------|:---------|:---------|'."\n"
.'| word | String| 是 | 热词 |'."\n"
.'| weight | Integer | 否 | 权重,默认:2。取值范围为【-6,5】之间的整数,不能超出限制。大于0的权重用来增加该词语被识别的概率,小于0的权重用来减小该词语被识别的概率。权重-6表示尽量不要识别出这个词语;权重2是常用的值,如果效果不明显可以适当增加权重,但是当权重较大时可能会有一些负面效果,导致其他词语识别不准确 |',
'responseParamsDescription' => ' ',
'extraInfo' => '### 调用示例'."\n"
.'```'."\n"
.'public void testCreateAsrVocab() throws ClientException {'."\n"
.' CreateAsrVocabRequest request = new CreateAsrVocabRequest();'."\n"
.' Map param = new HashMap<>(2);'."\n"
.' List