运行YAML模式#

实验性功能

这是一个实验性功能,可能会随时更改。了解更多更多

源JSON模式可以在Run.schema.json找到

YAML语法#

类型

描述

$schema

string

YAML 模式。如果您使用提示流 VS Code 扩展来编写 YAML 文件,在文件顶部包含 $schema 可以让您调用模式和资源补全。

name

string

运行的名称。

flow

string

流程目录的路径。

description

string

运行的描述。

display_name

string

运行的显示名称。

data

string

运行的输入数据。支持本地路径或远程URI(以azureml:或公共URL开头)。注意:远程URI仅支持云运行。

run

string

引用的流程运行名称。例如,您可以针对现有运行运行评估流程。

column_mapping

object

输入列映射,使用${data.xx}来引用数据列,使用${run.inputs.xx}来引用运行的数据列,使用${run.outputs.xx}来引用运行输出列。

connections

object

使用提供的值覆盖节点级别的连接。示例:–connections node1.connection=test_llm_connection node1.deployment_name=gpt-35-turbo

environment_variables

object/string

通过指定属性路径和值来设置的环境变量。示例:{"key1"="${my_connection.api_key}"}。对连接键的值引用将解析为实际值,并且所有指定的环境变量将被设置到os.environ中。

properties

object

运行属性的字典。

tags

object

运行的标签字典。

resources

object

用于计算会话的资源字典。仅支持云运行。有关可配置属性的集合,请参见资源模式

variant

string

运行的变体。

status

string

运行的状态。仅在获取现有运行时可用。如果在创建运行时设置,将不会生效。

identity

object

计算会话的身份配置字典。仅支持云运行。有关可配置属性的集合,请参见Identity Schema

资源模式#

类型

描述

instance_type

string

运行的计算会话的实例类型。

compute

string

计算会话的计算实例。

身份模式#

类型

描述

type

string

身份类型,目前仅支持 manageduser_identity

client_id

string

托管身份的客户端ID,仅在托管身份上可用。

示例#

运行示例可在GitHub仓库中找到。

使用身份示例运行#

# default value
identity:
  type: user_identity

# use workspace primary UAI
identity:
  type: managed

# use specified client_id's UAI
identity:
  type: managed
  client_id: xxx