on

fun <T : Any> on(agentPlatform: AgentPlatform, goalType: Class<T>): SupervisorInvocation<T>

Create a SupervisorInvocation targeting the specified goal type.

Parameters

agentPlatform

the platform containing actions to orchestrate

goalType

the type of object to produce