Package com.embabel.agent.api.tool
Class Subagent.Builder
-
- All Implemented Interfaces:
public class Subagent.BuilderBuilder step that requires specifying the input type. Use consuming to complete the Subagent creation.
-
-
Method Summary
Modifier and Type Method Description abstract Subagentconsuming(Class<?> inputClass)Specify the input type that the LLM will provide when invoking this tool. final <I extends Any> Subagentconsuming()Specify the input type (Kotlin reified version). final Subagentconsuming(KClass<?> inputClass)Specify the input type (KClass version). -
-
Method Detail
-
consuming
abstract Subagent consuming(Class<?> inputClass)
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.
- Parameters:
inputClass- the input type class- Returns:
the configured Subagent tool
-
consuming
final <I extends Any> Subagent consuming()
Specify the input type (Kotlin reified version).
-
-
-
-