Conditional Replanning Tool
Tool decorator that executes the wrapped tool, then conditionally triggers replanning based on the result.
Unlike ReplanningTool which always triggers replanning, this tool allows the ReplanDecider to inspect the result and decide whether to replan.
Note: This tool accesses AgentProcess via thread-local at call time, which is set by the decorator chain.
Parameters
The tool to wrap
Decider that inspects the result context and determines whether to replan
Properties
Functions
Execute the tool with JSON input.
Extension function to convert an Embabel Tool to a Spring AI ToolCallback.
Wrap this tool to conditionally await before execution.
Wrap this tool to always require confirmation before execution.
Create a new tool with a different description. Useful for providing context-specific descriptions while keeping the same functionality.
Extension function to wrap a Tool with event publication.