SafeToolFromCallable

constructor(toolFunction: KFunction<TResult>, environment: AIAgentEnvironment)(source)

Parameters

TResult

The type of the result produced by the tool function.