Skip to content

feat: defining tools at the resource level#187

Merged
zachdaniel merged 6 commits intoash-project:mainfrom
ThaddeusJiang:feat-resource-tools
Apr 22, 2026
Merged

feat: defining tools at the resource level#187
zachdaniel merged 6 commits intoash-project:mainfrom
ThaddeusJiang:feat-resource-tools

Conversation

@ThaddeusJiang
Copy link
Copy Markdown
Contributor

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

Summary

Support tools do block on resources directly #171

Comment thread lib/ash_ai/macros.ex Outdated
Comment thread lib/ash_ai.ex Outdated
Comment thread lib/ash_ai/transformers/resource_tools.ex
Comment thread lib/ash_ai/transformers/resource_tools.ex Outdated
- replace silent Enum.uniq dedupe with explicit duplicate-name
  validation
- raise clear error when domain-level and resource-level tools share a
  name
- set ResourceTools transformer to run after others
- detect resource DSL via :spark_is attribute
- add tests for duplicate name conflict across domain/resource tools
@ThaddeusJiang
Copy link
Copy Markdown
Contributor Author

Hi @zachdaniel

I have fixed the spark.formater and cheat_sheet checks in the current PR.

I also fixed the open_api_test in #188.

@zachdaniel zachdaniel merged commit 900103a into ash-project:main Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants