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


open fun withTools(vararg toolGroups: String): PromptRunner

Deprecated

Use withToolGroups() instead for tool group names

Replace with

withToolGroups(*toolGroups)

Add a set of tool groups to the PromptRunner

Parameters

toolGroups

the set of named tool groups to add