你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Apps - List Available Custom Prebuilt Domains For Culture
获取特定区域性的所有可用预生成域。
GET {Endpoint}/luis/authoring/v3.0-preview/apps/customprebuiltdomains/{culture}
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
culture
|
path | True |
string |
区域性。 |
Endpoint
|
path | True |
string |
支持的认知服务终结点 (协议和主机名,例如: https://westus.api.cognitive.microsoft.com) 。 |
请求头
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
返回特定区域性的所有域及其意向和实体的列表。 |
|
Other Status Codes |
错误响应。 |
安全性
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
示例
Successful Get AvailableCustomPrebuiltDomainsForCulture request
Sample Request
GET {Endpoint}/luis/authoring/v3.0-preview/apps/customprebuiltdomains/{culture}
Sample Response
[
{
"name": "taxi",
"culture": "en-us",
"description": "A custom prebuilt domain for taxi booking",
"examples": "book taxi x on friday at 6 pm, take me to Tinga's from Westin hotel with taxi lux",
"intents": [
{
"name": "book_taxi",
"description": "Requests/Books taxi",
"examples": "book taxi x on friday at 6 pm"
},
{
"name": "cancel_taxi",
"description": "Cancels taxi request",
"examples": "I just called an taxi SUV , please cancel, Cancel my taxi"
}
],
"entities": [
{
"name": "from_place_name",
"description": "Route starting point",
"examples": "find taxi x to take me to 9th street from space needle"
}
]
},
{
"name": "weather",
"culture": "en-us",
"description": "A custom prebuilt domain that gets weather forecast and condition",
"examples": "Show me the weather for this weekend, What's the weather?",
"intents": [
{
"name": "get_forecast",
"description": "Gets weather forecast",
"examples": "What's the weather like tomorrow?"
},
{
"name": "get_condition",
"description": "Gets weather condition",
"examples": "what's the average temperature in India in September?"
}
],
"entities": [
{
"name": "location",
"description": "Location of the queried weather",
"examples": "What's the weather like in Minneapolis"
},
{
"name": "unit",
"description": "Temperature measurement unit",
"examples": "Please change the weather from Fahrenheit to Celsius"
}
]
}
]
定义
名称 | 说明 |
---|---|
Error |
在 API 上调用操作时出现错误响应。 |
Prebuilt |
预生成域。 |
Prebuilt |
ErrorResponse
在 API 上调用操作时出现错误响应。
名称 | 类型 | 说明 |
---|---|---|
errorType |
string |
PrebuiltDomain
预生成域。
名称 | 类型 | 说明 |
---|---|---|
culture |
string |
|
description |
string |
|
entities | ||
examples |
string |
|
intents | ||
name |
string |
PrebuiltDomainItem
名称 | 类型 | 说明 |
---|---|---|
description |
string |
|
examples |
string |
|
name |
string |