AgentFileSkill.GetScriptAsync(String, CancellationToken) 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 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.