chooseAndAccomplishGoal

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

processOptions

process options

goalChoiceApprover

goal choice approver allowing goal choice to be rejected

agentScope

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.

goalSelectionOptions

options for goal selection, such as confidence cut-off and multi-goal selection, if we want customization.

bindingsFormatter

formatter to extract intent string from bindings for goal ranking. Defaults to BindingsFormatter.DEFAULT which handles PromptContributor, HasInfoString, and toString.