asSubProcess

inline fun <O : Any> ActionContext.asSubProcess(agentScopeBuilder: AgentScopeBuilder<O>): O

Run the given agent as a sub-process of this action context.


inline fun <O : Any> ActionContext.asSubProcess(agent: Agent): O

Run the given agent as a sub-process of this action context.

Parameters

agent

the agent to run