asSubProcess

open fun <O : Any> asSubProcess(outputClass: Class<O>, agentScopeBuilder: AgentScopeBuilder<O>): O

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

Parameters

outputClass

the class of the output of the agent

agentScopeBuilder

the builder for the agent scope to run


open fun <O : Any> asSubProcess(outputClass: Class<O>, agent: Agent): O

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