ProjectAgentSkills.CreateSkillFromPackageAsync Method

Definition

Overloads

Name Description
CreateSkillFromPackageAsync(BinaryData, CancellationToken)

Creates a skill from a zip package.

CreateSkillFromPackageAsync(BinaryContent, RequestOptions)

[Protocol Method] Creates a skill from a zip package.

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

Creates a skill from a zip package.

CreateSkillFromPackageAsync(BinaryData, CancellationToken)

Source:
ProjectAgentSkills.cs

Creates a skill from a zip package.

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

Parameters

body
BinaryData

The zip package used to create the skill.

cancellationToken
CancellationToken

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

Returns

Exceptions

body is null.

Service returned a non-success status code.

Applies to

CreateSkillFromPackageAsync(BinaryContent, RequestOptions)

Source:
ProjectAgentSkills.cs

[Protocol Method] Creates a skill from a zip package.

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

Parameters

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

content is null.

Service returned a non-success status code.

Applies to

CreateSkillFromPackageAsync(String, CancellationToken)

Source:
ProjectAgentSkills.cs

Creates a skill from a zip package.

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

Parameters

directoryPath
String

The path to the directory, containing skill description.

cancellationToken
CancellationToken

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

Returns

Exceptions

directoryPath is null.

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

Service returned a non-success status code.

Applies to