Interface ToolDecorator

  • All Implemented Interfaces:

    
    public interface ToolDecorator
    
                        

    Decorate tools for use on the platform: for example, to time them and emit events.

    • 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 Tool decorate(Tool tool, AgentProcess agentProcess, Action action, LlmOptions llmOptions) Decorate the tool with some extra information.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • decorate

         abstract Tool decorate(Tool tool, AgentProcess agentProcess, Action action, LlmOptions llmOptions)

        Decorate the tool with some extra information.

        Parameters:
        tool - The tool to decorate.
        agentProcess - The agent process that is using the tool.
        action - The action that resulted in the tool being called, if any.
        llmOptions - The LLM options that resulted in the tool being called.
        Returns:

        The decorated tool.