Hi! i've had a problem trying to use AshAI to create tools out of some actions, and i think i may have found a bug (i've barely started learning Ash so i might be missing something) i have a ressource with these policies :
policies do policy action_type(:create) do authorize_if relating_to_actor(:client) end policy action_type([:read, :update, :destroy]) do authorize_if relates_to_actor_via(:client) end end
policies do policy action_type(:create) do authorize_if relating_to_actor(:client) end policy action_type([:read, :update, :destroy]) do authorize_if relates_to_actor_via(:client) end end
digging into it, it seems that relating_to_actor fails pre-flight checks, stopping the tool from being shown. Is this expected behavior, a bug, or did i miss something?
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.