withToolObject

open fun withToolObject(toolObject: Any?): PromptRunner

Add a tool object to the prompt runner. The tool object should have @Tool annotations.

Return

PromptRunner instance with the added tool object

Parameters

toolObject

the object to add. If it is null or has no Tool annotations, nothing is done. This is not an error


abstract fun withToolObject(toolObject: ToolObject): PromptRunner

Add a tool object

Parameters

toolObject

the object to add.