Skip to content
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

Refactor and enhance template system handling #63

Merged
merged 2 commits into from
Jan 11, 2025

Conversation

kpavlov
Copy link
Owner

@kpavlov kpavlov commented Jan 11, 2025

Made SystemMessageProvider a functional interface and added a default implementation for apply.

Introduced java examples on how to use templates for system and user prompts. Updated documentation and examples to simplify prompt template handling. Configured Maven for Kotlin and Java interop while adding proper compiler settings. Added Java sample demonstrating template usage.

Made `SystemMessageProvider` a functional interface and added a default implementation for `apply`. Introduced new Mustache templates for system and user prompts. Updated documentation and examples to simplify prompt template handling. Configured Maven for Kotlin and Java interop while adding proper compiler settings. Added Java sample demonstrating template usage.
@kpavlov kpavlov added the documentation Improvements or additions to documentation label Jan 11, 2025
Copy link

codacy-production bot commented Jan 11, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.08% (target: -1.00%) 100.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (4ad0b2b) 191 154 80.63%
Head commit (dfb8136) 197 (+6) 159 (+5) 80.71% (+0.08%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#63) 7 7 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

Copy link

codecov bot commented Jan 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.75%. Comparing base (4ad0b2b) to head (dfb8136).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #63      +/-   ##
==========================================
+ Coverage   75.52%   75.75%   +0.23%     
==========================================
  Files          15       16       +1     
  Lines         192      198       +6     
  Branches       15       15              
==========================================
+ Hits          145      150       +5     
- Misses         38       39       +1     
  Partials        9        9              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kpavlov kpavlov added the enhancement New feature or request label Jan 11, 2025
@kpavlov kpavlov marked this pull request as ready for review January 11, 2025 12:47
@kpavlov kpavlov merged commit fa615c2 into main Jan 11, 2025
2 of 3 checks passed
@kpavlov kpavlov deleted the template-source-java-example branch January 11, 2025 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant