Condividi tramite


AgentAdministrationClient.PatchAgentObject Method

Definition

Updates an agent endpoint.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord> PatchAgentObject(string agentName, Azure.AI.Projects.Agents.PatchAgentOptions patchAgentOptions, System.Threading.CancellationToken cancellationToken = default);
abstract member PatchAgentObject : string * Azure.AI.Projects.Agents.PatchAgentOptions * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord>
override this.PatchAgentObject : string * Azure.AI.Projects.Agents.PatchAgentOptions * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.ProjectsAgentRecord>
Public Overridable Function PatchAgentObject (agentName As String, patchAgentOptions As PatchAgentOptions, Optional cancellationToken As CancellationToken = Nothing) As 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.

Applies to