Package com.embabel.agent.spi
Interface ToolDecorator
-
- All Implemented Interfaces:
public interface ToolDecoratorDecorate tools for use on the platform: for example, to time them and emit events.
-
-
Method Summary
Modifier and Type Method Description abstract ToolCallbackdecorate(ToolCallback tool, AgentProcess agentProcess, Action action, LlmOptions llmOptions)Decorate the tool with some extra information. -
-
Method Detail
-
decorate
abstract ToolCallback decorate(ToolCallback 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.
-
-
-
-