Delen via


Apps - List Available Custom Prebuilt Domains For Culture

Hiermee haalt u alle beschikbare vooraf gedefinieerde domeinen voor een specifieke cultuur op.

GET {Endpoint}/luis/api/v2.0/apps/customprebuiltdomains/{culture}

URI-parameters

Name In Vereist Type Description
culture
path True

string

Cultuur.

Endpoint
path True

string

Ondersteunde Cognitive Services-eindpunten (protocol en hostnaam, bijvoorbeeld: https://westus.api.cognitive.microsoft.com).

Aanvraagkoptekst

Name Vereist Type Description
Ocp-Apim-Subscription-Key True

string

Antwoorden

Name Type Description
200 OK

PrebuiltDomain[]

Retourneert een lijst met alle domeinen en hun intenties en entiteiten voor een specifieke cultuur.

Other Status Codes

ErrorResponse

Foutreactie.

Beveiliging

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Voorbeelden

Successful Get AvailableCustomPrebuiltDomainsForCulture request

Voorbeeldaanvraag

GET {Endpoint}/luis/api/v2.0/apps/customprebuiltdomains/{culture}

Voorbeeldrespons

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

Definities

Name Description
ErrorResponse

Foutreactie bij het aanroepen van een bewerking op de API.

PrebuiltDomain

Vooraf gedefinieerd domein.

PrebuiltDomainItem

ErrorResponse

Foutreactie bij het aanroepen van een bewerking op de API.

Name Type Description
errorType

string

PrebuiltDomain

Vooraf gedefinieerd domein.

Name Type Description
culture

string

description

string

entities

PrebuiltDomainItem[]

examples

string

intents

PrebuiltDomainItem[]

name

string

PrebuiltDomainItem

Name Type Description
description

string

examples

string

name

string