Per Goal Tool Callback Factory
class PerGoalToolCallbackFactory(autonomy: Autonomy, applicationName: String, textCommunicator: TextCommunicator = PromptedTextCommunicator, goalToolNamingStrategy: GoalToolNamingStrategy = ApplicationNameGoalToolNamingStrategy(
applicationName
))
Generic tool callback provider that publishes a tool callback for each goal. Each invocation will result in a distinct AgentProcess being executed. Multiple instances of this class can be created, each with different configuration, for different purposes. Tools can be exposed to actions or via an MCP server etc. Return a tool callback for each goal taking user input. If the goal specifies startingInputTypes, add a tool for each of those input types. Add a continue tool for any process that requires user input and is waiting for a form submission.
Constructors
Link copied to clipboard
constructor(autonomy: Autonomy, applicationName: String, textCommunicator: TextCommunicator = PromptedTextCommunicator, goalToolNamingStrategy: GoalToolNamingStrategy = ApplicationNameGoalToolNamingStrategy(
applicationName
))
Functions
Link copied to clipboard
fun goalTools(remoteOnly: Boolean, listeners: List<AgenticEventListener>): List<GoalToolCallback<*>>
Tools associated with goals.
Link copied to clipboard
fun toolCallbacks(remoteOnly: Boolean, listeners: List<AgenticEventListener>): List<<Error class: unknown class>>
If remote is true, include only remote tools.
Link copied to clipboard
Create tool callbacks for the given goal. There will be one tool callback for each starting input type of the goal.