azure.ai.language.conversations package

class azure.ai.language.conversations.ConversationAnalysisClient(endpoint: str, credential: AzureKeyCredential, **kwargs: Any)[source]

This API accepts a request and mediates among multiple language projects, such as LUIS Generally Available, Question Answering, Conversation, and then calls the best candidate service to handle the request. At last, it returns a response with the candidate service’s response as a payload.

In some cases, this API needs to forward requests and responses between the caller and an upstream service.

param endpoint

Supported Cognitive Services endpoint (e.g., https://<resource-name>.api.cognitiveservices.azure.com).

type endpoint

str

param credential

Credential needed for the client to connect to Azure.

type credential

~azure.core.credentials.AzureKeyCredential

analyze_conversations(conversation_analysis_options: ‘_models.ConversationAnalysisOptions’, **kwargs: Any)_models.AnalyzeConversationResult

Analyzes the input conversation utterance.

Parameters

conversation_analysis_options (ConversationAnalysisOptions) – Post body of the request.

Keyword Arguments
  • project_name (str) – The name of the project to use.

  • deployment_name (str) – The name of the specific deployment of the project to use.

Returns

AnalyzeConversationResult

Return type

AnalyzeConversationResult

Raises

~azure.core.exceptions.HttpResponseError

close()None[source]
send_request(request: HttpRequest, **kwargs: Any)HttpResponse[source]

Runs the network request through the client’s chained policies.

>>> from azure.core.rest import HttpRequest
>>> request = HttpRequest("GET", "https://www.example.org/")
<HttpRequest [GET], url: 'https://www.example.org/'>
>>> response = client.send_request(request)
<HttpResponse: 200 OK>

For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart

Parameters

request (HttpRequest) – The network request you want to make. Required.

Keyword Arguments

stream (bool) – Whether the response payload will be streamed. Defaults to False.

Returns

The response of your network call. Does not do error handling on your response.

Return type

HttpResponse