Table of Contents

Class SkillActionMetadata

Namespace
nanoFramework.WebServer.Skills
Assembly
nanoFramework.WebServer.Skills.dll

Represents metadata information for a registered skill action, including its name, description, input/output schemas, content type, and associated method.

public class SkillActionMetadata
Inheritance
SkillActionMetadata
Inherited Members
Extension Methods

Constructors

SkillActionMetadata()

public SkillActionMetadata()

Properties

ContentType

Gets or sets the MIME type of the output (e.g. "application/json", "text/markdown").

public string ContentType { get; set; }

Property Value

string

Description

Gets or sets the description of the action.

public string Description { get; set; }

Property Value

string

InputSchema

Gets or sets the pre-serialized JSON schema describing the input parameters for the action. Must be a valid JSON object or array literal (starting with '{' or '[').

public string InputSchema { get; set; }

Property Value

string

Method

Gets or sets the MethodInfo representing the method associated with the action.

public MethodInfo Method { get; set; }

Property Value

MethodInfo

Name

Gets or sets the name of the action.

public string Name { get; set; }

Property Value

string

OutputSchema

Gets or sets the pre-serialized JSON schema describing the output type for the action. Must be a valid JSON object or array literal (starting with '{' or '[').

public string OutputSchema { get; set; }

Property Value

string

ParameterType

Gets or sets the type of the parameter, or null if parameterless.

public Type ParameterType { get; set; }

Property Value

Type

Methods

AppendJson(StringBuilder)

Appends the JSON representation of this action metadata to the specified StringBuilder.

public void AppendJson(StringBuilder sb)

Parameters

sb StringBuilder

The StringBuilder to append to.