tencentcloud-sdk-python-ocr 3.1.203__py2.py3-none-any.whl → 3.1.206__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.
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.203'
17
+ __version__ = '3.1.206'
@@ -4792,14 +4792,14 @@ class DescribeExtractDocAgentJobRequest(AbstractModel):
4792
4792
 
4793
4793
  def __init__(self):
4794
4794
  r"""
4795
- :param _JobId: 任务唯一ID。由服务端生成。
4795
+ :param _JobId: <p>任务唯一ID。由服务端生成。</p>
4796
4796
  :type JobId: str
4797
4797
  """
4798
4798
  self._JobId = None
4799
4799
 
4800
4800
  @property
4801
4801
  def JobId(self):
4802
- r"""任务唯一ID。由服务端生成。
4802
+ r"""<p>任务唯一ID。由服务端生成。</p>
4803
4803
  :rtype: str
4804
4804
  """
4805
4805
  return self._JobId
@@ -4828,18 +4828,20 @@ class DescribeExtractDocAgentJobResponse(AbstractModel):
4828
4828
 
4829
4829
  def __init__(self):
4830
4830
  r"""
4831
- :param _Angle: 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。
4831
+ :param _Angle: <p>图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。</p>
4832
4832
  :type Angle: float
4833
- :param _StructuralList: 配置结构化文本信息。
4833
+ :param _StructuralList: <p>配置结构化文本信息。AgentType为0按照这个结构返回</p>
4834
4834
  :type StructuralList: list of GroupInfo
4835
- :param _ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
4835
+ :param _ErrorCode: <p>任务执行错误码。当任务状态不为 FAIL 时,该值为&quot;&quot;。</p>
4836
4836
  :type ErrorCode: str
4837
- :param _ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
4837
+ :param _ErrorMessage: <p>任务执行错误信息。当任务状态不为 FAIL 时,该值为&quot;&quot;。</p>
4838
4838
  :type ErrorMessage: str
4839
- :param _JobStatus: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
4839
+ :param _JobStatus: <p>任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功</p>
4840
4840
  :type JobStatus: str
4841
- :param _ThoughtContent: 思考过程
4841
+ :param _ThoughtContent: <p>思考过程</p>
4842
4842
  :type ThoughtContent: str
4843
+ :param _AgentResultJson: <p>定制的json结构字符串,主要用于快速定制输出的agent输出结构。推荐用于POC场景</p>
4844
+ :type AgentResultJson: str
4843
4845
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4844
4846
  :type RequestId: str
4845
4847
  """
@@ -4849,11 +4851,12 @@ class DescribeExtractDocAgentJobResponse(AbstractModel):
4849
4851
  self._ErrorMessage = None
4850
4852
  self._JobStatus = None
4851
4853
  self._ThoughtContent = None
4854
+ self._AgentResultJson = None
4852
4855
  self._RequestId = None
4853
4856
 
4854
4857
  @property
4855
4858
  def Angle(self):
4856
- r"""图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。
4859
+ r"""<p>图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。</p>
4857
4860
  :rtype: float
4858
4861
  """
4859
4862
  return self._Angle
@@ -4864,7 +4867,7 @@ class DescribeExtractDocAgentJobResponse(AbstractModel):
4864
4867
 
4865
4868
  @property
4866
4869
  def StructuralList(self):
4867
- r"""配置结构化文本信息。
4870
+ r"""<p>配置结构化文本信息。AgentType为0按照这个结构返回</p>
4868
4871
  :rtype: list of GroupInfo
4869
4872
  """
4870
4873
  return self._StructuralList
@@ -4875,7 +4878,7 @@ class DescribeExtractDocAgentJobResponse(AbstractModel):
4875
4878
 
4876
4879
  @property
4877
4880
  def ErrorCode(self):
4878
- r"""任务执行错误码。当任务状态不为 FAIL 时,该值为""。
4881
+ r"""<p>任务执行错误码。当任务状态不为 FAIL 时,该值为&quot;&quot;。</p>
4879
4882
  :rtype: str
4880
4883
  """
