ProjectAgentSkills.DownloadSkill Method

Definition

Overloads

Name Description
DownloadSkill(String, CancellationToken)

Downloads a skill package.

DownloadSkill(String, String, CancellationToken)

Downloads a skill package, save it to file and return as a Binary data.

DownloadSkill(String, RequestOptions)

[Protocol Method] Downloads a skill package.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

DownloadSkill(String, CancellationToken)

Source:
ProjectAgentSkills.cs

Downloads a skill package.

public virtual System.ClientModel.ClientResult<BinaryData> DownloadSkill(string name, System.Threading.CancellationToken cancellationToken = default);
abstract member DownloadSkill : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<BinaryData>
override this.DownloadSkill : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<BinaryData>
Public Overridable Function DownloadSkill (name As String, Optional cancellationToken As CancellationToken = Nothing) As ClientResult(Of BinaryData)

Parameters

name
String

The unique name of the skill.

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

DownloadSkill(String, String, CancellationToken)

Source:
ProjectAgentSkills.cs

Downloads a skill package, save it to file and return as a Binary data.

public BinaryData DownloadSkill(string skillName, string path, System.Threading.CancellationToken cancellationToken = default);
member this.DownloadSkill : string * string * System.Threading.CancellationToken -> BinaryData
Public Function DownloadSkill (skillName As String, path As String, Optional cancellationToken As CancellationToken = Nothing) As BinaryData

Parameters

skillName
String

The unique name of the skill.

path
String

The path to save the skill content to.

cancellationToken
CancellationToken

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

Returns

Exceptions

skillName or path is null.

skillName or path is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

DownloadSkill(String, RequestOptions)

Source:
ProjectAgentSkills.cs

[Protocol Method] Downloads a skill package.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.ClientResult DownloadSkill(string name, System.ClientModel.Primitives.RequestOptions options);
abstract member DownloadSkill : string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.DownloadSkill : string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function DownloadSkill (name As String, options As RequestOptions) As ClientResult

Parameters

name
String

The unique name of the skill.

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 is null.

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

Service returned a non-success status code.

Applies to