Package com.embabel.agent.spi.support
Class EventPublishingTool
-
- All Implemented Interfaces:
-
com.embabel.agent.api.tool.DelegatingTool,com.embabel.agent.api.tool.Tool,com.embabel.agent.api.tool.ToolInfo
public final class EventPublishingTool implements DelegatingTool
Tool decorator that publishes events for tool calls.
-
-
Field Summary
Fields Modifier and Type Field Description private final Tool.Definitiondefinitionprivate final Tool.Metadatametadataprivate final Tooldelegate
-
Constructor Summary
Constructors Constructor Description EventPublishingTool(Tool delegate, AgentProcess agentProcess, Action action, LlmOptions llmOptions)
-
Method Summary
Modifier and Type Method Description Tool.DefinitiongetDefinition()Tool definition for LLM Tool.MetadatagetMetadata()Optional metadata ToolgetDelegate()The underlying tool being delegated to. Tool.Resultcall(String input)Execute the tool with JSON input. -
-
Constructor Detail
-
EventPublishingTool
EventPublishingTool(Tool delegate, AgentProcess agentProcess, Action action, LlmOptions llmOptions)
-
-
Method Detail
-
getDefinition
Tool.Definition getDefinition()
Tool definition for LLM
-
getMetadata
Tool.Metadata getMetadata()
Optional metadata
-
getDelegate
Tool getDelegate()
The underlying tool being delegated to.
-
call
Tool.Result call(String input)
Execute the tool with JSON input.
- Parameters:
input- JSON string matching inputSchema- Returns:
Result to send back to LLM
-
-
-
-