SafeTool

constructor(tool: Tool<TArgs, TResult>, environment: AIAgentEnvironment)(source)

Parameters

TArgs

The type of arguments accepted by the underlying tool. Must extend Tool.Args.

TResult

The type of result produced by the underlying tool. Must extend ToolResult.