ProjectAgentSkills.CreateSkillVersionFromFilesAsync 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 |
|---|---|
| CreateSkillVersionFromFilesAsync(String, String, CancellationToken) |
Creates a skill from a zip package. |
| CreateSkillVersionFromFilesAsync(String, BinaryContent, String, RequestOptions) |
[Protocol Method] Creates a new version of a skill from uploaded files via multipart form data.
|
CreateSkillVersionFromFilesAsync(String, 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>> CreateSkillVersionFromFilesAsync(string name, string directoryPath, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateSkillVersionFromFilesAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.AgentsSkill>>
override this.CreateSkillVersionFromFilesAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.AgentsSkill>>
Public Overridable Function CreateSkillVersionFromFilesAsync (name As String, directoryPath As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
CreateSkillVersionFromFilesAsync(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.Threading.Tasks.Task<System.ClientModel.ClientResult> CreateSkillVersionFromFilesAsync(string name, System.ClientModel.BinaryContent content, string contentType, System.ClientModel.Primitives.RequestOptions options = default);
abstract member CreateSkillVersionFromFilesAsync : string * System.ClientModel.BinaryContent * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.CreateSkillVersionFromFilesAsync : string * System.ClientModel.BinaryContent * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function CreateSkillVersionFromFilesAsync (name As String, content As BinaryContent, contentType As String, Optional options As RequestOptions = Nothing) As Task(Of 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.