Companion

object Companion

Functions

Link copied to clipboard

Create a Subagent by agent name. The agent will be resolved from the platform at runtime. Call Builder.consuming to specify the input type.

Link copied to clipboard
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.

Link copied to clipboard
inline fun <T> ofClass(): Subagent.Builder

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

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

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

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

Create a Subagent from a KClass.

Link copied to clipboard

Create a Subagent from an already-resolved Agent instance. Call Builder.consuming to specify the input type.