Skip to content

Refactoring core#40

Merged
hmirin merged 6 commits intomainfrom
refactoring_core
Feb 9, 2025
Merged

Refactoring core#40
hmirin merged 6 commits intomainfrom
refactoring_core

Conversation

@hmirin
Copy link
Copy Markdown
Contributor

@hmirin hmirin commented Feb 4, 2025

No description provided.

This commit adds model override capabilities to templates and makes several core improvements:

1. Added model override support for GenerateTemplate and ToolingTemplate
2. Improved Jinja2 template error handling with disable_jinja option
3. Added complete environment isolation for SubroutineTemplate
4. Refactored runner model handling for better consistency
5. Added design documentation for template model override
6. Updated examples with new features and improved code structure

(This commit message is auto-generated with examples/dogfooding/commit_with_auto_generated_comment.py)
Refactor conversation flow control by removing JumpTemplate and adding
robust end conversation handling with optional farewell messages. Changes:
- Remove JumpTemplate and jump_to_id from Session
- Add EndConversationTool and farewell message support to EndTemplate
- Simplify runner by removing start_template_id
- Add comprehensive tests and design documentation

(This commit message is auto-generated with examples/dogfooding/commit_with_auto_generated_comment.py)
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 4, 2025

Codecov Report

Attention: Patch coverage is 81.76991% with 103 lines in your changes missing coverage. Please review.

Project coverage is 82.88%. Comparing base (29c0280) to head (f080354).
Report is 36 commits behind head on main.

Files with missing lines Patch % Lines
src/prompttrail/core/_core.py 81.20% 50 Missing ⚠️
src/prompttrail/agent/runners.py 82.39% 25 Missing ⚠️
src/prompttrail/agent/templates/_tool.py 66.66% 15 Missing ⚠️
src/prompttrail/agent/subroutine/_base.py 63.63% 8 Missing ⚠️
...rc/prompttrail/agent/session_transformers/_code.py 55.55% 4 Missing ⚠️
src/prompttrail/agent/tools/_subroutine.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #40      +/-   ##
==========================================
+ Coverage   82.75%   82.88%   +0.13%     
==========================================
  Files          22       30       +8     
  Lines        1264     2150     +886     
==========================================
+ Hits         1046     1782     +736     
- Misses        218      368     +150     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Implement event handling system with UserInteractionEvent, refactor core
components for better maintainability, and rename session transformers
for clarity. Includes new design proposal for event handling.

(This commit message is auto-generated with examples/dogfooding/commit_with_auto_generated_comment.py)
Add new APIRunner class with FastAPI integration for web-based
interaction with templates. Includes session management, RESTful
endpoints, and async support. Also adds session serialization
methods and required dependencies.

(This commit message is auto-generated with examples/dogfooding/commit_with_auto_generated_comment.py)
@hmirin hmirin force-pushed the refactoring_core branch 5 times, most recently from ef0103a to 483cbaa Compare February 9, 2025 04:43
Move core implementation to _core.py and add new proposals

(This commit message is auto-generated with examples/dogfooding/commit_with_auto_generated_comment.py)
@hmirin hmirin force-pushed the refactoring_core branch 17 times, most recently from 69f9b2c to 8390aad Compare February 9, 2025 09:41
Add auto-release process and improve documentation completeness

- Add automatic version detection and release process
- Enhance documentation with runner and debugging details
- Add weather forecast API example
- Improve markdown code block extractor
- Update README and remove outdated roadmap

(This commit message is auto-generated with examples/dogfooding/commit_with_auto_generated_comment.py)
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Feb 9, 2025

@hmirin hmirin marked this pull request as ready for review February 9, 2025 09:58
@hmirin hmirin merged commit a37c4db into main Feb 9, 2025
@hmirin hmirin deleted the refactoring_core branch February 9, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant