DiscoveryConversationsClient.CreateAsync Method

Definition

Overloads

Name Description
CreateAsync(RequestContent, RequestContext)

[Protocol Method] Creates a Conversation.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
CreateAsync(String, String, String, CancellationToken)

Creates a Conversation.

CreateAsync(RequestContent, RequestContext)

Source:
DiscoveryConversationsClient.cs

[Protocol Method] Creates a Conversation.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> CreateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateAsync (content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

content
RequestContent

The content to send as the body of the request.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

content is null.

Service returned a non-success status code.

Applies to

CreateAsync(String, String, String, CancellationToken)

Source:
DiscoveryConversationsClient.cs

Creates a Conversation.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.DiscoveryConversation>> CreateAsync(string projectName, string investigationName = default, string displayName = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.DiscoveryConversation>>
override this.CreateAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.DiscoveryConversation>>
Public Overridable Function CreateAsync (projectName As String, Optional investigationName As String = Nothing, Optional displayName As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DiscoveryConversation))

Parameters

projectName
String

The name of the associated Project.

investigationName
String

The Name of the associated Investigation.

displayName
String

The title.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

projectName is null.

projectName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to