AshAi.Tool.Errors (ash_ai v0.7.2)

Copy Markdown View Source

Formats Ash errors into human-readable text for tool responses.

As the MCP specification dated 2025-06-18, tool execution errors should be returned as successful responses with isError: true and error details in the content array

Summary

Functions

Formats an Ash error into a mcp protocol compatible structure for tool error responses.

Functions

format(error)

Formats an Ash error into a mcp protocol compatible structure for tool error responses.