ofClass

fun ofClass(agentClass: Class<*>): Subagent.Builder

Create a Subagent from an @Agent annotated class. Call Builder.consuming to specify the input type.

Example:

Subagent.ofClass(MyAgent.class).consuming(MyInput.class)

Return

a Builder to specify the input type

Parameters

agentClass

the class annotated with @Agent


inline fun <T> ofClass(): Subagent.Builder

Create a Subagent from an @Agent annotated class (Kotlin reified version).


fun ofClass(agentClass: KClass<*>): Subagent.Builder

Create a Subagent from a KClass.