Object ToolResolutionHelper

  • All Implemented Interfaces:

    
    public class ToolResolutionHelper
    
                        

    Utility for resolving ToolGroups and decorating tools. Provides consistent tool resolution across streaming, thinking, and standard LLM operations.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final List<Tool> resolveAndDecorate(LlmInteraction interaction, AgentProcess agentProcess, Action action, ToolDecorator toolDecorator) Resolves ToolGroups from the interaction and decorates all tools.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • resolveAndDecorate

         final List<Tool> resolveAndDecorate(LlmInteraction interaction, AgentProcess agentProcess, Action action, ToolDecorator toolDecorator)

        Resolves ToolGroups from the interaction and decorates all tools.

        Parameters:
        interaction - LLM interaction containing tools and tool groups
        agentProcess - Process context for accessing toolGroupResolver
        action - Optional action context for decoration
        toolDecorator - Decorator to make tools platform-aware
        Returns:

        List of resolved and decorated tools