Package com.embabel.agent.api.dsl
Class TypedAgentScopeBuilder
-
- All Implemented Interfaces:
-
com.embabel.agent.api.common.scope.AgentScopeBuilder
public final class TypedAgentScopeBuilder<O extends Object> implements AgentScopeBuilder
AgentScopeBuilder that emits actions and can be built on further.
-
-
Method Summary
Modifier and Type Method Description final StringgetName()final StringgetProvider()final List<Action>getActions()final Set<Goal>getGoals()final Set<Condition>getConditions()final BooleangetOpaque()AgentScopecreateAgentScope()Emit an AgentScope final <O extends Any> OasSubProcess(ActionContext context, Class<O> outputClass)final <O extends Any> OasSubProcess(ActionContext context)final <F extends Any> TypedAgentScopeBuilder<F>andThenDo(Transformation<O, F> fn)final <F extends Any> TypedAgentScopeBuilder<F>andThenDo(Transformation<O, F> fn, Class<F> fClass)final <F extends Any> TypedAgentScopeBuilder<F>andThen(Function1<O, F> fn, Class<F> fClass)Changes output final <F extends Any> TypedAgentScopeBuilder<F>andThen(Function1<O, F> fn)-
-
Method Detail
-
getProvider
final String getProvider()
-
getActions
final List<Action> getActions()
-
getConditions
final Set<Condition> getConditions()
-
createAgentScope
AgentScope createAgentScope()
Emit an AgentScope
-
asSubProcess
final <O extends Any> O asSubProcess(ActionContext context, Class<O> outputClass)
-
asSubProcess
final <O extends Any> O asSubProcess(ActionContext context)
-
andThenDo
final <F extends Any> TypedAgentScopeBuilder<F> andThenDo(Transformation<O, F> fn)
-
andThenDo
final <F extends Any> TypedAgentScopeBuilder<F> andThenDo(Transformation<O, F> fn, Class<F> fClass)
-
andThen
final <F extends Any> TypedAgentScopeBuilder<F> andThen(Function1<O, F> fn, Class<F> fClass)
Changes output
-
-
-
-