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