PerGoalToolFactory

class PerGoalToolFactory(autonomy: Autonomy, applicationName: String, textCommunicator: TextCommunicator = PromptedTextCommunicator, goalToolNamingStrategy: GoalToolNamingStrategy = ApplicationNameGoalToolNamingStrategy( applicationName ))

Factory that creates tools for each goal in the agent platform. 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 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 ))

Properties

Link copied to clipboard

Generic platform tools

Functions

Link copied to clipboard
fun allTools(remoteOnly: Boolean, listeners: List<AgenticEventListener>): List<Tool>

All tools including goal tools and platform tools.

Link copied to clipboard
fun goalTools(remoteOnly: Boolean, listeners: List<AgenticEventListener>): List<GoalTool<*>>

Tools associated with goals.

Link copied to clipboard

Create tools for the given goal. There will be one tool for each starting input type of the goal.