Class Subagent.Builder

  • All Implemented Interfaces:

    
    public class Subagent.Builder
    
                        

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Subagent consuming(Class<?> inputClass) Specify the input type that the LLM will provide when invoking this tool.
      final <I extends Any> Subagent consuming() Specify the input type (Kotlin reified version).
      final Subagent consuming(KClass<?> inputClass) Specify the input type (KClass version).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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).