Class DefaultToolDecorator

  • All Implemented Interfaces:
    com.embabel.agent.spi.ToolDecorator

    
    public final class DefaultToolDecorator
     implements ToolDecorator
                        

    Decorate tools with metadata and publish events.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      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

         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.