Parameter Attribute
The Parameter attribute is to be used alongside the Tool attribute and is used to define a function's parameters, including the parameter's name, description, and optional list of enums.
using Indie.Attributes;public class MyClass
{
[Tool("MyMethod", "Description of the tool.")]
[Parameter("parameter", "Description of the parameter.")]
public void MyMethod(int parameter)
{
// Method implementation
}
}public class MyClass
{
[Tool("MyMethod", "Description of the tool.")]
[Parameter("param1", "Description of the parameter.")]
[Parameter("param2", "Description of the parameter.", "option1", "option2", "option3")]
public void MyMethod(int param1, string param2)
{
// Method implementation
}
}Last updated