withTools

open fun withTools(tools: List<Tool>): PromptRunner

Add multiple framework-agnostic Tools to the prompt runner.

Return

PromptRunner instance with the added tools

Parameters

tools

the tools to add


open fun withTools(tool: Tool, vararg tools: Tool): PromptRunner

Add multiple framework-agnostic Tools to the prompt runner. Uses required first parameter to avoid ambiguity with withTools for tool group names.

Return

PromptRunner instance with the added tools

Parameters

tool

the first tool to add (required)

tools

additional tools to add