withTool

open override fun withTool(tool: Tool): PromptRunner

Add a framework-agnostic Tool to the prompt runner.

Return

PromptRunner instance with the added tool

Parameters

tool

the tool to add