ExceptionSuppressingTool

Tool decorator that suppresses exceptions and returns a warning message instead.

Note: ReplanRequestedException is NOT suppressed - it is a control flow signal that must propagate to the tool loop to trigger replanning.

Constructors

Link copied to clipboard
constructor(delegate: Tool)

Properties

Link copied to clipboard
open override val definition: Tool.Definition

Tool definition for LLM

Link copied to clipboard
open override val delegate: Tool
Link copied to clipboard
open override val metadata: Tool.Metadata

Optional metadata

Functions

Link copied to clipboard
open override fun call(input: String): Tool.Result

Execute the tool with JSON input.

Link copied to clipboard
fun Tool.toSpringToolCallback(): <Error class: unknown class>

Extension function to convert an Embabel Tool to a Spring AI ToolCallback.

Link copied to clipboard

Unwrap a tool to find the innermost implementation. Recursively unwraps DelegatingTool wrappers.

Link copied to clipboard
inline fun <T : Tool> Tool.unwrapAs(): T?

Unwrap a tool to find a specific type, or return null if not found.

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.