AgentAdministrationClient.GenerateAgent 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
| Name | Description |
|---|---|
| GenerateAgent(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. |
| GenerateAgent(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. |
| GenerateAgent(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.
|
GenerateAgent(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.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord> GenerateAgent(Azure.AI.Projects.Agents.GenerateVoiceAgentRequest body, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateAgent : Azure.AI.Projects.Agents.GenerateVoiceAgentRequest * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord>
override this.GenerateAgent : Azure.AI.Projects.Agents.GenerateVoiceAgentRequest * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord>
Public Overridable Function GenerateAgent (body As GenerateVoiceAgentRequest, Optional cancellationToken As CancellationToken = Nothing) As ClientResult(Of ProjectsAgentRecord)
Parameters
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
GenerateAgent(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.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord> GenerateAgent(BinaryData body, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateAgent : BinaryData * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord>
override this.GenerateAgent : BinaryData * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord>
Public Overridable Function GenerateAgent (body As BinaryData, Optional cancellationToken As CancellationToken = Nothing) As 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
GenerateAgent(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.ClientModel.ClientResult GenerateAgent(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member GenerateAgent : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.GenerateAgent : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function GenerateAgent (content As BinaryContent, Optional options As RequestOptions = Nothing) As 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.