tccli 3.0.1395.1__py2.py3-none-any.whl → 3.0.1397.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ai3d/v20250513/api.json +3 -3
  3. tccli/services/cdn/cdn_client.py +4 -163
  4. tccli/services/cdn/v20180606/api.json +0 -297
  5. tccli/services/cdn/v20180606/examples.json +0 -24
  6. tccli/services/ckafka/v20190819/api.json +1 -1
  7. tccli/services/ckafka/v20190819/examples.json +1 -1
  8. tccli/services/cls/v20201016/api.json +6 -6
  9. tccli/services/cls/v20201016/examples.json +1 -1
  10. tccli/services/ess/v20201111/api.json +24 -24
  11. tccli/services/essbasic/v20210526/examples.json +2 -2
  12. tccli/services/iai/v20180301/api.json +112 -114
  13. tccli/services/iai/v20180301/examples.json +7 -7
  14. tccli/services/iai/v20200303/api.json +4 -4
  15. tccli/services/iai/v20200303/examples.json +1 -1
  16. tccli/services/iotexplorer/v20190423/api.json +20 -2
  17. tccli/services/lcic/v20220817/api.json +6 -6
  18. tccli/services/lke/lke_client.py +0 -106
  19. tccli/services/lke/v20231130/api.json +0 -106
  20. tccli/services/lke/v20231130/examples.json +0 -16
  21. tccli/services/lkeap/v20240522/api.json +37 -10
  22. tccli/services/mongodb/v20190725/api.json +38 -36
  23. tccli/services/mongodb/v20190725/examples.json +3 -3
  24. tccli/services/mps/mps_client.py +220 -8
  25. tccli/services/mps/v20190612/api.json +420 -3
  26. tccli/services/mps/v20190612/examples.json +50 -0
  27. tccli/services/redis/v20180412/api.json +4 -4
  28. tccli/services/tcb/v20180608/api.json +1 -1
  29. tccli/services/tcss/v20201101/api.json +30 -10
  30. tccli/services/teo/v20220901/api.json +10 -0
  31. tccli/services/trtc/v20190722/api.json +57 -18
  32. tccli/services/tse/v20201207/api.json +39 -1
  33. tccli/services/tse/v20201207/examples.json +3 -3
  34. tccli/services/tsf/v20180326/api.json +2 -2
  35. tccli/services/vpc/v20170312/api.json +1 -1
  36. tccli/services/waf/v20180125/api.json +796 -146
  37. tccli/services/waf/v20180125/examples.json +1 -1
  38. {tccli-3.0.1395.1.dist-info → tccli-3.0.1397.1.dist-info}/METADATA +2 -2
  39. {tccli-3.0.1395.1.dist-info → tccli-3.0.1397.1.dist-info}/RECORD +42 -42
  40. {tccli-3.0.1395.1.dist-info → tccli-3.0.1397.1.dist-info}/WHEEL +0 -0
  41. {tccli-3.0.1395.1.dist-info → tccli-3.0.1397.1.dist-info}/entry_points.txt +0 -0
  42. {tccli-3.0.1395.1.dist-info → tccli-3.0.1397.1.dist-info}/license_files/LICENSE +0 -0
