Method FromAssembly
FromAssembly(Assembly)
Creates ITool instances from all types in the given assembly
that expose
instance methods annotated with LMFunctionAttribute.
public static List<ITool> FromAssembly(Assembly assembly)
Parameters
assembly
AssemblyAssembly to scan.
Returns
Exceptions
- ArgumentNullException
Thrown if
assembly
isnull
.- MissingMethodException
Thrown if a matched type lacks a public parameterless constructor.
- TargetInvocationException
Thrown if a constructor throws.
- ArgumentException
Thrown if a parameter type is not supported for tool arguments.