@@ -40,7 +40,8 @@ public function __construct(
4040 private readonly GetHealthGoals $ getHealthGoalsTool ,
4141 private readonly SuggestWorkoutRoutine $ suggestWorkoutRoutineTool ,
4242 private readonly GetFitnessGoals $ getFitnessGoalsTool ,
43- ) {}
43+ ) {
44+ }
4445
4546 public function withMode (AgentMode $ mode ): self
4647 {
@@ -158,8 +159,8 @@ private function getContextInstructions(array $profileData): array
158159
159160 if ($ this ->mode === AgentMode::CreateMealPlan) {
160161 $ context [] = '' ;
161- $ context [] = 'The user has explicitly selected "Generate Meal Plan" mode. They want a complete multi-day meal plan. ' ;
162- $ context [] = 'Use the generate_meal_plan tool to initiate the meal plan generation workflow. ' ;
162+ $ context [] = 'The user has explicitly selected "Create Meal Plan" mode. They want a complete multi-day meal plan. ' ;
163+ $ context [] = 'Use the create_meal_plan tool to initiate the meal plan generation workflow. ' ;
163164 }
164165
165166 return $ context ;
@@ -174,8 +175,8 @@ private function getStepsInstructions(): array
174175 '1. Analyze the user \'s message to understand their wellness needs (nutrition, fitness, health/lifestyle) ' ,
175176 '2. Review the user \'s profile context to understand their biometrics, goals, and constraints ' ,
176177 '3. Use appropriate tools based on user intent: ' ,
177- ' - generate_meal : For specific meal suggestions ' ,
178- ' - generate_meal_plan : For multi-day meal plans or when in "Generate Meal Plan" mode ' ,
178+ ' - suggest_meal : For specific meal suggestions ' ,
179+ ' - create_meal_plan : For multi-day meal plans or when in "Create Meal Plan" mode ' ,
179180 ' - predict_glucose_spike: For food/meal glucose impact questions ' ,
180181 ' - suggest_wellness_routine: For sleep, stress, hydration, or lifestyle routines ' ,
181182 ' - suggest_workout_routine: For fitness and exercise guidance ' ,
@@ -218,8 +219,8 @@ private function getOutputInstructions(): array
218219 private function getToolsUsageInstructions (): array
219220 {
220221 return [
221- 'generate_meal : Use when user wants specific meal suggestions ' ,
222- 'generate_meal_plan : Use for multi-day meal plans or when in "Generate Meal Plan" mode ' ,
222+ 'suggest_meal : Use when user wants specific meal suggestions ' ,
223+ 'create_meal_plan : Use for multi-day meal plans or when in "Create Meal Plan" mode ' ,
223224 'predict_glucose_spike: Use for food/meal glucose impact questions ' ,
224225 'suggest_wellness_routine: Use for sleep, stress, hydration, or lifestyle guidance ' ,
225226 'suggest_workout_routine: Use for fitness and exercise recommendations ' ,
0 commit comments