Ash Framework's AI extension getting fancy Jev support 🥳 ```elixir action :urgent, AshAi.Evaluate.Noul do description
Evaluationby ZachDaniel2026-09-18
Ash Framework's AI extension getting fancy Jev support 🥳
```elixir
action :urgent, AshAi.Evaluate.Noul do
description "Does `ticket` convey urgency?"
argument :ticket, :string, allow_nil?: false
run evaluate("typesafe:jev-latest")
end
```
Or multiple judgements:
```elixir
action :triage, AshAi.Evaluate.Judgments do
argument :ticket, :string, allow_nil?: false
constraints fields: [
department: [type: MyApp.Department, description: "Which team should handle `ticket`?"],
urgent: [type: :boolean, description: "Does `ticket` convey urgency?"]
]
run evaluate("typesafe:jev-latest")
end
```
And the way that AshAI works exposing actions as tools is trivial. So you can easily provide these as tools to LLM-backed actions:
```elixir
action :assign_to_correct_team do
description """
Assigns the ticket to the correct department:
- Engineering, if related to code
- Product, if related to features or improvements
If urgent, it assigns to L1, otherwise it assigns to L2.
"""
argument :ticket, :string, allow_nil?: false
run prompt("openai:gpt-4o", to