withToolObject

open fun withToolObject(toolObject: Any?): PromptRunner

Add a tool object to the prompt runner.

Return

PromptRunner instance with the added tool object

Parameters

toolObject

the object to add. If it is null, nothing is done. This is not an error


abstract fun withToolObject(toolObject: ToolObject): PromptRunner

Add a tool object

Parameters

toolObject

the object to add.