Package com.embabel.agent.prompt.element
Class ToolCallControl
-
- All Implemented Interfaces:
-
com.embabel.common.ai.prompt.PromptContributor,com.embabel.common.ai.prompt.PromptElement
public final class ToolCallControl implements PromptContributorPromptContributor to control tool usage.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegertoolCallsprivate final PromptContributionLocationpromptContributionLocationprivate final Stringrole
-
Constructor Summary
Constructors Constructor Description ToolCallControl(Integer toolCalls)
-
Method Summary
Modifier and Type Method Description final IntegergetToolCalls()Stringcontribution()-
Methods inherited from class com.embabel.common.ai.prompt.PromptElement
getPromptContributionLocation, getRole -
Methods inherited from class com.embabel.common.ai.prompt.PromptContributor
promptContribution -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ToolCallControl
ToolCallControl(Integer toolCalls)
-
-
Method Detail
-
getToolCalls
final Integer getToolCalls()
-
contribution
String contribution()
-
-
-
-