-
Notifications
You must be signed in to change notification settings - Fork 13
feat: add AI tool to fetch ECL Archive #488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a new AI language model tool called getWorkunitECL that retrieves the ECL archive (XML format) for a specific workunit given its WUID. This complements the existing findWorkunits tool by allowing users to fetch the actual ECL source code that was submitted to create a workunit.
Key changes:
- Adds new
GetWorkunitECLToolclass implementing the VS Code Language Model Tool interface - Registers the tool with VS Code's language model system
- Contributes tool metadata and JSON schema in
package.jsonfor AI model consumption
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/ecl/lm/tools/getWorkunitECL.ts |
New tool implementation that fetches workunit ECL archive via @hpcc-js/comms Workunit API, with parameter validation, cancellation support, telemetry, and localized error messages |
src/ecl/lm/tools.ts |
Registers the new getWorkunitECL tool with VS Code's language model tools registry |
package.json |
Adds language model tool contribution with schema, tags, and display metadata for AI model discovery and invocation |
1eae539 to
fc7b340
Compare
jeclrsg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GordonSmith test.tmp included again. doesn't look like it's there to keep an empty dir or something?
test.tmp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test.tmp included here again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will remove...
fc7b340 to
52dd561
Compare
Signed-off-by: Gordon Smith<[email protected]>
52dd561 to
cf3c429
Compare
|
🎉 This change has been included in ecl-v2.34.0 🎉 The release is available on:
Your release-please bot 🚀🙏 |
No description provided.