UtilityInvocation

data class UtilityInvocation constructor(agentPlatform: AgentPlatform, processOptions: ProcessOptions = ProcessOptions(), agentScopeBuilder: AgentScopeBuilder = agentPlatform) : BaseInvocation<UtilityInvocation> , ScopedInvocation<UtilityInvocation>

Invoker for utility agents. Will pick up all @EmbabelComponent and @Agent annotated classes and apply all their actions and goals

Parameters

agentPlatform

the agent platform to create and manage agent processes

processOptions

options to configure the agent process

agentScopeBuilder

emits the scope to create the utility agent in

Constructors

Link copied to clipboard
constructor(agentPlatform: AgentPlatform, processOptions: ProcessOptions = ProcessOptions(), agentScopeBuilder: AgentScopeBuilder = agentPlatform)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Create a platform agent for utility invocations

Link copied to clipboard
open fun run(map: Map<String, Any>): AgentProcess

Runs the agent with a map of named inputs.

open fun run(obj: Any, vararg objs: Any): AgentProcess

Runs the agent with one or more arguments

Link copied to clipboard
open override fun runAsync(map: Map<String, Any>): CompletableFuture<AgentProcess>

Runs the agent asynchronously with a map of named inputs.

open override fun runAsync(obj: Any, vararg objs: Any): CompletableFuture<AgentProcess>

Runs the agent asynchronously with one or more arguments

Link copied to clipboard

Do we terminate the agent process without error if it gets stuck?

Link copied to clipboard
Link copied to clipboard
open override fun withScope(agentScopeBuilder: AgentScopeBuilder): UtilityInvocation

Set the scope of actions and goals