chooseAndAccomplishGoal

fun chooseAndAccomplishGoal(processOptions: ProcessOptions = ProcessOptions(), goalChoiceApprover: GoalChoiceApprover, agentScope: AgentScope, bindings: Map<String, Any>, goalSelectionOptions: GoalSelectionOptions = GoalSelectionOptions()): 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 additional bindings to pass to the agent process

goalSelectionOptions

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