AgentSkillsSource.GetSkillsAsync Method

Definition

Gets the skills provided by this source.

public abstract System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Agents.AI.AgentSkill>> GetSkillsAsync(Microsoft.Agents.AI.AgentSkillsSourceContext context, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSkillsAsync : Microsoft.Agents.AI.AgentSkillsSourceContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Agents.AI.AgentSkill>>
Public MustOverride Function GetSkillsAsync (context As AgentSkillsSourceContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of AgentSkill))

Parameters

context
AgentSkillsSourceContext

Contextual information about the agent and session requesting skills.

cancellationToken
CancellationToken

Cancellation token.

Returns

A collection of skills from this source.

Applies to