byName

Create a Subagent by agent name. The agent will be resolved from the platform at runtime. Call Builder.consuming to specify the input type.

Example:

Subagent.byName("MyAgent").consuming(MyInput.class)

Return

a Builder to specify the input type

Parameters

name

the name of the agent to delegate to