gpt4 book ai didi

Azure 自定义任务输入 - 需要有条件

转载 作者:行者123 更新时间:2023-12-03 03:22:35 25 4
gpt4 key购买 nike

我获得了一个 Azure 自定义任务,其输入在其 task.json 文件中定义。我可以根据另一个输入的值进行所需的输入吗?

我的意思的伪代码(第二个输入所需的内容是这里的主要内容):

{
"name": "boolInput",
"type": "boolean",
"required": true,
"label": "Do we require the string input",
"defaultValue": "true",
},
{
"name": "stringInput",
"type": "string",
"required": "boolInput = true",
"label": "My string input",
"defaultValue": "initialVal",
},

该解决方案应适用于 yaml 管道,而不是经典管道。

最佳答案

没有这样的选项。你可以看到here task.json 架构:

"required": {
"type": "boolean",
"description": "Whether the input is a required field (default is false).",
"default": false
},

关于Azure 自定义任务输入 - 需要有条件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76610012/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com