4881
4884
  return self._ErrorCode
@@ -4886,7 +4889,7 @@ class DescribeExtractDocAgentJobResponse(AbstractModel):
4886
4889
 
4887
4890
  @property
4888
4891
  def ErrorMessage(self):
4889
- r"""任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
4892
+ r"""<p>任务执行错误信息。当任务状态不为 FAIL 时,该值为&quot;&quot;。</p>
4890
4893
  :rtype: str
4891
4894
  """
4892
4895
  return self._ErrorMessage
@@ -4897,7 +4900,7 @@ class DescribeExtractDocAgentJobResponse(AbstractModel):
4897
4900
 
4898
4901
  @property
4899
4902
  def JobStatus(self):
4900
- r"""任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
4903
+ r"""<p>任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功</p>
4901
4904
  :rtype: str
4902
4905
  """
4903
4906
  return self._JobStatus
@@ -4908,7 +4911,7 @@ class DescribeExtractDocAgentJobResponse(AbstractModel):
4908
4911
 
4909
4912
  @property
4910
4913
  def ThoughtContent(self):
4911
- r"""思考过程
4914
+ r"""<p>思考过程</p>
4912
4915
  :rtype: str
4913
4916
  """
4914
4917
  return self._ThoughtContent
@@ -4917,6 +4920,17 @@ class DescribeExtractDocAgentJobResponse(AbstractModel):
4917
4920
  def ThoughtContent(self, ThoughtContent):
4918
4921
  self._ThoughtContent = ThoughtContent
4919
4922
 
4923
+ @property
4924
+ def AgentResultJson(self):
4925
+ r"""<p>定制的json结构字符串,主要用于快速定制输出的agent输出结构。推荐用于POC场景</p>
4926
+ :rtype: str
4927
+ """
4928
+ return self._AgentResultJson
4929
+
4930
+ @AgentResultJson.setter
4931
+ def AgentResultJson(self, AgentResultJson):
4932
+ self._AgentResultJson = AgentResultJson
4933
+
4920
4934
  @property
4921
4935
  def RequestId(self):
4922
4936
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -4941,6 +4955,7 @@ class DescribeExtractDocAgentJobResponse(AbstractModel):
4941
4955
  self._ErrorMessage = params.get("ErrorMessage")
4942
4956
  self._JobStatus = params.get("JobStatus")
4943
4957
  self._ThoughtContent = params.get("ThoughtContent")
4958
+ self._AgentResultJson = params.get("AgentResultJson")
4944
4959
  self._RequestId = params.get("RequestId")
4945
4960
 
4946
4961
 
@@ -31050,6 +31065,8 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
31050
31065
  :type FileEndPageNumber: int
31051
31066
  :param _ModelConfig: <p>model_hunyuan:选择混元底座视觉大模型精调抽取任务 model_youtu:选择优图底座多模态大模型精调抽取任务</p>
31052
31067
  :type ModelConfig: str
31068
+ :param _AgentType: <p>agent支持的类型枚举,不同类型输出结果不一样,默认为0</p><p>0:表示标准抽取Agent</p><p>1:表示合同协议分类+抽取+审核Agent</p>
31069
+ :type AgentType: int
31053
31070
  """
31054
31071
  self._ImageBase64 = None
31055
31072
  self._ImageUrl = None
@@ -31059,6 +31076,7 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
31059
31076
  self._FileStartPageNumber = None
31060
31077
  self._FileEndPageNumber = None
31061
31078
  self._ModelConfig = None
31079
+ self._AgentType = None
31062
31080
 
31063
31081
  @property
31064
31082
  def ImageBase64(self):
@@ -31152,6 +31170,17 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
31152
31170
  def ModelConfig(self, ModelConfig):
31153
31171
  self._ModelConfig = ModelConfig
31154
31172
 
