fromAnnotatedInstance

fun <T : Any> fromAnnotatedInstance(instance: Any, type: Class<T>): T

Run the @Agent annotated instance as a subagent and return the result.

Parameters

instance

The @Agent annotated instance to run as a subagent.

type

The expected return type.


inline fun <T : Any> fromAnnotatedInstance(instance: Any): T