AgentFileSkill.GetScriptAsync(String, CancellationToken) Method

Definition

Gets a script owned by this skill by name.

public override System.Threading.Tasks.ValueTask<Microsoft.Agents.AI.AgentSkillScript?> GetScriptAsync(string name, System.Threading.CancellationToken cancellationToken = default);
override this.GetScriptAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.Agents.AI.AgentSkillScript>
Public Overrides Function GetScriptAsync (name As String, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of AgentSkillScript)

Parameters

name
String

The script name.

cancellationToken
CancellationToken

Cancellation token.

Returns

The AgentSkillScript, or null when no script with the given name exists.

Applies to