RunSubagent

Convenience methods for nesting agents for use with annotation model.

Functions

Link copied to clipboard
inline fun <T : Any> fromAnnotatedInstance(instance: Any): T

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

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

Link copied to clipboard
inline fun <T : Any> instance(instance: Agent): T

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

Run the agent instance as a subagent and return the result.