Skip to content

Conversation

arcaputo3
Copy link
Collaborator

Summary

  • Introduces a new unified @Param annotation that works across Tools, Resources, and Prompts
  • Deprecates the specific @ToolParam, @ResourceParam, and @PromptParam annotations
  • Maintains full backwards compatibility for existing code

Changes

  • ✨ Add new @Param annotation with all necessary fields (description, example, required, schema)
  • 📦 Update macro processors to check for @Param first, then fall back to legacy annotations
  • 📝 Migrate all examples and documentation to use the new annotation
  • ⚠️ Mark old annotations as deprecated with clear migration message

Backwards Compatibility

This change is fully backwards compatible:

  • Existing code using @ToolParam, @ResourceParam, or @PromptParam will continue to work
  • The macros intelligently check for the new @Param first, then fall back to legacy annotations
  • Deprecation warnings guide users to migrate at their convenience
  • Planned removal in version 0.3.0

Test Plan

  • All 139 existing tests pass
  • Examples compile and run correctly with new annotations
  • Legacy annotations still work as expected

🤖 Generated with Claude Code

- Add new unified @param annotation that works for Tools, Resources, and Prompts
- Deprecate @ToolParam, @ResourceParam, and @PromptParam (will be removed in 0.3.0)
- Update macro processors to support both new and legacy annotations for backwards compatibility
- Migrate all examples and documentation to use new @param annotation

BREAKING CHANGE: None - full backwards compatibility maintained

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@arcaputo3 arcaputo3 merged commit a446a75 into main Sep 26, 2025
5 checks passed
@arcaputo3 arcaputo3 deleted the feature/unified-param-annotation branch September 26, 2025 16:45
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.

1 participant