@@ -311,25 +311,25 @@
311
311
  "ModifyGroup": [
312
312
  {
313
313
  "document": "",
314
- "input": "https://iai.tencentcloudapi.com/?Action=ModifyGroup\r\n&GroupId=TencentShenZhenEmployee\r\n&GroupExDescriptionInfos.0.GroupExDescriptionIndex=0\r\n&GroupExDescriptionInfos.0.GroupExDescription=部门\r\n&Version=2018-03-01\r\n&<公共请求参数>",
314
+ "input": "https://iai.tencentcloudapi.com/?Action=ModifyGroup\n&GroupId=TencentShenZhenEmployee\n&GroupExDescriptionInfos.0.GroupExDescriptionIndex=0\n&GroupExDescriptionInfos.0.GroupExDescription=部门\n&<公共请求参数>",
315
315
  "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"FailedOperation.DuplicatedGroupDescription\",\n \"Message\": \"同一人员库中自定义描述字段不可重复。\"\n },\n \"RequestId\": \"4b483679-3f08-4a7c-b827-4a6332dc030f\"\n }\n}",
316
316
  "title": "错误示例"
317
317
  },
318
318
  {
319
319
  "document": "人员库名称不可重复",
320
- "input": "https://iai.tencentcloudapi.com/?Action=ModifyGroup\r\n&GroupId=TencentShenZhenEmployee\r\n&GroupName=某某大学竹园1号宿舍楼\r\n&Version=2018-03-01\r\n&<公共请求参数>",
320
+ "input": "https://iai.tencentcloudapi.com/?Action=ModifyGroup\n&GroupId=TencentShenZhenEmployee\n&GroupName=某某大学竹园1号宿舍楼\n&<公共请求参数>",
321
321
  "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue.GroupNameAlreadyExist\",\n \"Message\": \"人员库名称已经存在。人员库名称不可重复。\"\n },\n \"RequestId\": \"2dcce170-30cf-4078-9b3c-309362fbad21\"\n }\n}",
322
322
  "title": "错误示例-2"
323
323
  },
324
324
  {
325
325
  "document": "",
326
- "input": "https://iai.tencentcloudapi.com/?Action=ModifyGroup\r\n&GroupId=ZhuYuanDormitoryNo1\r\n&GroupName=某某大学竹园1号宿舍楼\r\n&Tag=研究生入住\r\n&GroupExDescriptionInfos.0.GroupExDescriptionIndex=0\r\n&GroupExDescriptionInfos.0.GroupExDescription=学院\r\n&Version=2018-03-01\r\n&<公共请求参数>",
326
+ "input": "https://iai.tencentcloudapi.com/?Action=ModifyGroup\n&GroupId=ZhuYuanDormitoryNo1\n&GroupName=某某大学竹园1号宿舍楼\n&Tag=研究生入住\n&GroupExDescriptionInfos.0.GroupExDescriptionIndex=0\n&GroupExDescriptionInfos.0.GroupExDescription=学院\n&<公共请求参数>",
327
327
  "output": "{\n \"Response\": {\n \"RequestId\": \"da051f16-0400-49d4-9832-2cfd3b51866f\"\n }\n}",
328
328
  "title": "修改人员库接口"
329
329
  },
330
330
  {
331
331
  "document": "修改人员库名称、备注、自定义描述字段名称",
332
- "input": "https://iai.tencentcloudapi.com/?Action=ModifyGroup\r\n&GroupId=TencentShenZhenEmployee\r\n&GroupName=腾讯深圳在职人员库\r\n&Tag=包含实习生\r\n&GroupExDescriptionInfos.0.GroupExDescriptionIndex=1\r\n&GroupExDescriptionInfos.0.GroupExDescription=部门\r\n&GroupExDescriptionInfos.1.GroupExDescriptionIndex=2\r\n&GroupExDescriptionInfos.1.GroupExDescription=项目组\r\n&Version=2018-03-01\r\n&<公共请求参数>",
332
+ "input": "https://iai.tencentcloudapi.com/?Action=ModifyGroup\n&GroupId=TencentShenZhenEmployee\n&GroupName=腾讯深圳在职人员库\n&Tag=包含实习生\n&GroupExDescriptionInfos.0.GroupExDescriptionIndex=1\n&GroupExDescriptionInfos.0.GroupExDescription=部门\n&GroupExDescriptionInfos.1.GroupExDescriptionIndex=2\n&GroupExDescriptionInfos.1.GroupExDescription=项目组\n&<公共请求参数>",
333
333
  "output": "{\n \"Response\": {\n \"RequestId\": \"98381738-509f-4749-8a66-dbf54247333d\"\n }\n}",
334
334
  "title": "修改人员库接口-2"
335
335
  }
@@ -337,19 +337,19 @@
337
337
  "ModifyPersonBaseInfo": [
338
338
  {
339
339
  "document": "人员性别设置错误",
340
- "input": "https://iai.tencentcloudapi.com/?Action=ModifyPersonBaseInfo\r\n&PersonId=1001\r\n&Gender=-1\r\n&Version=2018-03-01\r\n&<公共请求参数>",
340
+ "input": "https://iai.tencentcloudapi.com/?Action=ModifyPersonBaseInfo\n&PersonId=1001\n&Gender=-1\n&<公共请求参数>",
341
341
  "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue.PersonGenderIllegal\",\n \"Message\": \"人员性别设置出错。0代表未填写,1代表男性,2代表女性。\"\n },\n \"RequestId\": \"f40bf659-0283-4773-abe8-945f643d5015\"\n }\n}",
342
342
  "title": "错误示例"
343
343
  },
344
344
  {
345
345
  "document": "",
346
- "input": "https://iai.tencentcloudapi.com/?Action=ModifyPersonBaseInfo\r\n&PersonId=2001\r\n&PersonName=JunlyWang\r\n&Gender=1\r\n&Version=2018-03-01\r\n&<公共请求参数>",
346
+ "input": "https://iai.tencentcloudapi.com/?Action=ModifyPersonBaseInfo\n&PersonId=2001\n&PersonName=JunlyWang\n&Gender=1\n&<公共请求参数>",
347
347
  "output": "{\n \"Response\": {\n \"RequestId\": \"6e2a0fb7-7c9e-45c7-abf1-338457d1def7\"\n }\n}",
348
348
  "title": "修改人员基础信息接口"
349
349
  },
350
350
  {
351
351
  "document": "",
352
- "input": "https://iai.tencentcloudapi.com/?Action=ModifyPersonBaseInfo\r\n&PersonId=1001\r\n&PersonName=EvanLiao\r\n&Gender=1\r\n&Version=2018-03-01\r\n&<公共请求参数>",
352
+ "input": "https://iai.tencentcloudapi.com/?Action=ModifyPersonBaseInfo\n&PersonId=1001\n&PersonName=EvanLiao\n&Gender=1\n&<公共请求参数>",
353
353
  "output": "{\n \"Response\": {\n \"RequestId\": \"6e2a0fb7-7c9e-45c7-abf1-338457d1def7\"\n }\n}",
354
354
  "title": "修改人员基础信息接口-2"
355
355
  }
@@ -2180,7 +2180,7 @@
2180
2180
  {
2181
2181
  "disabled": false,
2182
2182
  "document": "美丑打分。\n- 取值范围:[0,100]。 \n- FaceAttributesType 不含 Beauty 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。",
2183
- "example": "",
2183
+ "example": "30",
2184
2184
  "member": "int64",
2185
2185
  "name": "Beauty",
2186
2186
  "output_required": true,
@@ -3316,7 +3316,7 @@
3316
3316
  {
3317
3317
  "disabled": false,
3318
3318
  "document": "人员库自定义描述字段Index,从0开始。",
3319
- "example": "",
3319
+ "example": "3",
3320
3320
  "member": "uint64",
3321
3321
  "name": "GroupExDescriptionIndex",
3322
3322
  "required": true,
@@ -3862,7 +3862,7 @@
3862
3862
  {
3863
3863
  "disabled": false,
3864
3864
  "document": "检测出的人脸图片状态返回码。\n- 0 表示正常。 \n- -1601代表不符合图片质量控制要求,此时Candidate内容为空。",
3865
- "example": "",
3865
+ "example": "0",
3866
3866
  "member": "int64",
3867
3867
  "name": "RetCode",
3868
3868
  "output_required": true,
@@ -3977,7 +3977,7 @@
3977
3977
  {
3978
3978
  "disabled": false,
3979
3979
  "document": "出参Score中,只有超过FaceMatchThreshold值的结果才会返回。默认为0。",
3980
- "example": "0",
3980
+ "example": "0.0",
3981
3981
  "member": "float",
3982
3982
  "name": "FaceMatchThreshold",
3983
3983
  "required": false,
@@ -428,7 +428,7 @@
428
428
  {
429
429
  "document": "",
430
430
  "input": "https://iai.tencentcloudapi.com/?Action=SearchFaces\n&Url=http://test.image.myqcloud.com/testA.jpg\n&MaxFaceNum=1\n&MinFaceSize=40\n&MaxPersonNum=5\n&GroupIds.0=TencentShenZhenEmployee\n&<公共请求参数>",
431
- "output": "{\n \"Response\": {\n \"Results\": [\n {\n \"RetCode\": 0,\n \"Candidates\": [\n {\n \"PersonId\": \"1001\",\n \"FaceId\": \"2875093635484912302\",\n \"PersonName\": \"Jerry\",\n \"Gender\": 0,\n \"Score\": 100,\n \"PersonGroupInfos\": [\n {\n \"GroupId\": \"abc\",\n \"PersonExDescriptions\": [\n \"description1\",\n \"description2\"\n ]\n }\n ]\n }\n ],\n \"FaceRect\": {\n \"X\": 370,\n \"Y\": 46,\n \"Width\": 75,\n \"Height\": 75\n }\n }\n ],\n \"FaceNum\": 1,\n \"FaceModelVersion\": \"3.0\",\n \"RequestId\": \"57b42b73-b978-45b9-8095-8f50e9642d35\"\n }\n}",
431
+ "output": "{\n \"Response\": {\n \"Results\": [\n {\n \"RetCode\": 0,\n \"Candidates\": [\n {\n \"PersonId\": \"1001\",\n \"FaceId\": \"2875093635484912302\",\n \"PersonName\": \"Jerry\",\n \"Gender\": 0,\n \"Score\": 100,\n \"PersonGroupInfos\": [\n {\n \"GroupId\": \"TencentShenZhenEmployee\",\n \"PersonExDescriptions\": [\n \"description1\",\n \"description2\"\n ]\n }\n ]\n }\n ],\n \"FaceRect\": {\n \"X\": 370,\n \"Y\": 46,\n \"Width\": 75,\n \"Height\": 75\n }\n }\n ],\n \"FaceNum\": 1,\n \"FaceModelVersion\": \"3.0\",\n \"RequestId\": \"57b42b73-b978-45b9-8095-8f50e9642d35\"\n }\n}",
432
432
  "title": "人脸搜索成功示例"
433
433
  },
434
434
  {
@@ -4801,6 +4801,15 @@
4801
4801
  "required": false,
4802
4802
  "type": "int"
4803
4803
  },
4804
+ {
4805
+ "disabled": false,
4806
+ "document": "复刻音色",
4807
+ "example": "WCIH",
4808
+ "member": "string",
4809
+ "name": "FastVoiceType",
4810
+ "required": false,
4811
+ "type": "string"
4812
+ },
4804
4813
  {
4805
4814
  "disabled": false,
4806
4815
  "document": "支持的语言,zh-中文;en-英文;默认zh",
@@ -13162,7 +13171,7 @@
13162
13171
  },
13163
13172
  {
13164
13173
  "disabled": false,
13165
- "document": "开始时间。\n\n注:\n1. 单位为毫秒(ms)\n2. 如果同时指定了StartTimeMs与EndTimeMs,时间区间不能大于7天;如果只指定其中一个(例如只指定StartTimeMs,则查询自StartTimeMs后7天内的数据, 反之EndTimeMs也一样)\n3. 只要指定了其中一个参数,接口则会忽略Query参数中关于时间的描述;(例如Query为\"过去三天关于猫咪的视频\", 则会将\"过去三天忽略\")",
13174
+ "document": "开始时间。\n\n注:\n1. 单位为毫秒(ms)\n2. 如果同时指定了StartTimeMs与EndTimeMs,时间区间不能大于7天;如果只指定其中一个(例如只指定StartTimeMs,则查询自StartTimeMs后1天内的数据, 反之EndTimeMs也一样)\n3. 只要指定了其中一个参数,接口则会忽略Query参数中关于时间的描述;(例如Query为\"过去三天关于猫咪的视频\", 则会将\"过去三天忽略\")",
13166
13175
  "example": "1750158420000",
13167
13176
  "member": "int64",
13168
13177
  "name": "StartTimeMs",
@@ -13171,7 +13180,7 @@
13171
13180
  },
13172
13181
  {
13173
13182
  "disabled": false,
13174
- "document": "结束时间。\n\n注:\n1. 单位为毫秒(ms)\n2. 如果同时指定了StartTimeMs与EndTimeMs,时间区间不能大于7天;如果只指定其中一个(例如只指定StartTimeMs,则查询自StartTimeMs后7天内的数据, 反之EndTimeMs也一样)\n3. 只要指定了其中一个参数,接口则会忽略Query参数中关于时间的描述;(例如Query为\"过去三天关于猫咪的视频\", 则会将\"过去三天忽略\")",
13183
+ "document": "结束时间。\n\n注:\n1. 单位为毫秒(ms)\n2. 如果同时指定了StartTimeMs与EndTimeMs,时间区间不能大于7天;如果只指定其中一个(例如只指定StartTimeMs,则查询自StartTimeMs后1天内的数据, 反之EndTimeMs也一样)\n3. 只要指定了其中一个参数,接口则会忽略Query参数中关于时间的描述;(例如Query为\"过去三天关于猫咪的视频\", 则会将\"过去三天忽略\")",
13175
13184
  "example": "1750244820000",
13176
13185
  "member": "int64",
13177
13186
  "name": "EndTimeMs",
@@ -15734,6 +15743,15 @@
15734
15743
  "required": false,
15735
15744
  "type": "int"
15736
15745
  },
15746
+ {
15747
+ "disabled": false,
15748
+ "document": "复刻音色",
15749
+ "example": "WHCH",
15750
+ "member": "string",
15751
+ "name": "FastVoiceType",
15752
+ "required": false,
15753
+ "type": "string"
15754
+ },
15737
15755
  {
15738
15756
  "disabled": false,
15739
15757
  "document": "支持的语言,zh-中文;en-英文;默认zh",
@@ -1580,7 +1580,7 @@
1580
1580
  "members": [
1581
1581
  {
1582
1582
  "disabled": false,
1583
- "document": "课堂名称。",
1583
+ "document": "课堂名称。\n字符数不超过256",
1584
1584
  "example": "房间名称",
1585
1585
  "member": "string",
1586
1586
  "name": "Name",
@@ -1868,7 +1868,7 @@
1868
1868
  },
1869
1869
  {
1870
1870
  "disabled": false,
1871
- "document": "字幕转写功能开关:0关闭,1开启,默认关闭",
1871
+ "document": "字幕转写功能开关。可以有以下取值:\n0 不开启字幕转写功能(默认值)\n1 自动转写模式:上课自动开启,下课自动停止",
1872
1872
  "example": "0",
1873
1873
  "member": "uint64",
1874
1874
  "name": "SubtitlesTranscription",
@@ -6172,7 +6172,7 @@
6172
6172
  },
6173
6173
  {
6174
6174
  "disabled": false,
6175
- "document": "房间名称。",
6175
+ "document": "房间名称。\n字符数不超过256",
6176
6176
  "example": "房间名称",
6177
6177
  "member": "string",
6178
6178
  "name": "Name",
@@ -6370,7 +6370,7 @@
6370
6370
  },
6371
6371
  {
6372
6372
  "disabled": false,
6373
- "document": "字幕转写功能开关:0关闭,1开启,默认关闭",
6373
+ "document": "字幕转写功能开关。可以有以下取值:\n0 不开启字幕转写功能(默认值)\n1 自动转写模式:上课自动开启,下课自动停止",
6374
6374
  "example": "0",
6375
6375
  "member": "uint64",
6376
6376
  "name": "SubtitlesTranscription",
@@ -6667,7 +6667,7 @@
6667
6667
  "members": [
6668
6668
  {
6669
6669
  "disabled": false,
6670
- "document": "房间名称。",
6670
+ "document": "房间名称。\n字符数不超过256",
6671
6671
  "example": "房间名称",
6672
6672
  "member": "string",
6673
6673
  "name": "Name",
@@ -6937,7 +6937,7 @@
6937
6937
  },
6938
6938
  {
6939
6939
  "disabled": false,
6940
- "document": "字幕转写功能开关:0关闭,1开启,默认关闭",
6940
+ "document": "字幕转写功能开关。可以有以下取值:\n0 不开启字幕转写功能(默认值)\n1 自动转写模式:上课自动开启,下课自动停止",
6941
6941
  "example": "0",
6942
6942
  "member": "uint64",
6943
6943
  "name": "SubtitlesTranscription",
@@ -537,58 +537,6 @@ def doStopWorkflowRun(args, parsed_globals):
537
537
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
538
538
 
539
539
 
540
- def doModifyAgent(args, parsed_globals):
541
- g_param = parse_global_arg(parsed_globals)
542
-
543
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
544
- cred = credential.CVMRoleCredential()
545
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
546
- cred = credential.STSAssumeRoleCredential(
547
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
548
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
549
- )
550
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
551
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
552
- else:
553
- cred = credential.Credential(
554
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
555
- )
556
- http_profile = HttpProfile(
557
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
558
- reqMethod="POST",
559
- endpoint=g_param[OptionsDefine.Endpoint],
560
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
561
- )
562
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
563
- if g_param[OptionsDefine.Language]:
564
- profile.language = g_param[OptionsDefine.Language]
565
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
566
- client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
567
- client._sdkVersion += ("_CLI_" + __version__)
568
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
569
- model = models.ModifyAgentRequest()
570
- model.from_json_string(json.dumps(args))
571
- start_time = time.time()
572
- while True:
573
- rsp = client.ModifyAgent(model)
574
- result = rsp.to_json_string()
575
- try:
576
- json_obj = json.loads(result)
577
- except TypeError as e:
578
- json_obj = json.loads(result.decode('utf-8')) # python3.3
579
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
580
- break
581
- cur_time = time.time()
582
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
583
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
584
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
585
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
586
- else:
587
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
588
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
589
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
590
-
591
-
592
540
  def doCreateAttributeLabel(args, parsed_globals):
593
541
  g_param = parse_global_arg(parsed_globals)
594
542
 
@@ -3501,58 +3449,6 @@ def doExportQAList(args, parsed_globals):
3501
3449
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3502
3450
 
3503
3451
 
3504
- def doCreateAgent(args, parsed_globals):
3505
- g_param = parse_global_arg(parsed_globals)
3506
-
3507
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3508
- cred = credential.CVMRoleCredential()
3509
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3510
- cred = credential.STSAssumeRoleCredential(
3511
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3512
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3513
- )
3514
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3515
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3516
- else:
3517
- cred = credential.Credential(
3518
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3519
- )
3520
- http_profile = HttpProfile(
3521
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3522
- reqMethod="POST",
3523
- endpoint=g_param[OptionsDefine.Endpoint],
3524
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3525
- )
3526
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3527
- if g_param[OptionsDefine.Language]:
3528
- profile.language = g_param[OptionsDefine.Language]
3529
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3530
- client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
3531
- client._sdkVersion += ("_CLI_" + __version__)
3532
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
3533
- model = models.CreateAgentRequest()
3534
- model.from_json_string(json.dumps(args))
3535
- start_time = time.time()
3536
- while True:
3537
- rsp = client.CreateAgent(model)
3538
- result = rsp.to_json_string()
3539
- try:
3540
- json_obj = json.loads(result)
3541
- except TypeError as e:
3542
- json_obj = json.loads(result.decode('utf-8')) # python3.3
3543
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3544
- break
3545
- cur_time = time.time()
3546
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3547
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3548
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3549
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3550
- else:
3551
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3552
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3553
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3554
-
3555
-
3556
3452
  def doUploadAttributeLabel(args, parsed_globals):
3557
3453
  g_param = parse_global_arg(parsed_globals)
3558
3454
 
@@ -5602,7 +5498,6 @@ ACTION_MAP = {
5602
5498
  "CreateRelease": doCreateRelease,
5603
5499
  "DeleteQA": doDeleteQA,
5604
5500
  "StopWorkflowRun": doStopWorkflowRun,
5605
- "ModifyAgent": doModifyAgent,
5606
5501
  "CreateAttributeLabel": doCreateAttributeLabel,
5607
5502
  "ListDocCate": doListDocCate,
5608
5503
  "ListSharedKnowledge": doListSharedKnowledge,
@@ -5659,7 +5554,6 @@ ACTION_MAP = {
5659
5554
  "GetLikeDataCount": doGetLikeDataCount,
5660
5555
  "ModifyDocCate": doModifyDocCate,
5661
5556
  "ExportQAList": doExportQAList,
5662
- "CreateAgent": doCreateAgent,
5663
5557
  "UploadAttributeLabel": doUploadAttributeLabel,
5664
5558
  "DescribeReleaseInfo": doDescribeReleaseInfo,
5665
5559
  "GetDocPreview": doGetDocPreview,
@@ -14,13 +14,6 @@
14
14
  "output": "CheckAttributeLabelReferResponse",
15
15
  "status": "online"
16
16
  },
17
- "CreateAgent": {
18
- "document": "创建一个Agent",
19
- "input": "CreateAgentRequest",
20
- "name": "创建Agent",
21
- "output": "CreateAgentResponse",
22
- "status": "online"
23
- },
24
17
  "CreateApp": {
25
18
  "document": "创建知识引擎应用。",
26
19
  "input": "CreateAppRequest",
@@ -588,13 +581,6 @@
588
581
  "output": "ListWorkflowRunsResponse",
589
582
  "status": "online"
590
583
  },
591
- "ModifyAgent": {
592
- "document": "修改Agent信息",
593
- "input": "ModifyAgentRequest",
594
- "name": "修改Agent",
595
- "output": "ModifyAgentResponse",
596
- "status": "online"
597
- },
598
584
  "ModifyApp": {
599
585
  "document": "修改应用请求结构体",
600
586
  "input": "ModifyAppRequest",
@@ -4136,52 +4122,6 @@
4136
4122
  ],
4137
4123
  "usage": "out"
4138
4124
  },
4139
- "CreateAgentRequest": {
4140
- "document": "CreateAgent请求参数结构体",
4141
- "members": [
4142
- {
4143
- "disabled": false,
4144
- "document": "应用ID",
4145
- "example": "1906600044720291840",
4146
- "member": "string",
4147
- "name": "AppBizId",
4148
- "required": false,
4149
- "type": "string"
4150
- },
4151
- {
4152
- "disabled": false,
4153
- "document": "要增加的Agent的信息",
4154
- "example": "无",
4155
- "member": "Agent",
4156
- "name": "Agent",
4157
- "required": false,
4158
- "type": "object"
4159
- }
4160
- ],
4161
- "type": "object"
4162
- },
4163
- "CreateAgentResponse": {
4164
- "document": "CreateAgent返回参数结构体",
4165
- "members": [
4166
- {
4167
- "disabled": false,
4168
- "document": "新建的AgentID",
4169
- "example": "test-agent-id",
4170
- "member": "string",
4171
- "name": "AgentId",
4172
- "output_required": false,
4173
- "type": "string",
4174
- "value_allowed_null": false
4175
- },
4176
- {
4177
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4178
- "member": "string",
4179
- "name": "RequestId",
4180
- "type": "string"
4181
- }
4182
- ],
4183
- "type": "object"
4184
- },
4185
4125
  "CreateAppRequest": {
4186
4126
  "document": "CreateApp请求参数结构体",
4187
4127
  "members": [
@@ -14364,52 +14304,6 @@
14364
14304
  ],
14365
14305
  "usage": "both"
14366
14306
  },
14367
- "ModifyAgentRequest": {
14368
- "document": "ModifyAgent请求参数结构体",
14369
- "members": [
14370
- {
14371
- "disabled": false,
14372
- "document": "需要修改的应用ID",
14373
- "example": "1906600044720291840",
14374
- "member": "string",
14375
- "name": "AppBizId",
14376
- "required": false,
14377
- "type": "string"
14378
- },
14379
- {
14380
- "disabled": false,
14381
- "document": "修改后的Agent的信息",
14382
- "example": "无",
14383
- "member": "Agent",
14384
- "name": "Agent",
14385
- "required": false,
14386
- "type": "object"
14387
- }
14388
- ],
14389
- "type": "object"
14390
- },
14391
- "ModifyAgentResponse": {
14392
- "document": "ModifyAgent返回参数结构体",
14393
- "members": [
14394
- {
14395
- "disabled": false,
14396
- "document": "修改的AgentId",
14397
- "example": "test-agent-id",
14398
- "member": "string",
14399
- "name": "AgentId",
14400
- "output_required": false,
14401
- "type": "string",
14402
- "value_allowed_null": false
14403
- },
14404
- {
14405
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
14406
- "member": "string",
14407
- "name": "RequestId",
14408
- "type": "string"
14409
- }
14410
- ],
14411
- "type": "object"
14412
- },
14413
14307
  "ModifyAppRequest": {
14414
14308
  "document": "ModifyApp请求参数结构体",
14415
14309
  "members": [
@@ -16,14 +16,6 @@
16
16
  "title": "检查知识标签是否被引用"
17
17
  }
18
18
  ],
19
- "CreateAgent": [
20
- {
21
- "document": "",
22
- "input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAgent\n<公共请求参数>\n\n{\n \"AppBizId\": \"1906600044720291840\",\n \"Agent\": {\n \"Name\": \"浏览器控制 agent\",\n \"Instructions\": \"根据用户需求进行浏览器的控制\",\n \"HandoffDescription\": \"涉及到实际浏览器控制和操作的需求都可以交给我\",\n \"Model\": {\n \"ModelName\": \"function-call-pro\"\n }\n }\n}",
23
- "output": "{\n \"Response\": {\n \"AgentId\": \"845c1ef7-5103-4e95-9e59-3d46fbeabe63\",\n \"RequestId\": \"84ec404b-729e-47af-9f64-7a3f590c8c27\"\n }\n}",
24
- "title": "创建Agent"
25
- }
26
- ],
27
19
  "CreateApp": [
28
20
  {
29
21
  "document": "创建应用",
@@ -684,14 +676,6 @@
684
676
  "title": "查询工作流异步运行实例的列表"
685
677
  }
686
678
  ],
687
- "ModifyAgent": [
688
- {
689
- "document": "",
690
- "input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAgent\n<公共请求参数>\n\n{\n \"AppBizId\": \"1906600044720291840\",\n \"Agent\": {\n \"AgentId\": \"845c1ef7-5103-4e95-9e59-3d46fbeabe63\",\n \"Name\": \"新闻搜索agent\",\n \"Instructions\": \"根据用户的输入,搜索相关新闻,提供相应的web访问地址\",\n \"HandoffDescription\": \"处理用户新闻搜索的需求\"\n }\n}",
691
- "output": "{\n \"Response\": {\n \"RequestId\": \"47a5a3be-b6ad-48bc-aced-7af35781b2be\"\n }\n}",
692
- "title": "修改Agent"
693
- }
694
- ],
695
679
  "ModifyApp": [
696
680
  {
697
681
  "document": "修改应用",
@@ -337,7 +337,7 @@
337
337
  },
338
338
  {
339
339
  "disabled": false,
340
- "document": "最大生成的token数量,默认为4096,最大可设置为16384",
340
+ "document": "模型最大输出长度(单位 token),不包含思维链内容。\n默认为4096,取值范围:各个模型不同,参考各个模型最大输出长度(示例:4k,即4096)。\n输出 token 的总长度受模型的上下文长度限制。",
341
341
  "example": "8192",
342
342
  "member": "int64",
343
343
  "name": "MaxTokens",
@@ -668,7 +668,7 @@
668
668
  },
669
669
  {
670
670
  "disabled": false,
671
- "document": "智能文档解析返回结果的格式\n0:只返回全文MD;\n1:只返回每一页的OCR原始Json;\n2:只返回每一页的MD,\n3:返回全文MD + 每一页的OCR原始Json;\n4:返回全文MD + 每一页的MD,\n默认值为0",
671
+ "document": "智能文档解析返回结果的格式\n0:只返回全文MD;\n1:只返回每一页的OCR原始Json;\n2:只返回每一页的MD,\n3:返回全文MD + 每一页的OCR原始Json;\n4:返回全文MD + 每一页的MD\n5: 返回全文md,每一页ocr原始json,每一页md\n默认值为0\n",
672
672
  "example": "3",
673
673
  "member": "string",
674
674
  "name": "ResultType",
@@ -783,7 +783,7 @@
783
783
  },
784
784
  {
785
785
  "disabled": true,
786
- "document": "智能文档解析返回结果的格式\n0:只返回全文MD;\n1:只返回每一页的OCR原始Json;\n2:只返回每一页的MD,\n3:返回全文MD + 每一页的OCR原始Json;\n4:返回全文MD + 每一页的MD,\n默认值为3(返回全文MD + 每一页的OCR原始Json)\n\n",
786
+ "document": "智能文档解析返回结果的格式\n0:只返回全文MD;\n1:只返回每一页的OCR原始Json;\n2:只返回每一页的MD;\n3:返回全文MD + 每一页的OCR原始Json;\n4:返回全文MD + 每一页的MD;\n5:返回全文md,每一页ocr原始json,每一页md。\n\n",
787
787
  "example": "3",
788
788
  "member": "string",
789
789
  "name": "ResultType",
@@ -816,6 +816,24 @@
816
816
  "name": "IgnoreFailedPage",
817
817
  "required": false,
818
818
  "type": "bool"
819
+ },
820
+ {
821
+ "disabled": false,
822
+ "document": "智能文档解析返回结果的格式\n0:只返回全文MD;\n1:只返回每一页的OCR原始Json;\n2:只返回每一页的MD;\n3:返回全文MD + 每一页的OCR原始Json;\n4:返回全文MD + 每一页的MD;\n5:返回全文md,每一页ocr原始json,每一页md。\n\n",
823
+ "example": "0",
824
+ "member": "string",
825
+ "name": "SplitResultType",
826
+ "required": false,
827
+ "type": "string"
828
+ },
829
+ {
830
+ "disabled": false,
831
+ "document": "Markdown文件中表格返回的形式\n0,表格以MD形式返回\n1,表格以HTML形式返回\n默认为",
832
+ "example": "0",
833
+ "member": "string",
834
+ "name": "SplitTableResultType",
835
+ "required": false,
836
+ "type": "string"
819
837
  }
820
838
  ],
821
839
  "usage": "in"
@@ -1400,7 +1418,7 @@
1400
1418
  "members": [
1401
1419
  {
1402
1420
  "disabled": false,
1403
- "document": "说明:选择生成向量的模型\n备注:仅一个模型可选",
1421
+ "document": "说明:选择生成向量的模型备注:可选[lke-text-embedding-v1,lke-text-embedding-v2]",
1404
1422
  "example": "lke-text-embedding-v1",
1405
1423
  "member": "string",
1406
1424
  "name": "Model",
@@ -1951,8 +1969,8 @@
1951
1969
  "members": [
1952
1970
  {
1953
1971
  "disabled": false,
1954
- "document": "知识库ID",
1955
- "example": "4901991032",
1972
+ "document": "说明:知识库ID\n备注:通过创建知识库接口(DeleteKnowledgeBase)得到知识库ID(KnowledgeBaseId)",
1973
+ "example": "34b46fe81750343723503",
1956
1974
  "member": "string",
1957
1975
  "name": "KnowledgeBaseId",
1958
1976
  "required": true,
@@ -1960,7 +1978,7 @@
1960
1978
  },
1961
1979
  {
1962
1980
  "disabled": false,
1963
- "document": "属性ID",
1981
+ "document": "说明:属性ID\n备注:通过CreateAttributeLabel接口创建属性时会生成AttributeId,通过ListAttributeLabels接口可查询得到AttributeId、AttributeKey、AttributeName以及LabelId、LabelName的对应关系",
1964
1982
  "example": "1830996257459865531",
1965
1983
  "member": "string",
1966
1984
  "name": "AttributeId",
@@ -1969,7 +1987,7 @@
1969
1987
  },
1970
1988
  {
1971
1989
  "disabled": false,
1972
- "document": "属性标识,最大40个英文字符,如style",
1990
+ "document": "说明:属性标识,\n备注:仅支持英文字符,不支持数字,支持下划线。最大支持40个英文字符,如style",
1973
1991
  "example": "stlye",
1974
1992
  "member": "string",
1975
1993
  "name": "AttributeKey",
@@ -1978,7 +1996,7 @@
1978
1996
  },
1979
1997
  {
1980
1998
  "disabled": false,
1981
- "document": "属性名称,最大80个英文字符,如风格",
1999
+ "document": "说明:属性名称\n备注:支持中英文字符。最大支持80个中英文字符,如风格",
1982
2000
  "example": "风格",
1983
2001
  "member": "string",
1984
2002
  "name": "AttributeName",
@@ -1987,12 +2005,21 @@
1987
2005
  },
1988
2006
  {
1989
2007
  "disabled": false,
1990
- "document": "属性标签",
2008
+ "document": "说明:标签ID(LabelId)以及标签名(LabelName)\n备注:\n- 不填写LabelId,默认在当前AttributeId下新增标签值(LabelName);\n- 若填写该AttributeId下的LabelId以及LabelName,则为修改该LabelId对应的标签值",
1991
2009
  "example": "无",
1992
2010
  "member": "AttributeLabelItem",
1993
2011
  "name": "Labels",
1994
2012
  "required": false,
1995
2013
  "type": "list"
2014
+ },
2015
+ {
2016
+ "disabled": false,
2017
+ "document": "说明:删除的标签id",
2018
+ "example": "[\"157622\"]",
2019
+ "member": "string",
2020
+ "name": "DeleteLabelIds",
2021
+ "required": false,
2022
+ "type": "list"
1996
2023
  }
1997
2024
  ],
1998
2025
  "type": "object"