Method FromInstance
FromInstance(object)
Creates ITool instances from all LMFunctionAttribute methods on the given instance.
public static List<ITool> FromInstance(object instance)
Parameters
instanceobjectTarget object instance to inspect.
Returns
Exceptions
- ArgumentNullException
Thrown if
instanceisnull.- ArgumentException
Thrown if a parameter type is not supported for tool arguments.