ProjectAgentSkills.UpdateDefaultVersionAsync Method

Definition

Overloads

Name Description
UpdateDefaultVersionAsync(String, BinaryContent, RequestOptions)

[Protocol Method] Modifies the specified skill's configuration.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
UpdateDefaultVersionAsync(String, String, CancellationToken)

Modifies the specified skill's configuration.

UpdateDefaultVersionAsync(String, BinaryContent, RequestOptions)

Source:
ProjectAgentSkills.cs

[Protocol Method] Modifies the specified skill's configuration.

  • 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> UpdateDefaultVersionAsync(string name, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member UpdateDefaultVersionAsync : string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.UpdateDefaultVersionAsync : string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function UpdateDefaultVersionAsync (name As String, content As BinaryContent, Optional options As RequestOptions = Nothing) As Task(Of ClientResult)

Parameters

name
String

The name of the skill to update.

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

name or content is null.

name is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

UpdateDefaultVersionAsync(String, String, CancellationToken)

Source:
ProjectAgentSkills.cs

Modifies the specified skill's configuration.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.AgentsSkill>> UpdateDefaultVersionAsync(string name, string defaultVersion, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateDefaultVersionAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.AgentsSkill>>
override this.UpdateDefaultVersionAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.AgentsSkill>>
Public Overridable Function UpdateDefaultVersionAsync (name As String, defaultVersion As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of AgentsSkill))

Parameters

name
String

The name of the skill to update.

defaultVersion
String

The version identifier that the skill should point to. When set, the skill's default version will resolve to this version instead of the latest.

cancellationToken
CancellationToken

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

Returns

Exceptions

name or defaultVersion is null.

name or defaultVersion is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to