Class SkillAttribute
- Namespace
- nanoFramework.WebServer.Skills
- Assembly
- nanoFramework.WebServer.Skills.dll
Marks a class as a discoverable AI agent skill (A2A AgentSkill compatible).
[AttributeUsage(AttributeTargets.Class)]
public class SkillAttribute : Attribute
- Inheritance
-
SkillAttribute
- Inherited Members
- Extension Methods
Constructors
SkillAttribute(string, string, string, string)
Initializes a new instance of the SkillAttribute class.
public SkillAttribute(string id, string name, string description, string version = "1.0")
Parameters
idstringThe unique identifier for this skill.
namestringThe human-readable name of this skill.
descriptionstringA detailed description of this skill.
versionstringThe version of this skill. Defaults to "1.0".
Properties
Description
Gets the detailed description (A2A: AgentSkill.description).
public string Description { get; }
Property Value
Id
Gets the unique identifier (A2A: AgentSkill.id).
public string Id { get; }
Property Value
Name
Gets the human-readable name (A2A: AgentSkill.name).
public string Name { get; }
Property Value
Version
Gets the agent/skill version.
public string Version { get; }