Package com.embabel.agent.api.invocation
Interface AgentInvocation
-
- All Implemented Interfaces:
-
com.embabel.agent.api.invocation.BaseInvocation,com.embabel.agent.api.invocation.TypedInvocation
public interface AgentInvocation<T extends Object> implements TypedInvocation<T, AgentInvocation<T>>
Defines the contract for invoking an agent.
Default instances are created with AgentInvocation.create; AgentInvocation.builder allows for customization of the invocation before creation. Once created, invoke or invokeAsync is used to invoke the agent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAgentInvocation.Companionpublic final classAgentInvocation.BuilderBuilder for configuring and creating instances of AgentInvocation.
Use this builder to set process options such as context, blackboard, verbosity, budget, and control policies before constructing the agent invocation.
-
Method Summary
Modifier and Type Method Description abstract AgentInvocation<T>withAgentPlatform(AgentPlatform agentPlatform)<U extends Any> AgentInvocation<U>withResultType(Class<U> resultType)abstract <U extends Any> AgentInvocation<U>returning(Class<U> resultType)-
Methods inherited from class com.embabel.agent.api.invocation.TypedInvocation
getResultType, invoke, invoke, invokeAsync, invokeAsync -
Methods inherited from class com.embabel.agent.api.invocation.BaseInvocation
run, run, runAsync, runAsync, withProcessOptions -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
withAgentPlatform
abstract AgentInvocation<T> withAgentPlatform(AgentPlatform agentPlatform)
-
withResultType
@Deprecated(message = "Use returning instead", replaceWith = @ReplaceWith(imports = {}, expression = "returning(resultType)")) <U extends Any> AgentInvocation<U> withResultType(Class<U> resultType)
-
-
-
-