invokeAsync

abstract fun invokeAsync(obj: Any, vararg objs: Any): CompletableFuture<T>

Invokes the agent asynchronously with one or more arguments.

Return

the result of type T from the agent invocation

Parameters

obj

the first (and possibly only) input value to be added to the blackboard

objs

additional input values to add to the blackboard


abstract fun invokeAsync(map: Map<String, Any>): CompletableFuture<T>

Invokes the agent asynchronously with a map of named inputs.

Return

the result of type T from the agent invocation

Parameters

map

A Map that initializes the blackboard