with Tool Group
Add a tool group to the PromptRunner
Return
PromptRunner instance with the added tool group
Parameters
name of the toolGroup we're requesting
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
name of the toolGroup we're requesting
tool names that must be present in the resolved group
Add a tool group with required tool names and a termination scope. When the group is not found or any required tool name is absent at resolution time, the behavior depends on terminationScope:
TerminationScope.AGENT: throws com.embabel.agent.api.tool.TerminateAgentException, stopping the agent.
TerminationScope.ACTION: throws com.embabel.agent.api.tool.TerminateActionException, skipping the action.
Parameters
name of the toolGroup we're requesting
what to terminate when required tools are missing
tool names that must be present in the resolved group
Allows for dynamic tool groups to be added to the PromptRunner.