Table of Contents

Method FromInstance

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

FromInstance(object)

Creates ITool instances from all LMFunctionAttribute methods on the given instance.

public static List<ITool> FromInstance(object instance)

Parameters

instance object

Target object instance to inspect.

Returns

List<ITool>

A list of ITool adapters, one per discovered method.

Exceptions

ArgumentNullException

Thrown if instance is null.

ArgumentException

Thrown if a parameter type is not supported for tool arguments.