Builder

sealed class Builder

Builder step that requires specifying the input type. Use consuming to complete the Subagent creation.

Functions

Link copied to clipboard
inline fun <I> consuming(): Subagent

Specify the input type (Kotlin reified version).

abstract fun consuming(inputClass: Class<*>): Subagent

Specify the input type that the LLM will provide when invoking this tool. This type will be used to generate the JSON schema for the tool.

fun consuming(inputClass: KClass<*>): Subagent

Specify the input type (KClass version).