create

fun <T : Any> create(agentPlatform: AgentPlatform, resultType: Class<T>): AgentInvocation<T>

Create a new AgentInvocation for the given platform and explicit result type.

Return

a configured AgentInvocation that produces values of type T

Parameters

agentPlatform

the platform in which this agent will run

resultType

the Java Class of the type of result the agent will return

T

type of result returned by the invocation


inline fun <T : Any> create(agentPlatform: AgentPlatform): AgentInvocation<T>

Create a new AgentInvocation for the given platform, inferring the result type from the reified type parameter.

Return

a configured AgentInvocation that produces values of type T

Parameters

agentPlatform

the platform or environment in which this agent will run

T

type of result returned by the invocation