withToolGroup

open fun withToolGroup(toolGroup: String): PromptRunner

Add a tool group to the PromptRunner

Return

PromptRunner instance with the added tool group

Parameters

toolGroup

name of the toolGroup we're requesting


open fun withToolGroup(toolGroup: String, vararg requiredToolNames: String): PromptRunner

Add a tool group with required tool names. Throws com.embabel.agent.spi.loop.RequiredToolGroupException at resolution time if the group is not found or any required tool name is absent.

Parameters

toolGroup

name of the toolGroup we're requesting

requiredToolNames

tool names that must be present in the resolved group


abstract fun withToolGroup(toolGroup: ToolGroup): PromptRunner

Allows for dynamic tool groups to be added to the PromptRunner.