Observability Tool
class ObservabilityTool(val delegate: Tool, observationRegistry: <Error class: unknown class>? = null) : DelegatingTool
Tool decorator that adds Micrometer Observability.
Properties
Functions
Link copied to clipboard
Routes single-arg calls through the canonical two-arg method, ensuring decorator logic in call (String, ToolCallContext) is always executed regardless of which overload the caller uses.
Canonical entry point for decorator logic. Override this method to add behavior while preserving context propagation to delegate.
Link copied to clipboard
Extension function to convert an Embabel Tool to a Spring AI ToolCallback.
Link copied to clipboard
Wrap this tool to conditionally await before execution.
Link copied to clipboard
Wrap this tool to always require confirmation before execution.
Link copied to clipboard
Create a new tool with a different description. Useful for providing context-specific descriptions while keeping the same functionality.
Link copied to clipboard
fun Tool.withEventPublication(agentProcess: AgentProcess, action: Action?, llmOptions: <Error class: unknown class>): Tool
Extension function to wrap a Tool with event publication.