fixed dynamic TDEE
This commit is contained in:
@@ -350,6 +350,22 @@ TOOL_DEFINITIONS: list[dict[str, Any]] = [
|
||||
"type": "number",
|
||||
"description": "NEAT-база 200–300 ккал, по умолчанию 200",
|
||||
},
|
||||
"activity_level": {
|
||||
"type": "string",
|
||||
"description": "sedentary/moderate/active/very_active — fallback для TDEE план",
|
||||
},
|
||||
"weekly_workouts": {
|
||||
"type": "integer",
|
||||
"description": "Тренировок в неделю для fallback TDEE план",
|
||||
},
|
||||
"baseline_steps": {
|
||||
"type": "integer",
|
||||
"description": "Ожидаемые шаги/день (fallback TDEE план)",
|
||||
},
|
||||
"baseline_workout_kcal": {
|
||||
"type": "number",
|
||||
"description": "Ожидаемые ккал тренировок в неделю (fallback TDEE план)",
|
||||
},
|
||||
},
|
||||
"required": [],
|
||||
},
|
||||
@@ -923,6 +939,8 @@ async def execute_tool(
|
||||
for k in (
|
||||
"sex", "age", "height_cm", "weight_kg",
|
||||
"goal", "target_weight_kg", "neat_base_kcal",
|
||||
"activity_level", "weekly_workouts",
|
||||
"baseline_steps", "baseline_workout_kcal",
|
||||
)
|
||||
if k in arguments and arguments[k] is not None
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user