Class ExceptionSuppressingTool

  • All Implemented Interfaces:
    com.embabel.agent.api.tool.DelegatingTool , com.embabel.agent.api.tool.Tool , com.embabel.agent.api.tool.ToolInfo

    
    public final class ExceptionSuppressingTool
     implements DelegatingTool
                        

    Tool decorator that suppresses exceptions and returns a warning message instead.

    Note: ToolControlFlowSignal exceptions are NOT suppressed - they are control flow signals that must propagate (e.g., ReplanRequestedException, UserInputRequiredException).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Tool.Definition getDefinition() Tool definition for LLM
      Tool.Metadata getMetadata() Optional metadata
      Tool getDelegate() The underlying tool being delegated to.
      Tool.Result call(String input) Execute the tool with JSON input.
      • Methods inherited from class com.embabel.agent.api.tool.Tool

        withDescription, withName, withNote
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait