ProjectAgentSkills.GetSkill Method

Definition

Overloads

Name Description
GetSkill(String, RequestOptions)

[Protocol Method] Retrieves a skill.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetSkill(String, CancellationToken)

Retrieves a skill.

GetSkill(String, RequestOptions)

Source:
ProjectAgentSkills.cs

[Protocol Method] Retrieves a skill.

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

Parameters

name
String

The unique name of the skill.

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 is null.

name is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetSkill(String, CancellationToken)

Source:
ProjectAgentSkills.cs

Retrieves a skill.

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

Parameters

name
String

The unique name of the skill.

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