Minimal scalar function
Design rules
- Validate types and ranges at the boundary.
- Keep
FunctionNamestable; changing it breaks scripts. - Declare aliases only for intentional compatibility.
- Provide
DefaultArgumentNamesso generated help is meaningful. - Return Script
IElementvalues or supported .NET objects consistently. - Honour cancellation and timeouts for I/O.
- Avoid hidden global state.
- Log externally visible side effects.
- Never expose secrets through exceptions or object properties.
Inventory discovery
The runtime inventory finds the class when its assembly package loads. If the function does not appear:- confirm the assembly is in the package manifest;
- check that its target framework matches the Neuron;
- inspect module/inventory startup events;
- verify the class is public and concrete;
- ensure all referenced assemblies are installed.