Lingua

AgentAdministrationClient.GenerateAgentAsync Method

Definition

Overloads

Name Description
GenerateAgentAsync(GenerateVoiceAgentRequest, CancellationToken)

Generates and creates an agent from kind-specific high-level inputs. The generated definition remains fully editable through the standard agent versioning operations.

GenerateAgentAsync(BinaryData, CancellationToken)

Generates and creates an agent from kind-specific high-level inputs. The generated definition remains fully editable through the standard agent versioning operations.

GenerateAgentAsync(BinaryContent, RequestOptions)

[Protocol Method] Generates and creates an agent from kind-specific high-level inputs. The generated definition remains fully editable through the standard agent versioning operations.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

GenerateAgentAsync(GenerateVoiceAgentRequest, CancellationToken)

Source:
AgentAdministrationClient.cs

Generates and creates an agent from kind-specific high-level inputs. The generated definition remains fully editable through the standard agent versioning operations.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord>> GenerateAgentAsync(Azure.AI.Projects.Agents.GenerateVoiceAgentRequest body, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateAgentAsync : Azure.AI.Projects.Agents.GenerateVoiceAgentRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord>>
override this.GenerateAgentAsync : Azure.AI.Projects.Agents.GenerateVoiceAgentRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord>>
Public Overridable Function GenerateAgentAsync (body As GenerateVoiceAgentRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of ProjectsAgentRecord))

Parameters

body
GenerateVoiceAgentRequest

The kind-specific inputs for generating and creating an agent.

cancellationToken
CancellationToken

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

Returns

Exceptions

body is null.

Service returned a non-success status code.

Applies to

GenerateAgentAsync(BinaryData, CancellationToken)

Source:
AgentAdministrationClient.cs

Generates and creates an agent from kind-specific high-level inputs. The generated definition remains fully editable through the standard agent versioning operations.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord>> GenerateAgentAsync(BinaryData body, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateAgentAsync : BinaryData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord>>
override this.GenerateAgentAsync : BinaryData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord>>
Public Overridable Function GenerateAgentAsync (body As BinaryData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of ProjectsAgentRecord))

Parameters

body
BinaryData

The kind-specific inputs for generating and creating an agent.

cancellationToken
CancellationToken

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

Returns

Exceptions

body is null.

Service returned a non-success status code.

Applies to

GenerateAgentAsync(BinaryContent, RequestOptions)

Source:
AgentAdministrationClient.cs

[Protocol Method] Generates and creates an agent from kind-specific high-level inputs. The generated definition remains fully editable through the standard agent versioning operations.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> GenerateAgentAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member GenerateAgentAsync : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.GenerateAgentAsync : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function GenerateAgentAsync (content As BinaryContent, Optional options As RequestOptions = Nothing) As Task(Of ClientResult)

Parameters

content
BinaryContent

The content to send as the body of the request.

options
RequestOptions

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