31173
+ @property
31174
+ def AgentType(self):
31175
+ r"""<p>agent支持的类型枚举,不同类型输出结果不一样,默认为0</p><p>0:表示标准抽取Agent</p><p>1:表示合同协议分类+抽取+审核Agent</p>
31176
+ :rtype: int
31177
+ """
31178
+ return self._AgentType
31179
+
31180
+ @AgentType.setter
31181
+ def AgentType(self, AgentType):
31182
+ self._AgentType = AgentType
31183
+
31155
31184
 
31156
31185
  def _deserialize(self, params):
31157
31186
  self._ImageBase64 = params.get("ImageBase64")
@@ -31167,6 +31196,7 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
31167
31196
  self._FileStartPageNumber = params.get("FileStartPageNumber")
31168
31197
  self._FileEndPageNumber = params.get("FileEndPageNumber")
31169
31198
  self._ModelConfig = params.get("ModelConfig")
31199
+ self._AgentType = params.get("AgentType")
31170
31200
  memeber_set = set(params.keys())
31171
31201
  for name, value in vars(self).items():
31172
31202
  property_name = name[1:]
@@ -276,7 +276,7 @@ class OcrClient(AbstractClient):
276
276
 
277
277
 
278
278
  def DescribeExtractDocAgentJob(self, request):
279
- r"""模型参数更大,速度更慢。推荐场景:可以接受异步(超过30s返回),样本输入输出token大于2000,长文本类文档建议用异步模型。需要 SubmitExtractDocAgentJob(提交任务)、DescribeExtractDocAgentJob(查询任务)两个接口配套使用,计费发生在提交任务后。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
279
+ r"""模型参数更大,速度更慢。推荐场景:可以接受异步(超过30s返回),样本输入输出token大于2000,长文本类文档建议用异步模型。需要 SubmitExtractDocAgentJob(提交任务)、DescribeExtractDocAgentJob(查询任务)两个接口配套使用,计费发生在提交任务后。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】。
280
280
 
281
281
  :param request: Request instance for DescribeExtractDocAgentJob.
282
282
  :type request: :class:`tencentcloud.ocr.v20181119.models.DescribeExtractDocAgentJobRequest`
@@ -1354,7 +1354,8 @@ class OcrClient(AbstractClient):
1354
1354
 
1355
1355
 
1356
1356
  def QueryEnterpriseBasicInfo(self, request):
1357
- r"""本接口用于查询企业基本信息。输入企业名称或统一社会信用代码,返回企业名称、统一社会信用代码、法定代表人、登记机关、经营期限、经营状态、经营范围、注册地址、主体类型、成立日期、核准日期、行政区划等企业登记信息。部分出参可能无法查得,具体以实际查询结果为准。
1357
+ r"""提供查询企业基本信息的能力。输入企业名称或统一社会信用代码,返回企业名称、统一社会信用代码、法定代表人、登记机关、经营期限、经营状态、经营范围、注册地址、主体类型、成立日期、核准日期、行政区划等企业登记信息。部分出参可能为空或无法查得,具体以实际查询结果为准。
1358
+ 重要提醒:使用本产品需要符合真实企业、真实业务场景、真实用户授权的要求,请联系商务或在线客服登记信息、开通服务。
1358
1359
 
1359
1360
  :param request: Request instance for QueryEnterpriseBasicInfo.
1360
1361
  :type request: :class:`tencentcloud.ocr.v20181119.models.QueryEnterpriseBasicInfoRequest`
@@ -230,7 +230,7 @@ class OcrClient(AbstractClient):
230
230
  opts: Dict = None,
231
231
  ) -> models.DescribeExtractDocAgentJobResponse:
232
232
  """
233
- 模型参数更大,速度更慢。推荐场景:可以接受异步(超过30s返回),样本输入输出token大于2000,长文本类文档建议用异步模型。需要 SubmitExtractDocAgentJob(提交任务)、DescribeExtractDocAgentJob(查询任务)两个接口配套使用,计费发生在提交任务后。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
233
+ 模型参数更大,速度更慢。推荐场景:可以接受异步(超过30s返回),样本输入输出token大于2000,长文本类文档建议用异步模型。需要 SubmitExtractDocAgentJob(提交任务)、DescribeExtractDocAgentJob(查询任务)两个接口配套使用,计费发生在提交任务后。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】。
234
234
  """
