Class DefaultToolDecorator
-
- All Implemented Interfaces:
-
com.embabel.agent.spi.ToolDecorator
public final class DefaultToolDecorator implements ToolDecorator
Decorate tools with metadata and publish events.
-
-
Constructor Summary
Constructors Constructor Description DefaultToolDecorator(ToolGroupResolver toolGroupResolver, ObservationRegistry observationRegistry, StringTransformer outputTransformer)
-
Method Summary
Modifier and Type Method Description ToolCallbackdecorate(ToolCallback tool, AgentProcess agentProcess, Action action, LlmOptions llmOptions)Decorate the tool with some extra information. -
-
Constructor Detail
-
DefaultToolDecorator
DefaultToolDecorator(ToolGroupResolver toolGroupResolver, ObservationRegistry observationRegistry, StringTransformer outputTransformer)
-
-
Method Detail
-
decorate
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.
-
-
-
-