ProjectAgentSkills.CreateSkillVersionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CreateSkillVersionAsync(String, BinaryContent, RequestOptions) |
[Protocol Method] Creates a new version of a skill. If the skill does not exist, it will be created.
|
| CreateSkillVersionAsync(String, SkillInlineContent, Nullable<Boolean>, CancellationToken) |
Creates a new version of a skill. If the skill does not exist, it will be created. |
CreateSkillVersionAsync(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.Threading.Tasks.Task<System.ClientModel.ClientResult> CreateSkillVersionAsync(string name, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member CreateSkillVersionAsync : string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.CreateSkillVersionAsync : string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function CreateSkillVersionAsync (name As String, content As BinaryContent, Optional options As RequestOptions = Nothing) As Task(Of 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
CreateSkillVersionAsync(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.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.SkillVersion>> CreateSkillVersionAsync(string name, Azure.AI.Projects.Agents.SkillInlineContent inlineContent = default, bool? default = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateSkillVersionAsync : string * Azure.AI.Projects.Agents.SkillInlineContent * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.SkillVersion>>
override this.CreateSkillVersionAsync : string * Azure.AI.Projects.Agents.SkillInlineContent * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.SkillVersion>>
Public Overridable Function CreateSkillVersionAsync (name As String, Optional inlineContent As SkillInlineContent = Nothing, Optional default As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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.
- 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.