of Class
Create a Subagent from an @Agent annotated class. Call Builder.consuming to specify the input type.
Example:
Subagent.ofClass(MyAgent.class).consuming(MyInput.class)Content copied to clipboard
Return
a Builder to specify the input type
Parameters
agent Class
the class annotated with @Agent
Create a Subagent from an @Agent annotated class (Kotlin reified version).
Create a Subagent from a KClass.