AgentFileSkill.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 override System.Threading.Tasks.ValueTask<string> GetContentAsync(System.Threading.CancellationToken cancellationToken = default);
override this.GetContentAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
Public Overrides 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).
Remarks
Returns the raw SKILL.md content with an <available_resources> and an <available_scripts> block appended, so the model gets an authoritative list for each category. A category with no entries is appended as a self-closing element (e.g. <available_scripts />) so the model knows none are available and does not hallucinate their names. The result is cached after the first access.