AgentSkillsSource.GetSkillsAsync 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.
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.