你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Apps - List Available Custom Prebuilt Domains

获取所有区域性的所有可用自定义预生成域。

GET {Endpoint}/luis/authoring/v3.0-preview/apps/customprebuiltdomains

URI 参数

名称 必需 类型 说明
Endpoint
path True

string

支持的认知服务终结点 (协议和主机名,例如: https://westus.api.cognitive.microsoft.com) 。

请求头

名称 必需 类型 说明
Ocp-Apim-Subscription-Key True

string

响应

名称 类型 说明
200 OK

PrebuiltDomain[]

返回所有自定义预生成域及其意向/实体表示形式的列表。

Other Status Codes

ErrorResponse

错误响应。

安全性

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

示例

Successful Get Available Custom Prebuilt Domains request

Sample Request

GET {Endpoint}/luis/authoring/v3.0-preview/apps/customprebuiltdomains

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"
      }
    ]
  }
]

定义

名称 说明
ErrorResponse

对 API 调用操作时出现错误响应。

PrebuiltDomain

预生成域。

PrebuiltDomainItem

ErrorResponse

对 API 调用操作时出现错误响应。

名称 类型 说明
errorType

string

PrebuiltDomain

预生成域。

名称 类型 说明
culture

string

description

string

entities

PrebuiltDomainItem[]

examples

string

intents

PrebuiltDomainItem[]

name

string

PrebuiltDomainItem

名称 类型 说明
description

string

examples

string

name

string