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

Event data passed to the `on_tool_end` callback used by `AshAi.ToolLoop`.

Contains the tool name and execution result.

# `t`

```elixir
@type t() :: %AshAi.ToolEndEvent{
  result: {:ok, String.t(), any()} | {:error, String.t()},
  tool_name: String.t()
}
```

---

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