AgentClassSkill<TSelf>.GetContentAsync(CancellationToken) Method

Definition

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 a synthesized XML document containing name, description, instructions, resources, and scripts. The result is cached after the first access. Override to provide custom content.

Applies to