Converts Ash errors into concise readable tool error messages.
Implementations should return a concise error description.
Example
defimpl AshAi.ToToolError, for: MyApp.CustomError do
def to_tool_error(error) do
"custom error: #{error.message}"
end
end
Summary
Functions
Returns a human-readable error message string for tool responses.
Types
@type t() :: term()
All the types that implement this protocol.