ProjectAgentSkills.CreateSkillVersion Method

Definition

Overloads

Name Description
CreateSkillVersion(String, BinaryContent, RequestOptions)

[Protocol Method] Creates a new version of a skill. If the skill does not exist, it will be created.

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

Creates a new version of a skill. If the skill does not exist, it will be created.

CreateSkillVersion(String, BinaryContent, RequestOptions)

Source:
ProjectAgentSkills.cs

[Protocol Method] Creates a new version of a skill. If the skill does not exist, it will be created.

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

Parameters

name
String

The name of the skill. If the skill does not exist, it will be created.

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

CreateSkillVersion(String, SkillInlineContent, Nullable<Boolean>, CancellationToken)

Source:
ProjectAgentSkills.cs

Creates a new version of a skill. If the skill does not exist, it will be created.

public virtual System.ClientModel.ClientResult<Azure.AI.Projects.Agents.SkillVersion> CreateSkillVersion(string name, Azure.AI.Projects.Agents.SkillInlineContent inlineContent = default, bool? default = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateSkillVersion : string * Azure.AI.Projects.Agents.SkillInlineContent * Nullable<bool> * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.SkillVersion>
override this.CreateSkillVersion : string * Azure.AI.Projects.Agents.SkillInlineContent * Nullable<bool> * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.SkillVersion>
Public Overridable Function CreateSkillVersion (name As String, Optional inlineContent As SkillInlineContent = Nothing, Optional default As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ClientResult(Of SkillVersion)

Parameters

name
String

The name of the skill. If the skill does not exist, it will be created.

inlineContent
SkillInlineContent

Inline skill content for simple skills without file uploads. Foundry-specific extension.

default
Nullable<Boolean>

Whether to set this version as the default.

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