ProjectAgentSkills.CreateSkillVersionFromFiles Method

Definition

Overloads

Name Description
CreateSkillVersionFromFiles(String, String, CancellationToken)

Creates a skill from a zip package.

CreateSkillVersionFromFiles(String, BinaryContent, String, RequestOptions)

[Protocol Method] Creates a new version of a skill from uploaded files via multipart form data.

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

CreateSkillVersionFromFiles(String, String, CancellationToken)

Source:
ProjectAgentSkills.cs

Creates a skill from a zip package.

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

Parameters

name
String

The name of the skill.

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

CreateSkillVersionFromFiles(String, BinaryContent, String, RequestOptions)

Source:
ProjectAgentSkills.cs

[Protocol Method] Creates a new version of a skill from uploaded files via multipart form data.

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

Parameters

name
String

The name of the skill.

content
BinaryContent

The content to send as the body of the request.

contentType
String

The contentType to use which has the multipart/form-data boundary.

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