build

fun <T : Any> build(resultType: Class<T>): AgentInvocation<T>

Build the AgentInvocation with the given explicit result type.

Return

a new AgentInvocation producing values of type T

Parameters

resultType

the Java Class of the result type T