Class SkillMetadata
- Namespace
- nanoFramework.WebServer.Skills
- Assembly
- nanoFramework.WebServer.Skills.dll
Represents metadata information for a registered skill, compatible with the A2A AgentSkill schema. Contains the skill's identity, description, tags, examples, input/output modes, and actions.
public class SkillMetadata
- Inheritance
-
SkillMetadata
- Inherited Members
- Extension Methods
Constructors
SkillMetadata()
public SkillMetadata()
Properties
Actions
Gets or sets the list of actions (SkillActionMetadata) for this skill.
public ArrayList Actions { get; set; }
Property Value
Description
Gets or sets the detailed description (A2A: AgentSkill.description).
public string Description { get; set; }
Property Value
Examples
Gets or sets the example prompts or scenarios (A2A: AgentSkill.examples).
public string[] Examples { get; set; }
Property Value
- string[]
Id
Gets or sets the unique identifier (A2A: AgentSkill.id).
public string Id { get; set; }
Property Value
InputModes
Gets or sets the input MIME types (A2A: AgentSkill.input_modes).
public string[] InputModes { get; set; }
Property Value
- string[]
Name
Gets or sets the human-readable name (A2A: AgentSkill.name).
public string Name { get; set; }
Property Value
OutputModes
Gets or sets the output MIME types (A2A: AgentSkill.output_modes).
public string[] OutputModes { get; set; }
Property Value
- string[]
Tags
Gets or sets the tags for this skill (A2A: AgentSkill.tags).
public string[] Tags { get; set; }
Property Value
- string[]
Version
Gets or sets the version of the skill.
public string Version { get; set; }
Property Value
Methods
AppendJson(StringBuilder)
Appends the JSON representation of this skill metadata to the specified StringBuilder. Output is compatible with the A2A AgentSkill schema.
public void AppendJson(StringBuilder sb)
Parameters
sbStringBuilderThe StringBuilder to append to.
FindAction(string)
Finds an action by name within this skill.
public SkillActionMetadata FindAction(string actionName)
Parameters
actionNamestringThe name of the action to find.
Returns
- SkillActionMetadata
The matching SkillActionMetadata, or null if not found.
HasTag(string)
Checks whether this skill has any tag matching the specified value.
public bool HasTag(string tag)
Parameters
tagstringThe tag to search for.
Returns
- bool
true if the skill has the specified tag; otherwise, false.