feat: add the get_course_info function to openedx processor#145
feat: add the get_course_info function to openedx processor#145felipemontoya merged 6 commits intoopenedx:mainfrom
Conversation
|
Thanks for the pull request, @MaferMazu! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #145 +/- ##
==========================================
+ Coverage 91.77% 91.92% +0.15%
==========================================
Files 54 54
Lines 4946 5043 +97
Branches 308 310 +2
==========================================
+ Hits 4539 4636 +97
Misses 313 313
Partials 94 94
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Adds a new OpenEdXProcessor LLM tool function to fetch course-level metadata intended for downstream LLM processing.
Changes:
- Add
get_course_infoLLM tool to return course details (title/description/overview, etc.) with optionalfieldsfiltering viaprocessor_config. - Add
CourseKeyusage to parse course IDs for course info lookup.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3cf7d1e to
c9672af
Compare
c9672af to
3bdeae2
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Henrrypg
left a comment
There was a problem hiding this comment.
Fixing the description i see this PR pretty fine, maybe we could be more descriptive in the descriptions but i don't have a specific proposal, maybe @felipemontoya can help us with those.
felipemontoya
left a comment
There was a problem hiding this comment.
Based on henrry's review I'll go ahead and merge
Description
This function retrieves the course information.
Related PR: eduNEXT/openedx-ai-badges#6
How to test
Quick test (without llm request)
examples.openweights.qwen_summary1.1 Add a patch
{ "orchestrator_class": "DirectLLMResponse", "processor_config": { "OpenEdXProcessor": { "function": "get_course_info" }, "LLMProcessor": { "function": "summarize_content", "provider": "openai" } } }