Conditional Awaiting Tool
Tool decorator that conditionally requires awaiting before execution.
The decider inspects the input context and returns either:
An Awaitable to pause execution and wait for user input
nullto proceed with normal tool execution
Parameters
delegate
The tool to wrap
decider
Function that decides whether to await based on input context
Properties
Functions
Link copied to clipboard
Execute the tool with JSON input.
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.