azure.ai.language.conversations.authoring.aio package
- class azure.ai.language.conversations.authoring.aio.ConversationAuthoringClient(endpoint: str, credential: AzureKeyCredential | AsyncTokenCredential, *, api_version: str | None = None, **kwargs: Any)[source]
Create a ConversationAuthoringClient.
- Parameters:
endpoint (str) – Supported Cognitive Services endpoint, e.g.
https://<resource-name>.api.cognitiveservices.azure.com.credential (AzureKeyCredential or AsyncTokenCredential) – Key or token credential.
- Keyword Arguments:
api_version (str) – The API version to use for this operation. Default value is
2025-05-15-preview. Note that overriding this default value may result in unsupported behavior.
- async begin_delete_project(project_name: str, **kwargs: Any) → AsyncLROPoller[None]
Deletes a project.
- Parameters:
project_name (str) – The name of the project to use. Required.
- Returns:
An instance of AsyncLROPoller that returns None
- Return type:
AsyncLROPoller[None]
- Raises:
- async create_project(project_name: str, body: CreateProjectOptions | MutableMapping[str, Any] | IO[bytes], **kwargs: Any) → ProjectDetails
Creates a new project or updates an existing one.
- Parameters:
project_name (str) – The new project name. Required.
body (CreateProjectOptions or JSON or IO[bytes]) – The request body. Is one of the following types: CreateProjectOptions, JSON, IO[bytes] Required.
- Returns:
ProjectDetails. The ProjectDetails is compatible with MutableMapping
- Return type:
- Raises:
- async get_export_status(project_name: str, job_id: str, **kwargs: Any) → ExportProjectState
Gets the status of an export job. Once job completes, returns the project metadata, and assets.
- Parameters:
- Returns:
ExportProjectState. The ExportProjectState is compatible with MutableMapping
- Return type:
- Raises:
- async get_import_status(project_name: str, job_id: str, **kwargs: Any) → ImportProjectState
Gets the status for an import.
- Parameters:
- Returns:
ImportProjectState. The ImportProjectState is compatible with MutableMapping
- Return type:
- Raises:
- async get_project(project_name: str, **kwargs: Any) → ProjectDetails
Gets the details of a project.
- Parameters:
project_name (str) – The new project name. Required.
- Returns:
ProjectDetails. The ProjectDetails is compatible with MutableMapping
- Return type:
- Raises:
- get_project_client(project_name: str) → ConversationAuthoringProjectClient[source]
- list_assigned_resource_deployments(*, top: int | None = None, skip: int | None = None, **kwargs: Any) → AsyncItemPaged[AssignedProjectDeploymentsMetadata]
Lists the deployments to which an Azure resource is assigned. This doesn’t return deployments belonging to projects owned by this resource. It only returns deployments belonging to projects owned by other resources.
- Keyword Arguments:
- Returns:
An iterator like instance of AssignedProjectDeploymentsMetadata
- Return type:
- Raises:
- list_projects(*, top: int | None = None, skip: int | None = None, **kwargs: Any) → AsyncItemPaged[ProjectDetails]
Lists the existing projects.
- Keyword Arguments:
- Returns:
An iterator like instance of ProjectDetails
- Return type:
- Raises:
- list_supported_languages(*, project_kind: str | ProjectKind, top: int | None = None, skip: int | None = None, **kwargs: Any) → AsyncItemPaged[SupportedLanguage]
Lists the supported languages for the given project type.
- Keyword Arguments:
project_kind (str or ProjectKind) – The project kind. Known values are: “Conversation”, “Orchestration”, and “CustomConversationSummarization”. Required.
top (int) – The number of result items to return. Default value is None.
skip (int) – The number of result items to skip. Default value is None.
- Returns:
An iterator like instance of SupportedLanguage
- Return type:
- Raises:
- list_supported_prebuilt_entities(*, top: int | None = None, skip: int | None = None, language: str | None = None, multilingual: str | None = None, **kwargs: Any) → AsyncItemPaged[PrebuiltEntity]
Lists the supported prebuilt entities that can be used while creating composed entities.
- Keyword Arguments:
top (int) – The number of result items to return. Default value is None.
skip (int) – The number of result items to skip. Default value is None.
language (str) – The language to get supported prebuilt entities for. Required if multilingual is false. This is BCP-47 representation of a language. For example, use “en” for English, “en-gb” for English (UK), “es” for Spanish etc. Default value is None.
multilingual (str) – Whether to get the support prebuilt entities for multilingual or monolingual projects. If true, the language parameter is ignored. Default value is None.
- Returns:
An iterator like instance of PrebuiltEntity
- Return type:
- Raises:
- list_training_config_versions(*, project_kind: str | ProjectKind, top: int | None = None, skip: int | None = None, **kwargs: Any) → AsyncItemPaged[TrainingConfigVersion]
Lists the support training config version for a given project type.
- Keyword Arguments:
project_kind (str or ProjectKind) – The project kind. Known values are: “Conversation”, “Orchestration”, and “CustomConversationSummarization”. Required.
top (int) – The number of result items to return. Default value is None.
skip (int) – The number of result items to skip. Default value is None.
- Returns:
An iterator like instance of TrainingConfigVersion
- Return type:
- Raises:
- send_request(request: HttpRequest, *, stream: bool = False, **kwargs: Any) → Awaitable[AsyncHttpResponse][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 = await client.send_request(request) <AsyncHttpResponse: 200 OK>
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
- 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:
- class azure.ai.language.conversations.authoring.aio.ConversationAuthoringProjectClient(endpoint: str, credential: AzureKeyCredential | AsyncTokenCredential, *, api_version: str | None = None, project_name: str, **kwargs: Any)[source]
Initialize a ConversationAuthoringProjectClient.
- Parameters:
endpoint (str) – Supported Cognitive Services endpoint, e.g. “https://<resource>.cognitiveservices.azure.com”.
credential (AzureKeyCredential or AsyncTokenCredential) – Credential used to authenticate requests to the service.
- Keyword Arguments:
- send_request(request: HttpRequest, *, stream: bool = False, **kwargs: Any) → Awaitable[AsyncHttpResponse][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 = await client.send_request(request) <AsyncHttpResponse: 200 OK>
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
- 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:
- deployment: DeploymentOperations
Deployment operations group
- exported_model: ExportedModelOperations
Exported model operations group
- project: ProjectOperations
Project operations group
- trained_model: TrainedModelOperations
Trained model operations group
Subpackages
- azure.ai.language.conversations.authoring.aio.operations package
DeploymentOperationsDeploymentOperations.begin_delete_deployment()DeploymentOperations.begin_delete_deployment_from_resources()DeploymentOperations.begin_deploy_project()DeploymentOperations.get_deployment()DeploymentOperations.get_deployment_delete_from_resources_status()DeploymentOperations.get_deployment_status()
ExportedModelOperationsProjectOperationsProjectOperations.begin_assign_project_resources()ProjectOperations.begin_cancel_training_job()ProjectOperations.begin_copy_project()ProjectOperations.begin_export()ProjectOperations.begin_import()ProjectOperations.begin_swap_deployments()ProjectOperations.begin_train()ProjectOperations.begin_unassign_project_resources()ProjectOperations.copy_project_authorization()ProjectOperations.get_assign_project_resources_status()ProjectOperations.get_copy_project_status()ProjectOperations.get_export_status()ProjectOperations.get_project()ProjectOperations.get_project_deletion_status()ProjectOperations.get_swap_deployments_status()ProjectOperations.get_training_status()ProjectOperations.get_unassign_project_resources_status()ProjectOperations.list_deployments()ProjectOperations.list_exported_models()ProjectOperations.list_project_resources()ProjectOperations.list_trained_models()ProjectOperations.list_training_jobs()
TrainedModelOperationsTrainedModelOperations.begin_evaluate_model()TrainedModelOperations.begin_load_snapshot()TrainedModelOperations.delete_trained_model()TrainedModelOperations.get_evaluation_status()TrainedModelOperations.get_load_snapshot_status()TrainedModelOperations.get_model_evaluation_results()TrainedModelOperations.get_model_evaluation_summary()TrainedModelOperations.get_trained_model()