AgentScopeBuilder

data class AgentScopeBuilder<O>(val name: String, val provider: String = "embabel", val actions: List<Action> = emptyList(), val goals: Set<Goal> = emptySet(), val conditions: Set<Condition> = emptySet(), val opaque: Boolean = false)

AgentScopeBuilder that emits actions and can be built on further.

Parameters

O

the output type of the actions

Constructors

Link copied to clipboard
constructor(name: String, provider: String = "embabel", actions: List<Action> = emptyList(), goals: Set<Goal> = emptySet(), conditions: Set<Condition> = emptySet(), opaque: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val goals: Set<Goal>
Link copied to clipboard
Link copied to clipboard
val opaque: Boolean = false
Link copied to clipboard

Functions

Link copied to clipboard
infix inline fun <F> andThen(noinline fn: (e: O) -> F): AgentScopeBuilder<F>

fun <F> andThen(fn: (e: O) -> F, fClass: Class<F>): AgentScopeBuilder<F>

Changes output

Link copied to clipboard
infix inline fun <F> andThenDo(fn: Transformation<O, F>): AgentScopeBuilder<F>
Link copied to clipboard
inline fun <O : Any> asSubProcess(context: ActionContext): O
fun <O : Any> asSubProcess(context: ActionContext, outputClass: Class<O>): O
Link copied to clipboard