Package com.embabel.agent.api.tool
Interface DelegatingTool
-
- All Implemented Interfaces:
-
com.embabel.agent.api.tool.Tool,com.embabel.agent.api.tool.ToolInfo
public interface DelegatingTool implements Tool
Interface for tool decorators that wrap another tool. Enables unwrapping to find the underlying tool implementation. Thus, it is important that tool wrappers implement this interface to allow unwrapping.
-
-
Method Summary
Modifier and Type Method Description abstract ToolgetDelegate()The underlying tool being delegated to. -
Methods inherited from class com.embabel.agent.api.tool.Tool
call, withDescription, withName, withNote -
Methods inherited from class com.embabel.agent.api.tool.ToolInfo
getDefinition, getMetadata -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDelegate
abstract Tool getDelegate()
The underlying tool being delegated to.
-
-
-
-