Table of Contents

Method Guard

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

Guard(ITool)

The tool to use when side effects must not happen: tool itself when it declares that it only reads (None, LocalRead, NetworkRead), otherwise a SimulatedTool answering for it.

public static ITool Guard(ITool tool)

Parameters

tool ITool

The tool to guard.

Returns

ITool

The tool or its simulation; null when tool is null.

Guard(ITool, SimulationPurpose)

The tool to use when side effects must not happen, simulated for purpose: tool itself when it only reads, or when it is already a simulation (which keeps its own purpose), otherwise a SimulatedTool answering for it.

public static ITool Guard(ITool tool, SimulatedTool.SimulationPurpose purpose)

Parameters

tool ITool

The tool to guard.

purpose SimulatedTool.SimulationPurpose

Why the tool is simulated.

Returns

ITool

The tool or its simulation; null when tool is null.

Share