-
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.
Using chain of thought as a "coach's recs" feature
- Loading branch information
Showing
5 changed files
with
170 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1 @@ | ||
training_week_html_base = """ | ||
<html> | ||
<head> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
background-color: #f4f4f4; | ||
color: #333; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.container { | ||
width: 100%; | ||
max-width: 600px; | ||
margin: 20px auto; | ||
background-color: #ffffff; | ||
border-radius: 10px; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
overflow: hidden; | ||
} | ||
.header { | ||
background-color: #be5e5b; | ||
color: #ffffff; | ||
text-align: center; | ||
padding: 20px; | ||
} | ||
.header h1 { | ||
margin: 0; | ||
font-size: 24px; | ||
} | ||
.content { | ||
padding: 20px; | ||
} | ||
.content h2 { | ||
color: #be5e5b; | ||
font-size: 20px; | ||
margin-bottom: 10px; | ||
} | ||
.content ul { | ||
list-style-type: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
.content li { | ||
background-color: #f9f9f9; | ||
margin-bottom: 10px; | ||
padding: 15px; | ||
border-left: 5px solid #be5e5b; | ||
border-radius: 5px; | ||
color: #333; | ||
} | ||
.content li strong { | ||
display: block; | ||
font-size: 16px; | ||
margin-bottom: 5px; | ||
color: #333; | ||
} | ||
.footer { | ||
background-color: #f1f1f1; | ||
text-align: center; | ||
padding: 10px; | ||
font-size: 9px; | ||
color: #777; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="header"> | ||
<h1>Your Training Schedule</h1> | ||
</div> | ||
<div class="content"> | ||
<h2>Get pumped for this week's training.</h2> | ||
<ul> | ||
""" | ||
COACH_ROLE = "You are a talented running coach with years of experience." |
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
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,14 @@ | ||
from pydantic import BaseModel | ||
|
||
from src.types.training_week import TrainingWeek | ||
|
||
|
||
class TrainingWeekWithCoaching(BaseModel): | ||
training_week: TrainingWeek | ||
"""Client's recommended training week""" | ||
|
||
typical_week_training_review: str | ||
"""Coach's review of the client's typical week of training""" | ||
|
||
weekly_mileage_target: str | ||
"""Coach's prescribed weekly mileage target for the client""" |
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