alibabacloud-quanmiaolightapp20240801 2.9.2__tar.gz → 2.10.0__tar.gz
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.
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/ChangeLog.md +12 -0
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/PKG-INFO +1 -1
- alibabacloud_quanmiaolightapp20240801-2.10.0/alibabacloud_quanmiaolightapp20240801/__init__.py +1 -0
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/alibabacloud_quanmiaolightapp20240801/client.py +496 -0
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/alibabacloud_quanmiaolightapp20240801/models.py +2101 -960
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/alibabacloud_quanmiaolightapp20240801.egg-info/PKG-INFO +1 -1
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/alibabacloud_quanmiaolightapp20240801.egg-info/requires.txt +1 -1
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/setup.py +2 -2
- alibabacloud_quanmiaolightapp20240801-2.9.2/alibabacloud_quanmiaolightapp20240801/__init__.py +0 -1
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/LICENSE +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/MANIFEST.in +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/README-CN.md +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/README.md +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/alibabacloud_quanmiaolightapp20240801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/alibabacloud_quanmiaolightapp20240801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/alibabacloud_quanmiaolightapp20240801.egg-info/top_level.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.9.2 → alibabacloud_quanmiaolightapp20240801-2.10.0}/setup.cfg +0 -0
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
2025-05-30 Version: 2.9.3
|
|
2
|
+
- Update API RunMarketingInformationWriting: add response parameters Body.payload.output.reasonContent.
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
2025-05-29 Version: 2.9.2
|
|
6
|
+
- Update API RunHotTopicChat: add response parameters Body.payload.output.category.
|
|
7
|
+
- Update API RunHotTopicChat: add response parameters Body.payload.output.keyword.
|
|
8
|
+
- Update API RunHotTopicChat: add response parameters Body.payload.output.location.
|
|
9
|
+
- Update API RunHotTopicChat: add response parameters Body.payload.output.hotTopicSummaries.$.pubTime.
|
|
10
|
+
- Update API RunHotTopicChat: add response parameters Body.payload.output.hotTopicSummaries.$.url.
|
|
11
|
+
|
|
12
|
+
|
|
1
13
|
2025-05-27 Version: 2.9.1
|
|
2
14
|
- Update API ListAnalysisTagDetailByTaskId: add response parameters Body.data.$.sourceList.
|
|
3
15
|
- Update API RunEnterpriseVocAnalysis: add request parameters sourceTrace.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: alibabacloud_quanmiaolightapp20240801
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.10.0
|
|
4
4
|
Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
|
|
5
5
|
Home-page: https://github.com/aliyun/alibabacloud-python-sdk
|
|
6
6
|
Author: Alibaba Cloud SDK
|
alibabacloud_quanmiaolightapp20240801-2.10.0/alibabacloud_quanmiaolightapp20240801/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '2.10.0'
|
|
@@ -621,6 +621,114 @@ class Client(OpenApiClient):
|
|
|
621
621
|
headers = {}
|
|
622
622
|
return await self.get_enterprise_voc_analysis_task_with_options_async(workspace_id, request, headers, runtime)
|
|
623
623
|
|
|
624
|
+
def get_essay_correction_task_with_options(
|
|
625
|
+
self,
|
|
626
|
+
workspace_id: str,
|
|
627
|
+
request: quan_miao_light_app_20240801_models.GetEssayCorrectionTaskRequest,
|
|
628
|
+
headers: Dict[str, str],
|
|
629
|
+
runtime: util_models.RuntimeOptions,
|
|
630
|
+
) -> quan_miao_light_app_20240801_models.GetEssayCorrectionTaskResponse:
|
|
631
|
+
"""
|
|
632
|
+
@summary 获取作业批改结果
|
|
633
|
+
|
|
634
|
+
@param request: GetEssayCorrectionTaskRequest
|
|
635
|
+
@param headers: map
|
|
636
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
637
|
+
@return: GetEssayCorrectionTaskResponse
|
|
638
|
+
"""
|
|
639
|
+
UtilClient.validate_model(request)
|
|
640
|
+
query = {}
|
|
641
|
+
if not UtilClient.is_unset(request.task_id):
|
|
642
|
+
query['taskId'] = request.task_id
|
|
643
|
+
req = open_api_models.OpenApiRequest(
|
|
644
|
+
headers=headers,
|
|
645
|
+
query=OpenApiUtilClient.query(query)
|
|
646
|
+
)
|
|
647
|
+
params = open_api_models.Params(
|
|
648
|
+
action='GetEssayCorrectionTask',
|
|
649
|
+
version='2024-08-01',
|
|
650
|
+
protocol='HTTPS',
|
|
651
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/getEssayCorrectionTask',
|
|
652
|
+
method='GET',
|
|
653
|
+
auth_type='AK',
|
|
654
|
+
style='ROA',
|
|
655
|
+
req_body_type='json',
|
|
656
|
+
body_type='json'
|
|
657
|
+
)
|
|
658
|
+
return TeaCore.from_map(
|
|
659
|
+
quan_miao_light_app_20240801_models.GetEssayCorrectionTaskResponse(),
|
|
660
|
+
self.call_api(params, req, runtime)
|
|
661
|
+
)
|
|
662
|
+
|
|
663
|
+
async def get_essay_correction_task_with_options_async(
|
|
664
|
+
self,
|
|
665
|
+
workspace_id: str,
|
|
666
|
+
request: quan_miao_light_app_20240801_models.GetEssayCorrectionTaskRequest,
|
|
667
|
+
headers: Dict[str, str],
|
|
668
|
+
runtime: util_models.RuntimeOptions,
|
|
669
|
+
) -> quan_miao_light_app_20240801_models.GetEssayCorrectionTaskResponse:
|
|
670
|
+
"""
|
|
671
|
+
@summary 获取作业批改结果
|
|
672
|
+
|
|
673
|
+
@param request: GetEssayCorrectionTaskRequest
|
|
674
|
+
@param headers: map
|
|
675
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
676
|
+
@return: GetEssayCorrectionTaskResponse
|
|
677
|
+
"""
|
|
678
|
+
UtilClient.validate_model(request)
|
|
679
|
+
query = {}
|
|
680
|
+
if not UtilClient.is_unset(request.task_id):
|
|
681
|
+
query['taskId'] = request.task_id
|
|
682
|
+
req = open_api_models.OpenApiRequest(
|
|
683
|
+
headers=headers,
|
|
684
|
+
query=OpenApiUtilClient.query(query)
|
|
685
|
+
)
|
|
686
|
+
params = open_api_models.Params(
|
|
687
|
+
action='GetEssayCorrectionTask',
|
|
688
|
+
version='2024-08-01',
|
|
689
|
+
protocol='HTTPS',
|
|
690
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/getEssayCorrectionTask',
|
|
691
|
+
method='GET',
|
|
692
|
+
auth_type='AK',
|
|
693
|
+
style='ROA',
|
|
694
|
+
req_body_type='json',
|
|
695
|
+
body_type='json'
|
|
696
|
+
)
|
|
697
|
+
return TeaCore.from_map(
|
|
698
|
+
quan_miao_light_app_20240801_models.GetEssayCorrectionTaskResponse(),
|
|
699
|
+
await self.call_api_async(params, req, runtime)
|
|
700
|
+
)
|
|
701
|
+
|
|
702
|
+
def get_essay_correction_task(
|
|
703
|
+
self,
|
|
704
|
+
workspace_id: str,
|
|
705
|
+
request: quan_miao_light_app_20240801_models.GetEssayCorrectionTaskRequest,
|
|
706
|
+
) -> quan_miao_light_app_20240801_models.GetEssayCorrectionTaskResponse:
|
|
707
|
+
"""
|
|
708
|
+
@summary 获取作业批改结果
|
|
709
|
+
|
|
710
|
+
@param request: GetEssayCorrectionTaskRequest
|
|
711
|
+
@return: GetEssayCorrectionTaskResponse
|
|
712
|
+
"""
|
|
713
|
+
runtime = util_models.RuntimeOptions()
|
|
714
|
+
headers = {}
|
|
715
|
+
return self.get_essay_correction_task_with_options(workspace_id, request, headers, runtime)
|
|
716
|
+
|
|
717
|
+
async def get_essay_correction_task_async(
|
|
718
|
+
self,
|
|
719
|
+
workspace_id: str,
|
|
720
|
+
request: quan_miao_light_app_20240801_models.GetEssayCorrectionTaskRequest,
|
|
721
|
+
) -> quan_miao_light_app_20240801_models.GetEssayCorrectionTaskResponse:
|
|
722
|
+
"""
|
|
723
|
+
@summary 获取作业批改结果
|
|
724
|
+
|
|
725
|
+
@param request: GetEssayCorrectionTaskRequest
|
|
726
|
+
@return: GetEssayCorrectionTaskResponse
|
|
727
|
+
"""
|
|
728
|
+
runtime = util_models.RuntimeOptions()
|
|
729
|
+
headers = {}
|
|
730
|
+
return await self.get_essay_correction_task_with_options_async(workspace_id, request, headers, runtime)
|
|
731
|
+
|
|
624
732
|
def get_tag_mining_analysis_task_with_options(
|
|
625
733
|
self,
|
|
626
734
|
workspace_id: str,
|
|
@@ -1431,6 +1539,138 @@ class Client(OpenApiClient):
|
|
|
1431
1539
|
headers = {}
|
|
1432
1540
|
return await self.run_enterprise_voc_analysis_with_options_async(workspace_id, request, headers, runtime)
|
|
1433
1541
|
|
|
1542
|
+
def run_essay_correction_with_options(
|
|
1543
|
+
self,
|
|
1544
|
+
workspace_id: str,
|
|
1545
|
+
request: quan_miao_light_app_20240801_models.RunEssayCorrectionRequest,
|
|
1546
|
+
headers: Dict[str, str],
|
|
1547
|
+
runtime: util_models.RuntimeOptions,
|
|
1548
|
+
) -> quan_miao_light_app_20240801_models.RunEssayCorrectionResponse:
|
|
1549
|
+
"""
|
|
1550
|
+
@summary 作业批改
|
|
1551
|
+
|
|
1552
|
+
@param request: RunEssayCorrectionRequest
|
|
1553
|
+
@param headers: map
|
|
1554
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1555
|
+
@return: RunEssayCorrectionResponse
|
|
1556
|
+
"""
|
|
1557
|
+
UtilClient.validate_model(request)
|
|
1558
|
+
body = {}
|
|
1559
|
+
if not UtilClient.is_unset(request.answer):
|
|
1560
|
+
body['answer'] = request.answer
|
|
1561
|
+
if not UtilClient.is_unset(request.grade):
|
|
1562
|
+
body['grade'] = request.grade
|
|
1563
|
+
if not UtilClient.is_unset(request.model_id):
|
|
1564
|
+
body['modelId'] = request.model_id
|
|
1565
|
+
if not UtilClient.is_unset(request.other_review_points):
|
|
1566
|
+
body['otherReviewPoints'] = request.other_review_points
|
|
1567
|
+
if not UtilClient.is_unset(request.question):
|
|
1568
|
+
body['question'] = request.question
|
|
1569
|
+
if not UtilClient.is_unset(request.subject):
|
|
1570
|
+
body['subject'] = request.subject
|
|
1571
|
+
if not UtilClient.is_unset(request.total_score):
|
|
1572
|
+
body['totalScore'] = request.total_score
|
|
1573
|
+
req = open_api_models.OpenApiRequest(
|
|
1574
|
+
headers=headers,
|
|
1575
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
1576
|
+
)
|
|
1577
|
+
params = open_api_models.Params(
|
|
1578
|
+
action='RunEssayCorrection',
|
|
1579
|
+
version='2024-08-01',
|
|
1580
|
+
protocol='HTTPS',
|
|
1581
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runEssayCorrection',
|
|
1582
|
+
method='POST',
|
|
1583
|
+
auth_type='AK',
|
|
1584
|
+
style='ROA',
|
|
1585
|
+
req_body_type='formData',
|
|
1586
|
+
body_type='json'
|
|
1587
|
+
)
|
|
1588
|
+
return TeaCore.from_map(
|
|
1589
|
+
quan_miao_light_app_20240801_models.RunEssayCorrectionResponse(),
|
|
1590
|
+
self.call_api(params, req, runtime)
|
|
1591
|
+
)
|
|
1592
|
+
|
|
1593
|
+
async def run_essay_correction_with_options_async(
|
|
1594
|
+
self,
|
|
1595
|
+
workspace_id: str,
|
|
1596
|
+
request: quan_miao_light_app_20240801_models.RunEssayCorrectionRequest,
|
|
1597
|
+
headers: Dict[str, str],
|
|
1598
|
+
runtime: util_models.RuntimeOptions,
|
|
1599
|
+
) -> quan_miao_light_app_20240801_models.RunEssayCorrectionResponse:
|
|
1600
|
+
"""
|
|
1601
|
+
@summary 作业批改
|
|
1602
|
+
|
|
1603
|
+
@param request: RunEssayCorrectionRequest
|
|
1604
|
+
@param headers: map
|
|
1605
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1606
|
+
@return: RunEssayCorrectionResponse
|
|
1607
|
+
"""
|
|
1608
|
+
UtilClient.validate_model(request)
|
|
1609
|
+
body = {}
|
|
1610
|
+
if not UtilClient.is_unset(request.answer):
|
|
1611
|
+
body['answer'] = request.answer
|
|
1612
|
+
if not UtilClient.is_unset(request.grade):
|
|
1613
|
+
body['grade'] = request.grade
|
|
1614
|
+
if not UtilClient.is_unset(request.model_id):
|
|
1615
|
+
body['modelId'] = request.model_id
|
|
1616
|
+
if not UtilClient.is_unset(request.other_review_points):
|
|
1617
|
+
body['otherReviewPoints'] = request.other_review_points
|
|
1618
|
+
if not UtilClient.is_unset(request.question):
|
|
1619
|
+
body['question'] = request.question
|
|
1620
|
+
if not UtilClient.is_unset(request.subject):
|
|
1621
|
+
body['subject'] = request.subject
|
|
1622
|
+
if not UtilClient.is_unset(request.total_score):
|
|
1623
|
+
body['totalScore'] = request.total_score
|
|
1624
|
+
req = open_api_models.OpenApiRequest(
|
|
1625
|
+
headers=headers,
|
|
1626
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
1627
|
+
)
|
|
1628
|
+
params = open_api_models.Params(
|
|
1629
|
+
action='RunEssayCorrection',
|
|
1630
|
+
version='2024-08-01',
|
|
1631
|
+
protocol='HTTPS',
|
|
1632
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runEssayCorrection',
|
|
1633
|
+
method='POST',
|
|
1634
|
+
auth_type='AK',
|
|
1635
|
+
style='ROA',
|
|
1636
|
+
req_body_type='formData',
|
|
1637
|
+
body_type='json'
|
|
1638
|
+
)
|
|
1639
|
+
return TeaCore.from_map(
|
|
1640
|
+
quan_miao_light_app_20240801_models.RunEssayCorrectionResponse(),
|
|
1641
|
+
await self.call_api_async(params, req, runtime)
|
|
1642
|
+
)
|
|
1643
|
+
|
|
1644
|
+
def run_essay_correction(
|
|
1645
|
+
self,
|
|
1646
|
+
workspace_id: str,
|
|
1647
|
+
request: quan_miao_light_app_20240801_models.RunEssayCorrectionRequest,
|
|
1648
|
+
) -> quan_miao_light_app_20240801_models.RunEssayCorrectionResponse:
|
|
1649
|
+
"""
|
|
1650
|
+
@summary 作业批改
|
|
1651
|
+
|
|
1652
|
+
@param request: RunEssayCorrectionRequest
|
|
1653
|
+
@return: RunEssayCorrectionResponse
|
|
1654
|
+
"""
|
|
1655
|
+
runtime = util_models.RuntimeOptions()
|
|
1656
|
+
headers = {}
|
|
1657
|
+
return self.run_essay_correction_with_options(workspace_id, request, headers, runtime)
|
|
1658
|
+
|
|
1659
|
+
async def run_essay_correction_async(
|
|
1660
|
+
self,
|
|
1661
|
+
workspace_id: str,
|
|
1662
|
+
request: quan_miao_light_app_20240801_models.RunEssayCorrectionRequest,
|
|
1663
|
+
) -> quan_miao_light_app_20240801_models.RunEssayCorrectionResponse:
|
|
1664
|
+
"""
|
|
1665
|
+
@summary 作业批改
|
|
1666
|
+
|
|
1667
|
+
@param request: RunEssayCorrectionRequest
|
|
1668
|
+
@return: RunEssayCorrectionResponse
|
|
1669
|
+
"""
|
|
1670
|
+
runtime = util_models.RuntimeOptions()
|
|
1671
|
+
headers = {}
|
|
1672
|
+
return await self.run_essay_correction_with_options_async(workspace_id, request, headers, runtime)
|
|
1673
|
+
|
|
1434
1674
|
def run_hot_topic_chat_with_options(
|
|
1435
1675
|
self,
|
|
1436
1676
|
workspace_id: str,
|
|
@@ -2139,6 +2379,122 @@ class Client(OpenApiClient):
|
|
|
2139
2379
|
headers = {}
|
|
2140
2380
|
return await self.run_network_content_audit_with_options_async(workspace_id, request, headers, runtime)
|
|
2141
2381
|
|
|
2382
|
+
def run_ocr_parse_with_options(
|
|
2383
|
+
self,
|
|
2384
|
+
workspace_id: str,
|
|
2385
|
+
request: quan_miao_light_app_20240801_models.RunOcrParseRequest,
|
|
2386
|
+
headers: Dict[str, str],
|
|
2387
|
+
runtime: util_models.RuntimeOptions,
|
|
2388
|
+
) -> quan_miao_light_app_20240801_models.RunOcrParseResponse:
|
|
2389
|
+
"""
|
|
2390
|
+
@summary 作业批改
|
|
2391
|
+
|
|
2392
|
+
@param request: RunOcrParseRequest
|
|
2393
|
+
@param headers: map
|
|
2394
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2395
|
+
@return: RunOcrParseResponse
|
|
2396
|
+
"""
|
|
2397
|
+
UtilClient.validate_model(request)
|
|
2398
|
+
body = {}
|
|
2399
|
+
if not UtilClient.is_unset(request.file_key):
|
|
2400
|
+
body['fileKey'] = request.file_key
|
|
2401
|
+
if not UtilClient.is_unset(request.model_id):
|
|
2402
|
+
body['modelId'] = request.model_id
|
|
2403
|
+
if not UtilClient.is_unset(request.url):
|
|
2404
|
+
body['url'] = request.url
|
|
2405
|
+
req = open_api_models.OpenApiRequest(
|
|
2406
|
+
headers=headers,
|
|
2407
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
2408
|
+
)
|
|
2409
|
+
params = open_api_models.Params(
|
|
2410
|
+
action='RunOcrParse',
|
|
2411
|
+
version='2024-08-01',
|
|
2412
|
+
protocol='HTTPS',
|
|
2413
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runOcrParse',
|
|
2414
|
+
method='POST',
|
|
2415
|
+
auth_type='AK',
|
|
2416
|
+
style='ROA',
|
|
2417
|
+
req_body_type='formData',
|
|
2418
|
+
body_type='json'
|
|
2419
|
+
)
|
|
2420
|
+
return TeaCore.from_map(
|
|
2421
|
+
quan_miao_light_app_20240801_models.RunOcrParseResponse(),
|
|
2422
|
+
self.call_api(params, req, runtime)
|
|
2423
|
+
)
|
|
2424
|
+
|
|
2425
|
+
async def run_ocr_parse_with_options_async(
|
|
2426
|
+
self,
|
|
2427
|
+
workspace_id: str,
|
|
2428
|
+
request: quan_miao_light_app_20240801_models.RunOcrParseRequest,
|
|
2429
|
+
headers: Dict[str, str],
|
|
2430
|
+
runtime: util_models.RuntimeOptions,
|
|
2431
|
+
) -> quan_miao_light_app_20240801_models.RunOcrParseResponse:
|
|
2432
|
+
"""
|
|
2433
|
+
@summary 作业批改
|
|
2434
|
+
|
|
2435
|
+
@param request: RunOcrParseRequest
|
|
2436
|
+
@param headers: map
|
|
2437
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2438
|
+
@return: RunOcrParseResponse
|
|
2439
|
+
"""
|
|
2440
|
+
UtilClient.validate_model(request)
|
|
2441
|
+
body = {}
|
|
2442
|
+
if not UtilClient.is_unset(request.file_key):
|
|
2443
|
+
body['fileKey'] = request.file_key
|
|
2444
|
+
if not UtilClient.is_unset(request.model_id):
|
|
2445
|
+
body['modelId'] = request.model_id
|
|
2446
|
+
if not UtilClient.is_unset(request.url):
|
|
2447
|
+
body['url'] = request.url
|
|
2448
|
+
req = open_api_models.OpenApiRequest(
|
|
2449
|
+
headers=headers,
|
|
2450
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
2451
|
+
)
|
|
2452
|
+
params = open_api_models.Params(
|
|
2453
|
+
action='RunOcrParse',
|
|
2454
|
+
version='2024-08-01',
|
|
2455
|
+
protocol='HTTPS',
|
|
2456
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runOcrParse',
|
|
2457
|
+
method='POST',
|
|
2458
|
+
auth_type='AK',
|
|
2459
|
+
style='ROA',
|
|
2460
|
+
req_body_type='formData',
|
|
2461
|
+
body_type='json'
|
|
2462
|
+
)
|
|
2463
|
+
return TeaCore.from_map(
|
|
2464
|
+
quan_miao_light_app_20240801_models.RunOcrParseResponse(),
|
|
2465
|
+
await self.call_api_async(params, req, runtime)
|
|
2466
|
+
)
|
|
2467
|
+
|
|
2468
|
+
def run_ocr_parse(
|
|
2469
|
+
self,
|
|
2470
|
+
workspace_id: str,
|
|
2471
|
+
request: quan_miao_light_app_20240801_models.RunOcrParseRequest,
|
|
2472
|
+
) -> quan_miao_light_app_20240801_models.RunOcrParseResponse:
|
|
2473
|
+
"""
|
|
2474
|
+
@summary 作业批改
|
|
2475
|
+
|
|
2476
|
+
@param request: RunOcrParseRequest
|
|
2477
|
+
@return: RunOcrParseResponse
|
|
2478
|
+
"""
|
|
2479
|
+
runtime = util_models.RuntimeOptions()
|
|
2480
|
+
headers = {}
|
|
2481
|
+
return self.run_ocr_parse_with_options(workspace_id, request, headers, runtime)
|
|
2482
|
+
|
|
2483
|
+
async def run_ocr_parse_async(
|
|
2484
|
+
self,
|
|
2485
|
+
workspace_id: str,
|
|
2486
|
+
request: quan_miao_light_app_20240801_models.RunOcrParseRequest,
|
|
2487
|
+
) -> quan_miao_light_app_20240801_models.RunOcrParseResponse:
|
|
2488
|
+
"""
|
|
2489
|
+
@summary 作业批改
|
|
2490
|
+
|
|
2491
|
+
@param request: RunOcrParseRequest
|
|
2492
|
+
@return: RunOcrParseResponse
|
|
2493
|
+
"""
|
|
2494
|
+
runtime = util_models.RuntimeOptions()
|
|
2495
|
+
headers = {}
|
|
2496
|
+
return await self.run_ocr_parse_with_options_async(workspace_id, request, headers, runtime)
|
|
2497
|
+
|
|
2142
2498
|
def run_script_chat_with_options(
|
|
2143
2499
|
self,
|
|
2144
2500
|
workspace_id: str,
|
|
@@ -3267,6 +3623,146 @@ class Client(OpenApiClient):
|
|
|
3267
3623
|
headers = {}
|
|
3268
3624
|
return await self.submit_enterprise_voc_analysis_task_with_options_async(workspace_id, request, headers, runtime)
|
|
3269
3625
|
|
|
3626
|
+
def submit_essay_correction_task_with_options(
|
|
3627
|
+
self,
|
|
3628
|
+
workspace_id: str,
|
|
3629
|
+
tmp_req: quan_miao_light_app_20240801_models.SubmitEssayCorrectionTaskRequest,
|
|
3630
|
+
headers: Dict[str, str],
|
|
3631
|
+
runtime: util_models.RuntimeOptions,
|
|
3632
|
+
) -> quan_miao_light_app_20240801_models.SubmitEssayCorrectionTaskResponse:
|
|
3633
|
+
"""
|
|
3634
|
+
@summary 提交批改任务
|
|
3635
|
+
|
|
3636
|
+
@param tmp_req: SubmitEssayCorrectionTaskRequest
|
|
3637
|
+
@param headers: map
|
|
3638
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
3639
|
+
@return: SubmitEssayCorrectionTaskResponse
|
|
3640
|
+
"""
|
|
3641
|
+
UtilClient.validate_model(tmp_req)
|
|
3642
|
+
request = quan_miao_light_app_20240801_models.SubmitEssayCorrectionTaskShrinkRequest()
|
|
3643
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
3644
|
+
if not UtilClient.is_unset(tmp_req.tasks):
|
|
3645
|
+
request.tasks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tasks, 'tasks', 'json')
|
|
3646
|
+
body = {}
|
|
3647
|
+
if not UtilClient.is_unset(request.grade):
|
|
3648
|
+
body['grade'] = request.grade
|
|
3649
|
+
if not UtilClient.is_unset(request.model_id):
|
|
3650
|
+
body['modelId'] = request.model_id
|
|
3651
|
+
if not UtilClient.is_unset(request.other_review_points):
|
|
3652
|
+
body['otherReviewPoints'] = request.other_review_points
|
|
3653
|
+
if not UtilClient.is_unset(request.question):
|
|
3654
|
+
body['question'] = request.question
|
|
3655
|
+
if not UtilClient.is_unset(request.subject):
|
|
3656
|
+
body['subject'] = request.subject
|
|
3657
|
+
if not UtilClient.is_unset(request.tasks_shrink):
|
|
3658
|
+
body['tasks'] = request.tasks_shrink
|
|
3659
|
+
if not UtilClient.is_unset(request.total_score):
|
|
3660
|
+
body['totalScore'] = request.total_score
|
|
3661
|
+
req = open_api_models.OpenApiRequest(
|
|
3662
|
+
headers=headers,
|
|
3663
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
3664
|
+
)
|
|
3665
|
+
params = open_api_models.Params(
|
|
3666
|
+
action='SubmitEssayCorrectionTask',
|
|
3667
|
+
version='2024-08-01',
|
|
3668
|
+
protocol='HTTPS',
|
|
3669
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/submitEssayCorrectionTask',
|
|
3670
|
+
method='POST',
|
|
3671
|
+
auth_type='AK',
|
|
3672
|
+
style='ROA',
|
|
3673
|
+
req_body_type='formData',
|
|
3674
|
+
body_type='json'
|
|
3675
|
+
)
|
|
3676
|
+
return TeaCore.from_map(
|
|
3677
|
+
quan_miao_light_app_20240801_models.SubmitEssayCorrectionTaskResponse(),
|
|
3678
|
+
self.call_api(params, req, runtime)
|
|
3679
|
+
)
|
|
3680
|
+
|
|
3681
|
+
async def submit_essay_correction_task_with_options_async(
|
|
3682
|
+
self,
|
|
3683
|
+
workspace_id: str,
|
|
3684
|
+
tmp_req: quan_miao_light_app_20240801_models.SubmitEssayCorrectionTaskRequest,
|
|
3685
|
+
headers: Dict[str, str],
|
|
3686
|
+
runtime: util_models.RuntimeOptions,
|
|
3687
|
+
) -> quan_miao_light_app_20240801_models.SubmitEssayCorrectionTaskResponse:
|
|
3688
|
+
"""
|
|
3689
|
+
@summary 提交批改任务
|
|
3690
|
+
|
|
3691
|
+
@param tmp_req: SubmitEssayCorrectionTaskRequest
|
|
3692
|
+
@param headers: map
|
|
3693
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
3694
|
+
@return: SubmitEssayCorrectionTaskResponse
|
|
3695
|
+
"""
|
|
3696
|
+
UtilClient.validate_model(tmp_req)
|
|
3697
|
+
request = quan_miao_light_app_20240801_models.SubmitEssayCorrectionTaskShrinkRequest()
|
|
3698
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
3699
|
+
if not UtilClient.is_unset(tmp_req.tasks):
|
|
3700
|
+
request.tasks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tasks, 'tasks', 'json')
|
|
3701
|
+
body = {}
|
|
3702
|
+
if not UtilClient.is_unset(request.grade):
|
|
3703
|
+
body['grade'] = request.grade
|
|
3704
|
+
if not UtilClient.is_unset(request.model_id):
|
|
3705
|
+
body['modelId'] = request.model_id
|
|
3706
|
+
if not UtilClient.is_unset(request.other_review_points):
|
|
3707
|
+
body['otherReviewPoints'] = request.other_review_points
|
|
3708
|
+
if not UtilClient.is_unset(request.question):
|
|
3709
|
+
body['question'] = request.question
|
|
3710
|
+
if not UtilClient.is_unset(request.subject):
|
|
3711
|
+
body['subject'] = request.subject
|
|
3712
|
+
if not UtilClient.is_unset(request.tasks_shrink):
|
|
3713
|
+
body['tasks'] = request.tasks_shrink
|
|
3714
|
+
if not UtilClient.is_unset(request.total_score):
|
|
3715
|
+
body['totalScore'] = request.total_score
|
|
3716
|
+
req = open_api_models.OpenApiRequest(
|
|
3717
|
+
headers=headers,
|
|
3718
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
3719
|
+
)
|
|
3720
|
+
params = open_api_models.Params(
|
|
3721
|
+
action='SubmitEssayCorrectionTask',
|
|
3722
|
+
version='2024-08-01',
|
|
3723
|
+
protocol='HTTPS',
|
|
3724
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/submitEssayCorrectionTask',
|
|
3725
|
+
method='POST',
|
|
3726
|
+
auth_type='AK',
|
|
3727
|
+
style='ROA',
|
|
3728
|
+
req_body_type='formData',
|
|
3729
|
+
body_type='json'
|
|
3730
|
+
)
|
|
3731
|
+
return TeaCore.from_map(
|
|
3732
|
+
quan_miao_light_app_20240801_models.SubmitEssayCorrectionTaskResponse(),
|
|
3733
|
+
await self.call_api_async(params, req, runtime)
|
|
3734
|
+
)
|
|
3735
|
+
|
|
3736
|
+
def submit_essay_correction_task(
|
|
3737
|
+
self,
|
|
3738
|
+
workspace_id: str,
|
|
3739
|
+
request: quan_miao_light_app_20240801_models.SubmitEssayCorrectionTaskRequest,
|
|
3740
|
+
) -> quan_miao_light_app_20240801_models.SubmitEssayCorrectionTaskResponse:
|
|
3741
|
+
"""
|
|
3742
|
+
@summary 提交批改任务
|
|
3743
|
+
|
|
3744
|
+
@param request: SubmitEssayCorrectionTaskRequest
|
|
3745
|
+
@return: SubmitEssayCorrectionTaskResponse
|
|
3746
|
+
"""
|
|
3747
|
+
runtime = util_models.RuntimeOptions()
|
|
3748
|
+
headers = {}
|
|
3749
|
+
return self.submit_essay_correction_task_with_options(workspace_id, request, headers, runtime)
|
|
3750
|
+
|
|
3751
|
+
async def submit_essay_correction_task_async(
|
|
3752
|
+
self,
|
|
3753
|
+
workspace_id: str,
|
|
3754
|
+
request: quan_miao_light_app_20240801_models.SubmitEssayCorrectionTaskRequest,
|
|
3755
|
+
) -> quan_miao_light_app_20240801_models.SubmitEssayCorrectionTaskResponse:
|
|
3756
|
+
"""
|
|
3757
|
+
@summary 提交批改任务
|
|
3758
|
+
|
|
3759
|
+
@param request: SubmitEssayCorrectionTaskRequest
|
|
3760
|
+
@return: SubmitEssayCorrectionTaskResponse
|
|
3761
|
+
"""
|
|
3762
|
+
runtime = util_models.RuntimeOptions()
|
|
3763
|
+
headers = {}
|
|
3764
|
+
return await self.submit_essay_correction_task_with_options_async(workspace_id, request, headers, runtime)
|
|
3765
|
+
|
|
3270
3766
|
def submit_tag_mining_analysis_task_with_options(
|
|
3271
3767
|
self,
|
|
3272
3768
|
workspace_id: str,
|