UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

Document Understanding 活动

ML 技能

UiPath.MLServices.Activities.MLSkills

描述

备注:

This activity requires Studio v2019.10 or higher to function properly.

检索 AI Center 服务中可用的 ML 技能并请求这些技能。 在执行 ML 技能的机器人下进行身份验证。

项目兼容性

Windows - Legacy | Windows

如何将输入传递给活动

根据输入类型, ML 技能活动需要以下格式:

JSON

"this is an example of input"
"{""expected-field"":""this is another example""}"
"this is an example of input"
"{""expected-field"":""this is another example""}"

文件

"C:/full/path/to/file.ext"
"C:/full/path/to/file.ext"

文件

"C:/full/path/to/file1.ext,C:/full/path/to/file2.ext,C:/full/path/to/file3.ext"
"C:/full/path/to/file1.ext,C:/full/path/to/file2.ext,C:/full/path/to/file3.ext"

配置

设计器面板

Depending on the chosen Connection mode, you can configure several essential properties directly from the body of the activity.

连接模式:机器人

图 1.通过机器人建立连接模式时的“ML 技能”活动

  • Search - Retrieves the list of available ML Skills and allows you to select the one to which you want to send data. This list is populated after connection.
  • Item - The input that is sent alongside the ML Skill request.
  • JSONResponse - The JSON response returned by the ML Skill request.
连接模式:端点

图 2. 通过端点建立连接模式时的“ML 技能”活动

  • ML Skill URL - The URL of the ML Skill to used for prediction. For instance, you can type https://aicentercom/j123/invoices in the Advanced Editor. Once public, it is visible in the Dataset detail page.
  • API Key - The API Key selected from the AI Center Resource. Once public, it is visible in the Dataset detail page.
  • Test Skill - Test your ML Skill.
  • 输入类型- 从下拉列表中选择的 ML 技能的预期输入类型( JSON文件文件
  • Item - The input that is sent alongside the ML Skill request.
  • JSONResponse - The JSON response returned by the ML Skill request.

属性面板

常见
  • “出错时继续”- 指定在活动引发错误时是否应继续自动化操作。该字段仅支持“布尔值”(True 和 False)。默认值为 False。因此,如果该字段为空且活动引发错误,系统将停止执行项目。如果该值设为“True”,则无论出现何种错误,系统都将继续执行项目。
    备注:

    如果“Try Catch 异常处理”中包含该活动且“出错时继续”属性的值为“True”,则系统在执行项目时不会捕获任何错误。

  • DelayAfter - Delay time (in milliseconds) after executing the activity. This field supports only Int32 variables.
  • DelayBefore - Delay time (in milliseconds) before the activity begins performing any operations. This field supports only Int32 variables.
  • DisplayName - The display name of the activity. This field supports only String variables.
  • NumberOfRetries - The maximum number of attempts to execute the ML Skill request. This field supports only Int32 variables.
  • TimeoutMS - Specifies the amount of time (in milliseconds) to wait for the activity to run before an error is thrown. The default value is 30000 milliseconds (30 seconds). This field supports only Int32 variables.
输入
  • API Key - The API Key of the ML Skill to be predicted. This field supports only String variables.
  • Connection mode - The desired type of connection (Robot or Endpoint)
    • Robot - Deploy the ML Skill inside Robot.
    • Endpoint - Deploy the ML Skill outside Robot.
  • Item - The input string that is sent alongside the ML Skill request. This field supports only strings and String variables.
其他
  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。
  • Skill URL - The URL of the ML Skill to used for prediction. This field supports only String variables.
输出
  • Headers - The headers returned by the ML Skill request. This field supports only String variables.
  • JSONResponse - The JSON response returned by the ML Skill request. This field supports only String variables.
  • StatusCode - The Status Code returned by the ML Skill request. This field supports only Int32 variables.
  • 描述
  • 项目兼容性
  • 如何将输入传递给活动
  • JSON
  • 文件
  • 文件
  • 配置
  • 设计器面板
  • 属性面板

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新