# `AshAi.Tool.Errors`
[🔗](https://github.com/ash-project/ash_ai/blob/v0.6.1/lib/ash_ai/tool/errors.ex#L5)

Formats Ash errors as JSON:API error objects for tool responses.

This module handles error transformation to ensure that tool execution
errors are returned in a consistent, parseable format that LLMs can
understand and react to appropriately.

# `format`

Formats an error as a JSON-encoded string of JSON:API errors.

# `serialize_errors`

Serializes a list of JSON:API error structs to maps.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
