AgentAdministrationClient.PatchAgentObjectAsync 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.
Updates an agent endpoint.
- 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<Azure.AI.Projects.Agents.ProjectsAgentRecord>> PatchAgentObjectAsync(string agentName, Azure.AI.Projects.Agents.PatchAgentOptions patchAgentOptions, System.Threading.CancellationToken cancellationToken = default);
abstract member PatchAgentObjectAsync : string * Azure.AI.Projects.Agents.PatchAgentOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord>>
override this.PatchAgentObjectAsync : string * Azure.AI.Projects.Agents.PatchAgentOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord>>
Public Overridable Function PatchAgentObjectAsync (agentName As String, patchAgentOptions As PatchAgentOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of ProjectsAgentRecord))
Parameters
- agentName
- String
The name of the agent to retrieve.
- patchAgentOptions
- PatchAgentOptions
The configuration for the agent.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
The response returned from the service.
Exceptions
agentName or patchAgentOptions is null.
agentName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.