consuming

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.

Return

the configured Subagent tool

Parameters

inputClass

the input type class


inline fun <I> consuming(): Subagent

Specify the input type (Kotlin reified version).


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

Specify the input type (KClass version).