ProjectAgentSkills.UpdateSkillAsync Method

Definition

Overloads

Name Description
UpdateSkillAsync(String, BinaryContent, RequestOptions)

[Protocol Method] Updates an existing skill.

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

Updates an existing skill.

UpdateSkillAsync(String, BinaryContent, RequestOptions)

Source:
ProjectAgentSkills.cs

[Protocol Method] Updates an existing skill.

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

Parameters

name
String

The unique name of the skill.

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

UpdateSkillAsync(String, String, String, IDictionary<String,String>, CancellationToken)

Source:
ProjectAgentSkills.cs

Updates an existing skill.

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

Parameters

name
String

The unique name of the skill.

description
String

A human-readable description of the skill.

instructions
String

Instructions that define the behavior of the skill.

metadata
IDictionary<String,String>

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

cancellationToken
CancellationToken

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

Returns

Exceptions

name is null.

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

Service returned a non-success status code.

Applies to