removeAgent

suspend override fun removeAgent(agent: AIAgent<Input, Output>): Boolean(source)

Removes the specified AI agent from the managed collection.

Return

true if the agent was successfully removed, or false if the agent was not found or could not be removed.

Parameters

agent

The AI agent to be removed. This agent must be part of the managed agents collection.