listActiveAgents

fun listActiveAgents(executorService: ExecutorService? = null): List<TAgent>(source)

Lists all currently active agents using the configured strategy dispatcher.

If an optional executorService is provided, it will be used as the execution context for running the operation. Otherwise, a default executor service or dispatcher is utilized.

Return

A list of currently active agents of type TAgent.

Parameters

executorService

The optional ExecutorService to use for task execution. Defaults to null.