Table of Contents

Method FromAssembly

Namespace
LMKit.Agents.Tools
Assembly
LM-Kit.NET.dll

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 Assembly

Assembly to scan.

Returns

List<ITool>

A list of ITool adapters aggregated from all matching types.

Exceptions

ArgumentNullException

Thrown if assembly is null.

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.