Tool Attribute

The Tool attribute is used to define a tool, providing its name and description.

When implementing a tool, import the Indie.Attributes and use the Tool Attribute.

using Indie.Attributes;

The Tool attribute has 2 parameters:

  • The Function's Name

  • The Description Of The Function

[Tool("MyMethod", "Description of the function.")]
public void MyMethod()
{
    // Method implementation
}

The name and the description will help the model make informed decisions on which function to call after receiving input.

Last updated