Package com.axelor.ai.chat
Interface ToolResult
- All Known Implementing Classes:
ToolResult.ClientSide,ToolResult.Consult,ToolResult.Error,ToolResult.PendingApproval,ToolResult.PendingConfirmation,ToolResult.Success
public sealed interface ToolResult
permits ToolResult.Success, ToolResult.Error, ToolResult.PendingApproval, ToolResult.PendingConfirmation, ToolResult.Consult, ToolResult.ClientSide
Result of a tool execution — either success with output or an error.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordThe tool should be executed client-side (in the browser).static final recordThe current agent wants to consult a sub-agent.static final recordstatic final recordThe tool requires user approval before execution.static final recordThe tool stopped at a question only the user can answer — a form's alert, a button's prompt — and will carry on from where it stopped once they answer.static final record