AgentSkill.GetContentAsync(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 the full skill content.
public abstract System.Threading.Tasks.ValueTask<string> GetContentAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetContentAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
Public MustOverride Function GetContentAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of String)
Parameters
- cancellationToken
- CancellationToken
Cancellation token.
Returns
For file-based skills this is the raw SKILL.md file content, optionally augmented with a synthesized scripts block when scripts are present. For code-defined skills this is a synthesized XML document containing name, description, and body (instructions, resources, scripts).