Current section
Files
Jump to
Current section
Files
lib/ash_ai/dev_tools.ex
defmodule AshAi.DevTools do
@moduledoc false
use Ash.Domain,
extensions: [AshAi],
validate_config_inclusion?: false
tools do
tool :list_ash_resources, AshAi.DevTools.Tools, :list_ash_resources do
description "List all Ash resources in the app along with their domains"
end
tool :get_usage_rules, AshAi.DevTools.Tools, :get_usage_rules do
description """
Get usage rules for the provided packages.
Do this early as soon as you see that you are working with a given package.
"""
end
tool :list_packages_with_rules, AshAi.DevTools.Tools, :list_packages_with_rules do
description "List all packages that have usage-rules.md files"
end
tool :list_generators, AshAi.DevTools.Tools, :list_generators do
description "List available generators and their documentation"
end
end
resources do
resource AshAi.DevTools.Tools
end
end