Interface ToolLoopFactory

  • All Implemented Interfaces:

    
    public interface ToolLoopFactory
    
                        

    Factory for creating ToolLoop instances.

    Use companion object methods to obtain instances:

    • 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 ToolLoop create(LlmMessageSender llmMessageSender, ObjectMapper objectMapper, ToolInjectionStrategy injectionStrategy, Integer maxIterations, Function1<Tool, Tool> toolDecorator) Create a ToolLoop instance.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • create

         abstract ToolLoop create(LlmMessageSender llmMessageSender, ObjectMapper objectMapper, ToolInjectionStrategy injectionStrategy, Integer maxIterations, Function1<Tool, Tool> toolDecorator)

        Create a ToolLoop instance.

        Parameters:
        llmMessageSender - message sender for LLM communication
        objectMapper - for JSON deserialization
        injectionStrategy - strategy for dynamic tool injection
        maxIterations - maximum loop iterations
        toolDecorator - optional decorator for injected tools