235
235
 
236
236
  kwargs = {}
@@ -1128,7 +1128,8 @@ class OcrClient(AbstractClient):
1128
1128
  opts: Dict = None,
1129
1129
  ) -> models.QueryEnterpriseBasicInfoResponse:
1130
1130
  """
1131
- 本接口用于查询企业基本信息。输入企业名称或统一社会信用代码,返回企业名称、统一社会信用代码、法定代表人、登记机关、经营期限、经营状态、经营范围、注册地址、主体类型、成立日期、核准日期、行政区划等企业登记信息。部分出参可能无法查得,具体以实际查询结果为准。
1131
+ 提供查询企业基本信息的能力。输入企业名称或统一社会信用代码,返回企业名称、统一社会信用代码、法定代表人、登记机关、经营期限、经营状态、经营范围、注册地址、主体类型、成立日期、核准日期、行政区划等企业登记信息。部分出参可能为空或无法查得,具体以实际查询结果为准。
1132
+ 重要提醒:使用本产品需要符合真实企业、真实业务场景、真实用户授权的要求,请联系商务或在线客服登记信息、开通服务。
1132
1133
  """
1133
1134
 
1134
1135
  kwargs = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.1.203
3
+ Version: 3.1.206
4
4
  Summary: Tencent Cloud Ocr SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.203
18
+ Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.206
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,11 @@
1
+ tencentcloud/__init__.py,sha256=rplc9-BE59lNdtDmMGLBBkqktuse_VKOGZFiFKPX7GE,630
2
+ tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/ocr/v20181119/errorcodes.py,sha256=yxNqH7RE6Oo05S-0NaYN0A4E6YGSQvipKolYzv-TE8E,7382
5
+ tencentcloud/ocr/v20181119/models.py,sha256=oLFPIXtHmXGV5F8osCw_CLeI6yi6wAK6v5MF1TdTRdg,1491797
6
+ tencentcloud/ocr/v20181119/ocr_client.py,sha256=k0OnBv2LCEX-ghYFyUe6pe0s96O9IqEiS5GSZbVtVsw,125944
7
+ tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=aVz8f6Id4jg1LSDns47T_AOUbWZOy0zJw7gMw0TUPfM,100094
8
+ tencentcloud_sdk_python_ocr-3.1.206.dist-info/METADATA,sha256=0jw3dkUzGiRSREA1Gns3vsRjwdGnAgtFfC9-i8nqluE,1497
9
+ tencentcloud_sdk_python_ocr-3.1.206.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
+ tencentcloud_sdk_python_ocr-3.1.206.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
+ tencentcloud_sdk_python_ocr-3.1.206.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- tencentcloud/__init__.py,sha256=vxhWwM2MhE3xAluX845mY-C2pU1BsoU5GlWPd15e6fM,630
2
- tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/ocr/v20181119/errorcodes.py,sha256=yxNqH7RE6Oo05S-0NaYN0A4E6YGSQvipKolYzv-TE8E,7382
5
- tencentcloud/ocr/v20181119/models.py,sha256=ULSD5qBTbvlRpAc1Z5eglMVg4uwdrPBFH821hvC2AtI,1490263
6
- tencentcloud/ocr/v20181119/ocr_client.py,sha256=1tEuSoR6dP1aYNeYwrSwz5DdvhhNzNCo3ecycO_2hKg,125755
7
- tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=hO05LKya37QIdrsRstIR9-qXkY0m1cswxvRTyojcHvs,99905
8
- tencentcloud_sdk_python_ocr-3.1.203.dist-info/METADATA,sha256=4TEtQvY6OuFBAG5MJAr8-TLSFeHdrWuTktZhxtBrBBo,1497
9
- tencentcloud_sdk_python_ocr-3.1.203.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
- tencentcloud_sdk_python_ocr-3.1.203.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
- tencentcloud_sdk_python_ocr-3.1.203.dist-info/RECORD,,