decorate

abstract fun decorate(tool: <Error class: unknown class>, agentProcess: AgentProcess, action: Action?, llmOptions: <Error class: unknown class>): <Error class: unknown class>

Decorate the tool with some extra information.

Return

The decorated tool.

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.