Class LMFunctionAttribute
Marks an instance method as callable by LM-Kit’s tool binding and discovery.
Methods annotated with LMFunctionAttribute can be discovered and exposed
as ITool
via APIs such as LMFunctionToolBinder
.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class LMFunctionAttribute : Attribute
- Inheritance
-
LMFunctionAttribute
- Inherited Members
Remarks
- Apply to instance, public methods you want the model to call.
- Name should be a stable, unique identifier (e.g.,
get_weather
). - Description should be a concise, imperative summary surfaced to the model.
Constructors
- LMFunctionAttribute(string, string)
Creates a new LMFunctionAttribute.
Properties
- Description
Concise human-readable description of the function’s purpose, displayed to the model to guide selection and argument construction.
- Name
Stable, unique name used by the model to reference this function (e.g.,
get_weather
). Keep this name consistent across versions.