removeAgent

expect abstract suspend fun removeAgent(agent: TAgent): Boolean(source)

Removes the specified AI agent from the service.

Return

True if the agent was successfully removed, or false if the agent was not found.

Parameters

agent

The AI agent to be removed.

fun removeAgent(agent: TAgent, executorService: ExecutorService? = null): Boolean(source)

Removes the specified agent from the system.

This method uses the provided executor service to execute the removal operation, or defaults to the strategy dispatcher if no executor service is provided.

Return

True if the agent was successfully removed; false otherwise.

Parameters

agent

The agent to be removed.

executorService

Optional executor service to manage the removal operation.


actual abstract suspend fun removeAgent(agent: TAgent): Boolean(source)

Removes the specified AI agent from the service.

Return

True if the agent was successfully removed, or false if the agent was not found.

Parameters

agent

The AI agent to be removed.

actual abstract suspend fun removeAgent(agent: TAgent): Boolean(source)

Removes the specified AI agent from the service.

Return

True if the agent was successfully removed, or false if the agent was not found.

Parameters

agent

The AI agent to be removed.