-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
106 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from src.llm import get_completion_json | ||
from src.types.mid_week_analysis import MidWeekAnalysis | ||
from src.types.training_week import TrainingWeekWithPlanning | ||
|
||
|
||
def get_updated_training_week( | ||
sysmsg_base: str, | ||
mid_week_analysis: MidWeekAnalysis, | ||
) -> TrainingWeekWithPlanning: | ||
msg = ( | ||
sysmsg_base | ||
+ f"""\nThe original plan for this week targeted {mid_week_analysis.miles_target} miles. Your client has run {mid_week_analysis.miles_ran} miles so far (and they have {mid_week_analysis.miles_remaining} miles left to run this week), but the plan for the rest of the week includes {mid_week_analysis.future_miles_planned} miles. Adjust the plan accordingly given the following information: | ||
Here is your client's progress so far this week: | ||
{mid_week_analysis.activities} | ||
Here is the plan for the rest of the week: | ||
{mid_week_analysis.training_week_future} | ||
What changes need to be made so that your client runs {mid_week_analysis.miles_remaining} more miles this week?""" | ||
) | ||
|
||
return get_completion_json( | ||
message=msg, | ||
response_model=TrainingWeekWithPlanning, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters