Content Translation: Integrate Guidelines/Knowledge support - #987
Content Translation: Integrate Guidelines/Knowledge support#987wprashed wants to merge 6 commits into
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #987 +/- ##
==========================================
Coverage 75.37% 75.38%
- Complexity 3357 3358 +1
==========================================
Files 138 138
Lines 12976 12978 +2
==========================================
+ Hits 9781 9783 +2
Misses 3195 3195
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
dkotter
left a comment
There was a problem hiding this comment.
Couple minor things that need updated. In addition, we have a standard PR template that we want each contributor to follow. It looks like the PR description here doesn't completely follow that (for instance, the Use of AI Tools is missing among a few other things)
| /** | ||
| * {@inheritDoc} | ||
| * | ||
| * @since 1.4.0 |
There was a problem hiding this comment.
Please refer to our contributing guide. These should be set to x.x.x
Co-authored-by: Darin Kotter <darin.kotter@gmail.com>
…om/wprashed/ai into add/content-translation-guidelines
Fixes #980
Description
Integrates WordPress Guidelines/Knowledge support into the
Content_TranslationAbility by implementing theguideline_categories()method declaring support forsite,copy, andadditionalguidelines.This allows site-wide guidelines, copy style rules, and translation glossaries to be passed to LLMs when requesting content translations.
Changes Included
guideline_categories()inincludes/Abilities/Content_Translation/Content_Translation.phpreturningarray( 'site', 'copy', 'additional' ).test_guideline_categories()intests/Integration/Includes/Abilities/Content_TranslationTest.php.Testing Instructions
wpai_content_translationAbility includes declared guideline categories (site,copy,additional) in its metadata.