Package com.embabel.agent.api.invocation
Object AgentInvocation.Companion
-
- All Implemented Interfaces:
public class AgentInvocation.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static AgentInvocation.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final static <T extends Any> AgentInvocation<T>create(AgentPlatform agentPlatform, Class<T> resultType)Create a new AgentInvocation for the given platform and explicit result type. final <T extends Any> AgentInvocation<T>create(AgentPlatform agentPlatform)Create a new AgentInvocation for the given platform, inferring the result type from the reified type parameter. final static AgentInvocation<Object>on(AgentPlatform agentPlatform)final static AgentInvocation.Builderbuilder(AgentPlatform agentPlatform)Obtain a new Builder to customize agent settings before building. -
-
Method Detail
-
create
final static <T extends Any> AgentInvocation<T> create(AgentPlatform agentPlatform, Class<T> resultType)
Create a new AgentInvocation for the given platform and explicit result type.
- Parameters:
agentPlatform- the platform in which this agent will runresultType- the Java Class of the type of result the agent will return- Returns:
a configured AgentInvocation that produces values of type T
-
create
final <T extends Any> AgentInvocation<T> create(AgentPlatform agentPlatform)
Create a new AgentInvocation for the given platform, inferring the result type from the reified type parameter.
- Parameters:
agentPlatform- the platform or environment in which this agent will run- Returns:
a configured AgentInvocation that produces values of type T
-
on
final static AgentInvocation<Object> on(AgentPlatform agentPlatform)
-
builder
final static AgentInvocation.Builder builder(AgentPlatform agentPlatform)
Obtain a new Builder to customize agent settings before building.
- Parameters:
agentPlatform- the platform or environment in which this agent will run- Returns:
a builder through which you can set processing options
-
-
-
-