choose And Accomplish Goal
fun chooseAndAccomplishGoal(processOptions: ProcessOptions = ProcessOptions(), goalChoiceApprover: GoalChoiceApprover, agentScope: AgentScope, bindings: Map<String, Any>, goalSelectionOptions: GoalSelectionOptions = GoalSelectionOptions(), bindingsFormatter: BindingsFormatter = BindingsFormatter.DEFAULT): AgentProcessExecution
Choose a goal based on the user input and try to achieve it. Open execution model. May bring in actions and conditions from multiple agents to help achieve the goal. Doesn't need reified types because we don't know the type yet.
Parameters
process Options
process options
goal Choice Approver
goal choice approver allowing goal choice to be rejected
agent Scope
scope to look for the agent
bindings
any bindings to pass to the agent process. These are formatted using the bindingsFormatter to extract an intent string for goal ranking.
goal Selection Options
options for goal selection, such as confidence cut-off and multi-goal selection, if we want customization.
bindings Formatter
formatter to extract intent string from bindings for goal ranking. Defaults to BindingsFormatter.DEFAULT which handles PromptContributor, HasInfoString, and toString.