AgentInlineSkill.GetResourceAsync(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 resource owned by this skill by name.
public override System.Threading.Tasks.ValueTask<Microsoft.Agents.AI.AgentSkillResource?> GetResourceAsync(string name, System.Threading.CancellationToken cancellationToken = default);
override this.GetResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.Agents.AI.AgentSkillResource>
Public Overrides Function GetResourceAsync (name As String, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of AgentSkillResource)
Parameters
- name
- String
The resource name (e.g. an identifier or a relative path referenced inside the skill content).
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The AgentSkillResource, or null when no resource with the given name exists.