Implement programmatic retrieval of AI components#283
Implement programmatic retrieval of AI components#283MohamedSabthar wants to merge 1 commit intoballerina-platform:mainfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR implements programmatic retrieval of AI components by creating dynamic search functionality that replaces static JSON-based configurations with runtime discovery of AI modules and their dependencies. The implementation automatically detects available AI components based on the project's ballerina/ai module version and compatible dependent modules.
- Introduces
AiUtilsclass for dynamic AI component discovery and version management - Replaces static JSON configurations with runtime module inspection
- Updates search commands to use programmatic retrieval instead of cached JSON data
Reviewed Changes
Copilot reviewed 51 out of 51 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
AiUtils.java |
New utility class implementing AI component discovery, version compatibility, and semantic model inspection |
| Search commands | Updated to use dynamic component retrieval via AiUtils instead of static JSON configurations |
| Test resources | Added comprehensive test cases for AI component discovery with existing AI dependencies |
| JSON configurations | Removed static JSON files that are now replaced by programmatic discovery |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
NipunaRanasinghe
left a comment
There was a problem hiding this comment.
@MohamedSabthar no need to merge this PR as we'll be syncing the 1.2.x branch (which already has these changes) to the main branch once the release is complete.
|
Closing this as already merged to 1.2.x |
Purpose
Goals
Approach
User stories
Release note
Documentation
Training
Certification
Marketing
Automation tests
Security checks
Samples
Related PRs
Migrations (if applicable)
Test environment
Learning