Tool Group Requirement
data class ToolGroupRequirement(val role: String, val requiredToolNames: Set<String> = emptySet(), val terminationScope: TerminationScope? = null)
Specifies a tool group that a tool consumer requires.
Parameters
required Tool Names
optional set of tool names that must be present in the resolved group. When non-empty, resolution throws an exception if the group is not found or any required tool name is absent. An empty set (default) preserves backward-compatible behavior: a missing group is logged and tolerated.
termination Scope
controls the exception type thrown when required tools are missing. When null (default), throws com.embabel.agent.spi.loop.RequiredToolGroupException. When TerminationScope.AGENT, throws com.embabel.agent.api.tool.TerminateAgentException. When TerminationScope.ACTION, throws com.embabel.agent.api.tool.TerminateActionException.
Constructors
Link copied to clipboard
constructor(role: String, requiredToolNames: Set<String> = emptySet(), terminationScope: TerminationScope? = null)