ofAnnotatedInstance

fun ofAnnotatedInstance(annotatedInstance: Any): Subagent.Builder

Create a Subagent from an instance of an @Agent annotated class. The agent name is extracted from the instance's class metadata. Call Builder.consuming to specify the input type.

Return

a Builder to specify the input type

Parameters

annotatedInstance

an instance of a class annotated with @Agent