tccli 3.0.1143.1__py2.py3-none-any.whl → 3.0.1144.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/bpaas/v20181217/api.json +45 -1
- tccli/services/cls/v20201016/api.json +37 -0
- tccli/services/cwp/v20180228/api.json +76 -8
- tccli/services/dbbrain/v20210527/api.json +2 -2
- tccli/services/fmu/v20191213/api.json +6 -6
- tccli/services/hunyuan/v20230901/api.json +253 -3
- tccli/services/hunyuan/v20230901/examples.json +24 -0
- tccli/services/iotexplorer/v20190423/api.json +47 -1
- tccli/services/ocr/v20181119/api.json +1 -1
- tccli/services/postgres/v20170312/api.json +31 -21
- tccli/services/postgres/v20170312/examples.json +4 -4
- tccli/services/ssl/v20191205/api.json +30 -0
- tccli/services/tiia/v20190529/api.json +2 -2
- tccli/services/trocket/v20230308/api.json +60 -48
- tccli/services/vod/v20180717/api.json +20 -2
- {tccli-3.0.1143.1.dist-info → tccli-3.0.1144.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1143.1.dist-info → tccli-3.0.1144.1.dist-info}/RECORD +21 -21
- {tccli-3.0.1143.1.dist-info → tccli-3.0.1144.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1143.1.dist-info → tccli-3.0.1144.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1143.1.dist-info → tccli-3.0.1144.1.dist-info}/license_files/LICENSE +0 -0
@@ -48,7 +48,7 @@
|
|
48
48
|
"members": [
|
49
49
|
{
|
50
50
|
"disabled": false,
|
51
|
-
"document": "模型名称,可选值包括 hunyuan-lite、hunyuan-standard、hunyuan-standard-256K、hunyuan-pro。\n各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。\n\n注意:\n不同的模型计费不同,请根据 [购买指南](https://cloud.tencent.com/document/product/1729/97731) 按需调用。",
|
51
|
+
"document": "模型名称,可选值包括 hunyuan-lite、hunyuan-standard、hunyuan-standard-256K、hunyuan-pro、 hunyuan-code、 hunyuan-role、 hunyuan-functioncall、 hunyuan-vision。\n各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。\n\n注意:\n不同的模型计费不同,请根据 [购买指南](https://cloud.tencent.com/document/product/1729/97731) 按需调用。",
|
52
52
|
"example": "hunyuan-pro",
|
53
53
|
"member": "string",
|
54
54
|
"name": "Model",
|
@@ -57,7 +57,7 @@
|
|
57
57
|
},
|
58
58
|
{
|
59
59
|
"disabled": false,
|
60
|
-
"document": "聊天上下文信息。\n说明:\n1. 长度最多为 40,按对话时间从旧到新在数组中排列。\n2. Message.Role 可选值:system、user、assistant。\n其中,system 角色可选,如存在则必须位于列表的最开始。user 和 assistant 需交替出现(一问一答),以 user
|
60
|
+
"document": "聊天上下文信息。\n说明:\n1. 长度最多为 40,按对话时间从旧到新在数组中排列。\n2. Message.Role 可选值:system、user、assistant、 tool。\n其中,system 角色可选,如存在则必须位于列表的最开始。user(tool) 和 assistant 需交替出现(一问一答),以 user 提问开始,user(tool)提问结束,且 Content 不能为空。Role 的顺序示例:[system(可选) user assistant user assistant user ...]。\n3. Messages 中 Content 总长度不能超过模型输入长度上限(可参考 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 文档),超过则会截断最前面的内容,只保留尾部内容。",
|
61
61
|
"example": "无",
|
62
62
|
"member": "Message",
|
63
63
|
"name": "Messages",
|
@@ -108,6 +108,33 @@
|
|
108
108
|
"name": "EnableEnhancement",
|
109
109
|
"required": false,
|
110
110
|
"type": "bool"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"disabled": false,
|
114
|
+
"document": "可调用的工具列表,仅对 hunyuan-functioncall 模型生效。",
|
115
|
+
"example": "无",
|
116
|
+
"member": "Tool",
|
117
|
+
"name": "Tools",
|
118
|
+
"required": false,
|
119
|
+
"type": "list"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"disabled": false,
|
123
|
+
"document": "工具使用选项,可选值包括 none、auto、custom。\n说明:\n1. 仅对 hunyuan-functioncall 模型生效。\n2. none:不调用工具;auto:模型自行选择生成回复或调用工具;custom:强制模型调用指定的工具。\n3. 未设置时,默认值为auto",
|
124
|
+
"example": "auto",
|
125
|
+
"member": "string",
|
126
|
+
"name": "ToolChoice",
|
127
|
+
"required": false,
|
128
|
+
"type": "string"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"disabled": false,
|
132
|
+
"document": "强制模型调用指定的工具,当参数ToolChoice为custom时,此参数为必填",
|
133
|
+
"example": "无",
|
134
|
+
"member": "Tool",
|
135
|
+
"name": "CustomTool",
|
136
|
+
"required": false,
|
137
|
+
"type": "object"
|
111
138
|
}
|
112
139
|
],
|
113
140
|
"type": "object"
|
@@ -220,6 +247,45 @@
|
|
220
247
|
],
|
221
248
|
"usage": "out"
|
222
249
|
},
|
250
|
+
"Content": {
|
251
|
+
"document": "可以传入多种类型的内容,如图片或文本。当前只支持传入单张图片,传入多张图片时,以第一个图片为准。",
|
252
|
+
"members": [
|
253
|
+
{
|
254
|
+
"disabled": false,
|
255
|
+
"document": "内容类型\n注意:\n当前只支持传入单张图片,传入多张图片时,以第一个图片为准。\n注意:此字段可能返回 null,表示取不到有效值。",
|
256
|
+
"example": "[\"text\", \"image_url\"]",
|
257
|
+
"member": "string",
|
258
|
+
"name": "Type",
|
259
|
+
"output_required": false,
|
260
|
+
"required": true,
|
261
|
+
"type": "string",
|
262
|
+
"value_allowed_null": true
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"disabled": false,
|
266
|
+
"document": "当 Type 为 text 时使用,表示具体的文本内容\n注意:此字段可能返回 null,表示取不到有效值。",
|
267
|
+
"example": "下面图片中是哪个公司的 Logo?",
|
268
|
+
"member": "string",
|
269
|
+
"name": "Text",
|
270
|
+
"output_required": false,
|
271
|
+
"required": false,
|
272
|
+
"type": "string",
|
273
|
+
"value_allowed_null": true
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"disabled": false,
|
277
|
+
"document": "当 Type 为 image_url 时使用,表示具体的图片内容\n注意:此字段可能返回 null,表示取不到有效值。",
|
278
|
+
"example": "无",
|
279
|
+
"member": "ImageUrl",
|
280
|
+
"name": "ImageUrl",
|
281
|
+
"output_required": false,
|
282
|
+
"required": false,
|
283
|
+
"type": "object",
|
284
|
+
"value_allowed_null": true
|
285
|
+
}
|
286
|
+
],
|
287
|
+
"usage": "both"
|
288
|
+
},
|
223
289
|
"Delta": {
|
224
290
|
"document": "返回的内容(流式返回)",
|
225
291
|
"members": [
|
@@ -242,6 +308,16 @@
|
|
242
308
|
"output_required": false,
|
243
309
|
"type": "string",
|
244
310
|
"value_allowed_null": false
|
311
|
+
},
|
312
|
+
{
|
313
|
+
"disabled": false,
|
314
|
+
"document": "模型生成的工具调用,仅 hunyuan-functioncall 模型支持\n说明:\n对于每一次的输出值应该以Id为标识对Type、Name、Arguments字段进行合并。\n\n注意:此字段可能返回 null,表示取不到有效值。",
|
315
|
+
"example": "无",
|
316
|
+
"member": "ToolCall",
|
317
|
+
"name": "ToolCalls",
|
318
|
+
"output_required": false,
|
319
|
+
"type": "list",
|
320
|
+
"value_allowed_null": true
|
245
321
|
}
|
246
322
|
],
|
247
323
|
"usage": "out"
|
@@ -438,12 +514,29 @@
|
|
438
514
|
],
|
439
515
|
"type": "object"
|
440
516
|
},
|
517
|
+
"ImageUrl": {
|
518
|
+
"document": "具体的图片内容",
|
519
|
+
"members": [
|
520
|
+
{
|
521
|
+
"disabled": false,
|
522
|
+
"document": "图片的 Url(以 http:// 或 https:// 开头)\n注意:此字段可能返回 null,表示取不到有效值。",
|
523
|
+
"example": "https://cloudcache.tencent-cloud.com/qcloud/ui/portal-set/build/About/images/bg-product-series_87d.png",
|
524
|
+
"member": "string",
|
525
|
+
"name": "Url",
|
526
|
+
"output_required": false,
|
527
|
+
"required": true,
|
528
|
+
"type": "string",
|
529
|
+
"value_allowed_null": true
|
530
|
+
}
|
531
|
+
],
|
532
|
+
"usage": "both"
|
533
|
+
},
|
441
534
|
"Message": {
|
442
535
|
"document": "会话内容",
|
443
536
|
"members": [
|
444
537
|
{
|
445
538
|
"disabled": false,
|
446
|
-
"document": "角色,可选值包括 system、user、assistant。",
|
539
|
+
"document": "角色,可选值包括 system、user、assistant、 tool。",
|
447
540
|
"example": "user",
|
448
541
|
"member": "string",
|
449
542
|
"name": "Role",
|
@@ -462,6 +555,39 @@
|
|
462
555
|
"required": false,
|
463
556
|
"type": "string",
|
464
557
|
"value_allowed_null": false
|
558
|
+
},
|
559
|
+
{
|
560
|
+
"disabled": false,
|
561
|
+
"document": "多种类型内容(目前支持图片和文本),仅 hunyuan-vision 模型支持\n注意:此字段可能返回 null,表示取不到有效值。",
|
562
|
+
"example": "无",
|
563
|
+
"member": "Content",
|
564
|
+
"name": "Contents",
|
565
|
+
"output_required": false,
|
566
|
+
"required": false,
|
567
|
+
"type": "list",
|
568
|
+
"value_allowed_null": true
|
569
|
+
},
|
570
|
+
{
|
571
|
+
"disabled": false,
|
572
|
+
"document": "当role为tool时传入,标识具体的函数调用\n注意:此字段可能返回 null,表示取不到有效值。",
|
573
|
+
"example": "call_cpv320k2c3m8fgcs8ja0",
|
574
|
+
"member": "string",
|
575
|
+
"name": "ToolCallId",
|
576
|
+
"output_required": false,
|
577
|
+
"required": false,
|
578
|
+
"type": "string",
|
579
|
+
"value_allowed_null": true
|
580
|
+
},
|
581
|
+
{
|
582
|
+
"disabled": false,
|
583
|
+
"document": "模型生成的工具调用,仅 hunyuan-functioncall 模型支持\n注意:此字段可能返回 null,表示取不到有效值。",
|
584
|
+
"example": "无",
|
585
|
+
"member": "ToolCall",
|
586
|
+
"name": "ToolCalls",
|
587
|
+
"output_required": false,
|
588
|
+
"required": false,
|
589
|
+
"type": "list",
|
590
|
+
"value_allowed_null": true
|
465
591
|
}
|
466
592
|
],
|
467
593
|
"usage": "both"
|
@@ -636,6 +762,130 @@
|
|
636
762
|
],
|
637
763
|
"type": "object"
|
638
764
|
},
|
765
|
+
"Tool": {
|
766
|
+
"document": "用户指定模型使用的工具",
|
767
|
+
"members": [
|
768
|
+
{
|
769
|
+
"disabled": false,
|
770
|
+
"document": "工具类型,当前只支持function",
|
771
|
+
"example": "function",
|
772
|
+
"member": "string",
|
773
|
+
"name": "Type",
|
774
|
+
"required": true,
|
775
|
+
"type": "string"
|
776
|
+
},
|
777
|
+
{
|
778
|
+
"disabled": false,
|
779
|
+
"document": "具体要调用的function",
|
780
|
+
"example": "无",
|
781
|
+
"member": "ToolFunction",
|
782
|
+
"name": "Function",
|
783
|
+
"required": true,
|
784
|
+
"type": "object"
|
785
|
+
}
|
786
|
+
],
|
787
|
+
"usage": "in"
|
788
|
+
},
|
789
|
+
"ToolCall": {
|
790
|
+
"document": "模型生成的工具调用",
|
791
|
+
"members": [
|
792
|
+
{
|
793
|
+
"disabled": false,
|
794
|
+
"document": "工具调用id",
|
795
|
+
"example": "call_cpv320k2c3m8fgcs8ja0",
|
796
|
+
"member": "string",
|
797
|
+
"name": "Id",
|
798
|
+
"output_required": true,
|
799
|
+
"required": true,
|
800
|
+
"type": "string",
|
801
|
+
"value_allowed_null": false
|
802
|
+
},
|
803
|
+
{
|
804
|
+
"disabled": false,
|
805
|
+
"document": "工具调用类型,当前只支持function",
|
806
|
+
"example": "function",
|
807
|
+
"member": "string",
|
808
|
+
"name": "Type",
|
809
|
+
"output_required": true,
|
810
|
+
"required": true,
|
811
|
+
"type": "string",
|
812
|
+
"value_allowed_null": false
|
813
|
+
},
|
814
|
+
{
|
815
|
+
"disabled": false,
|
816
|
+
"document": "具体的function调用",
|
817
|
+
"example": "无",
|
818
|
+
"member": "ToolCallFunction",
|
819
|
+
"name": "Function",
|
820
|
+
"output_required": true,
|
821
|
+
"required": true,
|
822
|
+
"type": "object",
|
823
|
+
"value_allowed_null": false
|
824
|
+
}
|
825
|
+
],
|
826
|
+
"usage": "both"
|
827
|
+
},
|
828
|
+
"ToolCallFunction": {
|
829
|
+
"document": "具体的function调用",
|
830
|
+
"members": [
|
831
|
+
{
|
832
|
+
"disabled": false,
|
833
|
+
"document": "function名称",
|
834
|
+
"example": "get_current_weather",
|
835
|
+
"member": "string",
|
836
|
+
"name": "Name",
|
837
|
+
"output_required": true,
|
838
|
+
"required": true,
|
839
|
+
"type": "string",
|
840
|
+
"value_allowed_null": false
|
841
|
+
},
|
842
|
+
{
|
843
|
+
"disabled": false,
|
844
|
+
"document": "function参数,一般为json字符串",
|
845
|
+
"example": "{\\\"location\\\":[\\\"北京\\\",\\\"深圳\\\"],\\\"unit\\\":\\\"celsius\\\"}",
|
846
|
+
"member": "string",
|
847
|
+
"name": "Arguments",
|
848
|
+
"output_required": true,
|
849
|
+
"required": true,
|
850
|
+
"type": "string",
|
851
|
+
"value_allowed_null": false
|
852
|
+
}
|
853
|
+
],
|
854
|
+
"usage": "both"
|
855
|
+
},
|
856
|
+
"ToolFunction": {
|
857
|
+
"document": "function定义",
|
858
|
+
"members": [
|
859
|
+
{
|
860
|
+
"disabled": false,
|
861
|
+
"document": "function名称,只能包含a-z,A-Z,0-9,\\_或-",
|
862
|
+
"example": "get_current_weather",
|
863
|
+
"member": "string",
|
864
|
+
"name": "Name",
|
865
|
+
"required": true,
|
866
|
+
"type": "string"
|
867
|
+
},
|
868
|
+
{
|
869
|
+
"disabled": false,
|
870
|
+
"document": "function参数,一般为json字符串",
|
871
|
+
"example": "无",
|
872
|
+
"member": "string",
|
873
|
+
"name": "Parameters",
|
874
|
+
"required": true,
|
875
|
+
"type": "string"
|
876
|
+
},
|
877
|
+
{
|
878
|
+
"disabled": false,
|
879
|
+
"document": "function的简单描述",
|
880
|
+
"example": "获取当前地点的天气",
|
881
|
+
"member": "string",
|
882
|
+
"name": "Description",
|
883
|
+
"required": false,
|
884
|
+
"type": "string"
|
885
|
+
}
|
886
|
+
],
|
887
|
+
"usage": "in"
|
888
|
+
},
|
639
889
|
"Usage": {
|
640
890
|
"document": "Token 数量",
|
641
891
|
"members": [
|
@@ -30,6 +30,30 @@
|
|
30
30
|
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"TopP\": 0,\n \"Stream\": false,\n \"Temperature\": 0,\n \"Model\": \"hunyuan-pro\",\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"你好呀!\"\n }\n ]\n}",
|
31
31
|
"output": "{\n \"Note\": \"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\n \"Choices\": [\n {\n \"FinishReason\": \"stop\",\n \"Message\": {\n \"Role\": \"assistant\",\n \"Content\": \"你好!很高兴为您提供帮助。请问有什么问题我可以帮助您解决?\"\n }\n }\n ],\n \"Created\": 1710902312,\n \"Id\": \"e4657570-94a5-45f1-896c-a00ac3471d51\",\n \"Usage\": {\n \"PromptTokens\": 3,\n \"CompletionTokens\": 14,\n \"TotalTokens\": 17\n }\n}",
|
32
32
|
"title": "非流式请求成功示例"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例说明hunyuan-functioncall模型如何用非流式方式调用接口。",
|
36
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"TopP\": 0,\n \"Stream\": false,\n \"Temperature\": 0,\n \"Model\": \"hunyuan-functioncall\",\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"北京和深圳今天天气如何\"\n }\n ],\n \"Tools\": [\n {\n \"Type\": \"function\",\n \"Function\": {\n \"Name\": \"get_current_weather\",\n \"Description\": \"获取当前地点的天气\",\n \"Parameters\": \"{\\n \\\"type\\\": \\\"object\\\",\\n \\\"properties\\\": {\\n \\\"location\\\": {\\n \\\"type\\\": \\\"string\\\",\\n \\\"description\\\": \\\"城市名称\\\"\\n },\\n \\\"unit\\\": {\\n \\\"type\\\": \\\"string\\\",\\n \\\"enum\\\": [\\n \\\"celsius\\\",\\n \\\"fahrenheit\\\"\\n ]\\n }\\n },\\n \\\"required\\\": [\\n \\\"location\\\"\\n ]\\n }\"\n }\n }\n ],\n \"ToolChoice\": \"auto\"\n}",
|
37
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e7f5ce41-87fd-4977-803c-54cded687cd9\",\n \"Note\": \"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\n \"Choices\": [\n {\n \"Message\": {\n \"Role\": \"assistant\",\n \"Content\": \"使用get_current_weather工具来获取北京和深圳的当前天气情况。\\n\\t\\n\\t用户想要知道北京和深圳今天的天气情况。用户的请求是关于天气的查询,需要使用天气查询工具来获取信息。\",\n \"ToolCalls\": [\n {\n \"Type\": \"function\",\n \"Function\": {\n \"Name\": \"get_current_weather\",\n \"Arguments\": \"{\\\"location\\\":[\\\"北京\\\",\\\"深圳\\\"],\\\"unit\\\":\\\"celsius\\\"}\"\n }\n }\n ]\n },\n \"FinishReason\": \"tool_calls\"\n }\n ],\n \"Created\": 1719638614,\n \"Usage\": {\n \"PromptTokens\": 6,\n \"CompletionTokens\": 46,\n \"TotalTokens\": 52\n }\n }\n}",
|
38
|
+
"title": "hunyuan-functioncall模型非流式请求成功示例"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例说明hunyuan-functioncall模型如何用流式方式调用接口。",
|
42
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"Model\": \"hunyuan-functioncall\",\n \"Stream\": true,\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"北京和深圳今天天气如何\"\n }\n ],\n \"Tools\": [\n {\n \"Type\": \"function\",\n \"Function\": {\n \"Name\": \"get_current_weather\",\n \"Description\": \"获取当前地点的天气\",\n \"Parameters\": \"{\\n \\\"type\\\": \\\"object\\\",\\n \\\"properties\\\": {\\n \\\"location\\\": {\\n \\\"type\\\": \\\"string\\\",\\n \\\"description\\\": \\\"城市名称\\\"\\n },\\n \\\"unit\\\": {\\n \\\"type\\\": \\\"string\\\",\\n \\\"enum\\\": [\\n \\\"celsius\\\",\\n \\\"fahrenheit\\\"\\n ]\\n }\\n },\\n \\\"required\\\": [\\n \\\"location\\\"\\n ]\\n }\"\n }\n }\n ],\n \"ToolChoice\": \"auto\"\n}",
|
43
|
+
"output": "说明: 对于Delta.ToolCalls每一次的输出值应该以Id为标识对Type、Name、Arguments字段进行合并,本示例中的ToolCalls 最终值为:[{\"Id\": \"call_cq177uk2c3m1v7ep35dg\",\"Type\": \"function\",\"Function\": {\"Name\": \"get_current_weather\", \"Arguments\": \"{\\\"location\\\":[\\\"北京\\\",\\\"深圳\\\"],\\\"unit\\\":\\\"celsius\\\"}\"}}]\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"Delta\":{\"Role\":\"assistant\",\"Content\":\"\",\"ToolCalls\":[{\"Id\":\"call_cq154vk2c3m1v7ep3530\",\"Type\":\"function\",\"Function\":{\"Name\":\"get_current_weather\",\"Arguments\":\"\"}}]},\"FinishReason\":\"\"}],\"Created\":1719816830,\"Id\":\"cd37cf66-089f-4ab2-8118-e18baa238462\",\"Usage\":{\"PromptTokens\":6,\"CompletionTokens\":0,\"TotalTokens\":6}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"Delta\":{\"Role\":\"assistant\",\"Content\":\"\",\"ToolCalls\":[{\"Id\":\"call_cq154vk2c3m1v7ep3530\",\"Type\":\"function\",\"Function\":{\"Name\":\"\",\"Arguments\":\"{\\\"location\\\":\\\"北京\\\"}\"}}]},\"FinishReason\":\"\"}],\"Created\":1719816830,\"Id\":\"cd37cf66-089f-4ab2-8118-e18baa238462\",\"Usage\":{\"PromptTokens\":6,\"CompletionTokens\":0,\"TotalTokens\":6}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"Delta\":{\"Role\":\"assistant\",\"Content\":\"计划使用get_current_weather工具来获取北京和深圳的当前天气。\\n\\t\\n\\t用户想要知道北京和深圳今天的天气情况。用户的请求是关于天气的查询,需要使用天气查询工具来获取信息。\"},\"FinishReason\":\"\"}],\"Created\":1719816830,\"Id\":\"cd37cf66-089f-4ab2-8118-e18baa238462\",\"Usage\":{\"PromptTokens\":6,\"CompletionTokens\":46,\"TotalTokens\":52}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"Delta\":{\"Role\":\"assistant\",\"Content\":\"\"},\"FinishReason\":\"tool_calls\"}],\"Created\":1719816830,\"Id\":\"cd37cf66-089f-4ab2-8118-e18baa238462\",\"Usage\":{\"PromptTokens\":6,\"CompletionTokens\":46,\"TotalTokens\":52}}",
|
44
|
+
"title": "hunyuan-functioncall模型流式请求成功示例"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例说明hunyuan-functioncall模型多轮对话如何调用接口。",
|
48
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"Model\": \"hunyuan-functioncall\",\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"北京和深圳今天天气如何\"\n },\n {\n \"Role\": \"assistant\",\n \"Content\": \"使用get_current_weather工具来获取北京和深圳的当前天气。\\n\\t\\n\\t用户想要知道北京和深圳今天的天气情况。用户提供了两个城市名称,但没有指定温度单位,根据常识,默认用户需要的是摄氏度。\",\n \"ToolCalls\": [\n {\n \"Id\": \"call_cq16e7k2c3m1v7ep35c0\",\n \"Type\": \"function\",\n \"Function\": {\n \"Name\": \"get_current_weather\",\n \"Arguments\": \"{\\\"location\\\":\\\"北京\\\",\\\"unit\\\":\\\"celsius\\\"}\"\n }\n }\n ]\n },\n {\n \"Role\": \"tool\",\n \"ToolCallId\": \"call_cq16e7k2c3m1v7ep35c0\",\n \"Content\": \"{\\\"temperature\\\": 35, \\\"wind\\\": \\\"南\\\", \\\"condition\\\": \\\"暴雨\\\"}\"\n }\n ],\n \"Tools\": [\n {\n \"Type\": \"function\",\n \"Function\": {\n \"Name\": \"get_current_weather\",\n \"Description\": \"获取当前地点的天气\",\n \"Parameters\": \"{\\n \\\"type\\\": \\\"object\\\",\\n \\\"properties\\\": {\\n \\\"location\\\": {\\n \\\"type\\\": \\\"string\\\",\\n \\\"description\\\": \\\"城市名称\\\"\\n },\\n \\\"unit\\\": {\\n \\\"type\\\": \\\"string\\\",\\n \\\"enum\\\": [\\n \\\"celsius\\\",\\n \\\"fahrenheit\\\"\\n ]\\n }\\n },\\n \\\"required\\\": [\\n \\\"location\\\"\\n ]\\n }\"\n }\n }\n ],\n \"ToolChoice\": \"auto\"\n}",
|
49
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5a112898-d802-4bca-8ba2-7ce2388b98e8\",\n \"Note\": \"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\n \"Choices\": [\n {\n \"Message\": {\n \"Role\": \"assistant\",\n \"Content\": \"北京今天的天气情况是:\\n温度:35摄氏度\\n风向:南\\n天气状况:暴雨\\n\\n深圳今天的天气情况是:\\n温度:35摄氏度\\n风向:南\\n天气状况:暴雨\"\n },\n \"FinishReason\": \"stop\"\n }\n ],\n \"Created\": 1719822322,\n \"Id\": \"5a112898-d802-4bca-8ba2-7ce2388b98e8\",\n \"Usage\": {\n \"PromptTokens\": 71,\n \"CompletionTokens\": 42,\n \"TotalTokens\": 113\n }\n }\n}",
|
50
|
+
"title": "hunyuan-functioncall模型多轮对话示例"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例说明hunyuan-vision模型如何调用接口。",
|
54
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"Model\": \"hunyuan-vision\",\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Contents\": [\n {\n \"Type\": \"text\",\n \"Text\": \"下面图片中是哪个公司的 Logo?\"\n },\n {\n \"Type\": \"image_url\",\n \"ImageUrl\": {\n \"Url\": \"https://cloudcache.tencent-cloud.com/qcloud/ui/portal-set/build/About/images/bg-product-series_87d.png\"\n }\n }\n ]\n }\n ],\n \"Stream\": false\n}",
|
55
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a21f9d7e-c18a-438b-bfb4-7941a2adf8ae\",\n \"Note\": \"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\n \"Choices\": [\n {\n \"Message\": {\n \"Role\": \"assistant\",\n \"Content\": \"这张图片中展示的Logo属于腾讯公司。\"\n },\n \"FinishReason\": \"stop\"\n }\n ],\n \"Created\": 1714290436,\n \"Id\": \"a21f9d7e-c18a-438b-bfb4-7941a2adf8ae\",\n \"Usage\": {\n \"PromptTokens\": 7,\n \"CompletionTokens\": 10,\n \"TotalTokens\": 17\n }\n }\n}",
|
56
|
+
"title": "图片理解示例"
|
33
57
|
}
|
34
58
|
],
|
35
59
|
"GetEmbedding": [
|
@@ -1000,7 +1000,7 @@
|
|
1000
1000
|
"members": [
|
1001
1001
|
{
|
1002
1002
|
"disabled": false,
|
1003
|
-
"document": "TWecall类型: 1-家庭安防场景; 2-穿戴类场景; 3-生活娱乐场景; 4-对讲及其它场景",
|
1003
|
+
"document": "TWecall类型: 0-测试激活码; 1-家庭安防场景; 2-穿戴类场景; 3-生活娱乐场景; 4-对讲及其它场景",
|
1004
1004
|
"example": "1",
|
1005
1005
|
"member": "int64",
|
1006
1006
|
"name": "PkgType",
|
@@ -1031,6 +1031,16 @@
|
|
1031
1031
|
"ActivateTWeCallLicenseResponse": {
|
1032
1032
|
"document": "ActivateTWeCallLicense返回参数结构体",
|
1033
1033
|
"members": [
|
1034
|
+
{
|
1035
|
+
"disabled": false,
|
1036
|
+
"document": "设备激活返回数据\n注意:此字段可能返回 null,表示取不到有效值。",
|
1037
|
+
"example": "无",
|
1038
|
+
"member": "DeviceActiveResult",
|
1039
|
+
"name": "DeviceList",
|
1040
|
+
"output_required": false,
|
1041
|
+
"type": "list",
|
1042
|
+
"value_allowed_null": true
|
1043
|
+
},
|
1034
1044
|
{
|
1035
1045
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1036
1046
|
"member": "string",
|
@@ -6973,6 +6983,42 @@
|
|
6973
6983
|
],
|
6974
6984
|
"type": "object"
|
6975
6985
|
},
|
6986
|
+
"DeviceActiveResult": {
|
6987
|
+
"document": "设备激活结果数据",
|
6988
|
+
"members": [
|
6989
|
+
{
|
6990
|
+
"disabled": false,
|
6991
|
+
"document": "模版ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
6992
|
+
"example": "12374tg",
|
6993
|
+
"member": "string",
|
6994
|
+
"name": "ModelId",
|
6995
|
+
"output_required": false,
|
6996
|
+
"type": "string",
|
6997
|
+
"value_allowed_null": true
|
6998
|
+
},
|
6999
|
+
{
|
7000
|
+
"disabled": false,
|
7001
|
+
"document": "SN信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
7002
|
+
"example": "product_device",
|
7003
|
+
"member": "string",
|
7004
|
+
"name": "Sn",
|
7005
|
+
"output_required": false,
|
7006
|
+
"type": "string",
|
7007
|
+
"value_allowed_null": true
|
7008
|
+
},
|
7009
|
+
{
|
7010
|
+
"disabled": false,
|
7011
|
+
"document": "设备激活状态,0:激活成功;9800020:设备数超出限制;9800040:资源包类型和设备类型不匹配;9800039:资源包余额不足;9800037:激活码序号已使用;9800038:设备有效期超出限制;\n注意:此字段可能返回 null,表示取不到有效值。",
|
7012
|
+
"example": "0",
|
7013
|
+
"member": "uint64",
|
7014
|
+
"name": "ErrCode",
|
7015
|
+
"output_required": false,
|
7016
|
+
"type": "int",
|
7017
|
+
"value_allowed_null": true
|
7018
|
+
}
|
7019
|
+
],
|
7020
|
+
"usage": "out"
|
7021
|
+
},
|
6976
7022
|
"DeviceData": {
|
6977
7023
|
"document": "DeviceData",
|
6978
7024
|
"members": [
|
@@ -11890,7 +11890,7 @@
|
|
11890
11890
|
},
|
11891
11891
|
{
|
11892
11892
|
"disabled": false,
|
11893
|
-
"document": "支持的模板类型\n- General
|
11893
|
+
"document": "支持的模板类型\n- General 通用告警(支持所有类型告警)\n- LicensePlate 车牌告警(支持翻拍告警)",
|
11894
11894
|
"example": "无",
|
11895
11895
|
"member": "string",
|
11896
11896
|
"name": "Type",
|
@@ -651,60 +651,70 @@
|
|
651
651
|
{
|
652
652
|
"disabled": false,
|
653
653
|
"document": "实例ID,形如postgres-lnp6j617",
|
654
|
-
"example": "",
|
654
|
+
"example": "无",
|
655
655
|
"member": "string",
|
656
656
|
"name": "DBInstanceId",
|
657
|
-
"
|
657
|
+
"output_required": true,
|
658
658
|
"type": "string",
|
659
659
|
"value_allowed_null": false
|
660
660
|
},
|
661
661
|
{
|
662
662
|
"disabled": false,
|
663
|
-
"document": "
|
664
|
-
"example": "",
|
663
|
+
"document": "账号",
|
664
|
+
"example": "无",
|
665
665
|
"member": "string",
|
666
666
|
"name": "UserName",
|
667
|
-
"
|
667
|
+
"output_required": true,
|
668
668
|
"type": "string",
|
669
669
|
"value_allowed_null": false
|
670
670
|
},
|
671
671
|
{
|
672
672
|
"disabled": false,
|
673
|
-
"document": "
|
674
|
-
"example": "",
|
673
|
+
"document": "账号备注",
|
674
|
+
"example": "无",
|
675
675
|
"member": "string",
|
676
676
|
"name": "Remark",
|
677
|
-
"
|
677
|
+
"output_required": true,
|
678
678
|
"type": "string",
|
679
679
|
"value_allowed_null": false
|
680
680
|
},
|
681
681
|
{
|
682
682
|
"disabled": false,
|
683
|
-
"document": "
|
684
|
-
"example": "",
|
683
|
+
"document": "账号状态。 1-创建中,2-正常,3-修改中,4-密码重置中,5-锁定中,-1-删除中",
|
684
|
+
"example": "无",
|
685
685
|
"member": "int64",
|
686
686
|
"name": "Status",
|
687
|
-
"
|
687
|
+
"output_required": true,
|
688
688
|
"type": "int",
|
689
689
|
"value_allowed_null": false
|
690
690
|
},
|
691
691
|
{
|
692
692
|
"disabled": false,
|
693
|
-
"document": "
|
694
|
-
"example": "",
|
693
|
+
"document": "账号创建时间",
|
694
|
+
"example": "无",
|
695
695
|
"member": "datetime",
|
696
696
|
"name": "CreateTime",
|
697
|
-
"
|
697
|
+
"output_required": true,
|
698
698
|
"type": "string",
|
699
699
|
"value_allowed_null": false
|
700
700
|
},
|
701
701
|
{
|
702
702
|
"disabled": false,
|
703
|
-
"document": "
|
704
|
-
"example": "",
|
703
|
+
"document": "账号最后一次更新时间",
|
704
|
+
"example": "无",
|
705
705
|
"member": "datetime",
|
706
706
|
"name": "UpdateTime",
|
707
|
-
"
|
707
|
+
"output_required": true,
|
708
|
+
"type": "string",
|
709
|
+
"value_allowed_null": false
|
710
|
+
},
|
711
|
+
{
|
712
|
+
"disabled": false,
|
713
|
+
"document": "账号类型",
|
714
|
+
"example": "无",
|
715
|
+
"member": "string",
|
716
|
+
"name": "UserType",
|
717
|
+
"output_required": false,
|
708
718
|
"type": "string",
|
709
719
|
"value_allowed_null": false
|
710
720
|
}
|
@@ -3764,7 +3774,7 @@
|
|
3764
3774
|
},
|
3765
3775
|
{
|
3766
3776
|
"disabled": false,
|
3767
|
-
"document": "分页返回,每页最大返回数目,默认
|
3777
|
+
"document": "分页返回,每页最大返回数目,默认20,取值范围为1-100",
|
3768
3778
|
"example": "20",
|
3769
3779
|
"member": "int64",
|
3770
3780
|
"name": "Limit",
|
@@ -3782,7 +3792,7 @@
|
|
3782
3792
|
},
|
3783
3793
|
{
|
3784
3794
|
"disabled": false,
|
3785
|
-
"document": "
|
3795
|
+
"document": "返回数据按照创建时间或者用户名排序。取值支持createTime、name、updateTime。createTime-按照创建时间排序;name-按照用户名排序; updateTime-按照更新时间排序。",
|
3786
3796
|
"example": "createTime",
|
3787
3797
|
"member": "string",
|
3788
3798
|
"name": "OrderBy",
|
@@ -3816,8 +3826,8 @@
|
|
3816
3826
|
},
|
3817
3827
|
{
|
3818
3828
|
"disabled": false,
|
3819
|
-
"document": "
|
3820
|
-
"example": "
|
3829
|
+
"document": "账号列表详细信息。当CreateTime项为0000-00-00 00:00:00时,意味着对应账号是直连数据库创建的,并非通过CreateAccount接口创建。",
|
3830
|
+
"example": "[{\"CreateTime\":\"0000-00-00 00:00:00\",\"DBInstanceId\":\"postgres-hpe52jnz\",\"Remark\":\"\",\"Status\":2,\"UpdateTime\":\"2024-06-06 21:00:12\",\"UserName\":\"test\",\"UserType\":\"tencentDBSuper\"}]",
|
3821
3831
|
"member": "AccountInfo",
|
3822
3832
|
"name": "Details",
|
3823
3833
|
"output_required": true,
|
@@ -180,10 +180,10 @@
|
|
180
180
|
],
|
181
181
|
"DescribeAccounts": [
|
182
182
|
{
|
183
|
-
"document": "获取实例postgres-
|
184
|
-
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAccounts\n<公共请求参数>\n\n{\n \"DBInstanceId\": \"postgres-
|
185
|
-
"output": "{\n \"Response\": {\n \"
|
186
|
-
"title": "获取实例postgres-
|
183
|
+
"document": "获取实例postgres-hpe52jnz的账户列表",
|
184
|
+
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAccounts\n<公共请求参数>\n\n{\n \"DBInstanceId\": \"postgres-hpe52jnz\"\n}",
|
185
|
+
"output": "{\n \"Response\": {\n \"Details\": [\n {\n \"CreateTime\": \"0000-00-00 00:00:00\",\n \"DBInstanceId\": \"postgres-hpe52jnz\",\n \"Remark\": \"\",\n \"Status\": 2,\n \"UpdateTime\": \"2024-06-06 21:00:12\",\n \"UserName\": \"test\",\n \"UserType\": \"tencentDBSuper\"\n }\n ],\n \"RequestId\": \"1299fe3a-9958-440a-bfd0-e4eb1e71b7eb\",\n \"TotalCount\": 1\n }\n}",
|
186
|
+
"title": "获取实例postgres-hpe52jnz的账户列表"
|
187
187
|
}
|
188
188
|
],
|
189
189
|
"DescribeAvailableRecoveryTime": [
|
@@ -1928,6 +1928,16 @@
|
|
1928
1928
|
"output_required": true,
|
1929
1929
|
"type": "list",
|
1930
1930
|
"value_allowed_null": true
|
1931
|
+
},
|
1932
|
+
{
|
1933
|
+
"disabled": false,
|
1934
|
+
"document": "规则绑定的路径\n注意:此字段可能返回 null,表示取不到有效值。",
|
1935
|
+
"example": "无",
|
1936
|
+
"member": "string",
|
1937
|
+
"name": "Url",
|
1938
|
+
"output_required": false,
|
1939
|
+
"type": "string",
|
1940
|
+
"value_allowed_null": true
|
1931
1941
|
}
|
1932
1942
|
],
|
1933
1943
|
"usage": "out"
|
@@ -3140,6 +3150,16 @@
|
|
3140
3150
|
"output_required": false,
|
3141
3151
|
"type": "string",
|
3142
3152
|
"value_allowed_null": true
|
3153
|
+
},
|
3154
|
+
{
|
3155
|
+
"disabled": false,
|
3156
|
+
"document": "部署CLB监听器的Url\n注意:此字段可能返回 null,表示取不到有效值。",
|
3157
|
+
"example": "[\"/test1\",\"/test2\"]",
|
3158
|
+
"member": "string",
|
3159
|
+
"name": "Url",
|
3160
|
+
"output_required": false,
|
3161
|
+
"type": "list",
|
3162
|
+
"value_allowed_null": true
|
3143
3163
|
}
|
3144
3164
|
],
|
3145
3165
|
"usage": "out"
|
@@ -9960,6 +9980,16 @@
|
|
9960
9980
|
"output_required": false,
|
9961
9981
|
"type": "string",
|
9962
9982
|
"value_allowed_null": true
|
9983
|
+
},
|
9984
|
+
{
|
9985
|
+
"disabled": false,
|
9986
|
+
"document": "监听器Url(clb专属)\n注意:此字段可能返回 null,表示取不到有效值。",
|
9987
|
+
"example": "无",
|
9988
|
+
"member": "string",
|
9989
|
+
"name": "Url",
|
9990
|
+
"output_required": false,
|
9991
|
+
"type": "string",
|
9992
|
+
"value_allowed_null": true
|
9963
9993
|
}
|
9964
9994
|
],
|
9965
9995
|
"usage": "out"
|