ConversationAuthoringTrainedModel.GetTrainedModelAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetTrainedModelAsync(RequestContext) |
[Protocol Method] Gets the details of a trained model.
|
GetTrainedModelAsync(CancellationToken) |
Gets the details of a trained model. |
GetTrainedModelAsync(RequestContext)
[Protocol Method] Gets the details of a trained model.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler GetTrainedModelAsync(CancellationToken) convenience overload with strongly typed models first.
public virtual System.Threading.Tasks.Task<Azure.Response> GetTrainedModelAsync(Azure.RequestContext context);
abstract member GetTrainedModelAsync : Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetTrainedModelAsync : Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetTrainedModelAsync (context As RequestContext) As Task(Of Response)
Parameters
- context
- RequestContext
The request context, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
Service returned a non-success status code.
Applies to
GetTrainedModelAsync(CancellationToken)
Gets the details of a trained model.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.Conversations.Authoring.ConversationAuthoringProjectTrainedModel>> GetTrainedModelAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetTrainedModelAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.Conversations.Authoring.ConversationAuthoringProjectTrainedModel>>
override this.GetTrainedModelAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.Conversations.Authoring.ConversationAuthoringProjectTrainedModel>>
Public Overridable Function GetTrainedModelAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ConversationAuthoringProjectTrainedModel))
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.