ProjectAgentSkills.CreateSkillFromPackage 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 |
|---|---|
| CreateSkillFromPackage(BinaryData, CancellationToken) |
Creates a skill from a zip package. |
| CreateSkillFromPackage(BinaryContent, RequestOptions) |
[Protocol Method] Creates a skill from a zip package.
|
| CreateSkillFromPackage(String, CancellationToken) |
Creates a skill from a zip package. |
CreateSkillFromPackage(BinaryData, CancellationToken)
- Source:
- ProjectAgentSkills.cs
Creates a skill from a zip package.
public virtual System.ClientModel.ClientResult<Azure.AI.Projects.Agents.AgentsSkill> CreateSkillFromPackage(BinaryData body, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateSkillFromPackage : BinaryData * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.AgentsSkill>
override this.CreateSkillFromPackage : BinaryData * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.AgentsSkill>
Public Overridable Function CreateSkillFromPackage (body As BinaryData, Optional cancellationToken As CancellationToken = Nothing) As 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
CreateSkillFromPackage(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.ClientModel.ClientResult CreateSkillFromPackage(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member CreateSkillFromPackage : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.CreateSkillFromPackage : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function CreateSkillFromPackage (content As BinaryContent, Optional options As RequestOptions = Nothing) As 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
CreateSkillFromPackage(String, CancellationToken)
- Source:
- ProjectAgentSkills.cs
Creates a skill from a zip package.
public virtual System.ClientModel.ClientResult<Azure.AI.Projects.Agents.AgentsSkill> CreateSkillFromPackage(string directoryPath, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateSkillFromPackage : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.AgentsSkill>
override this.CreateSkillFromPackage : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.AgentsSkill>
Public Overridable Function CreateSkillFromPackage (directoryPath As String, Optional cancellationToken As CancellationToken = Nothing) As 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.