findAgent

fun BaseAgent.findAgent(targetName: String): BaseAgent?

Finds an agent with the given name in this agent's subtree (including itself).

Return

The agent if found, null otherwise.

Parameters

targetName

The name of the agent to find.