@@ -82,7 +82,7 @@ def get_current_date() -> str:
8282 return datetime .now ().strftime ("%Y-%m-%d" )
8383
8484
85- activity_agent = create_agent (
85+ weekend_agent = create_agent (
8686 model = base_model ,
8787 prompt = (
8888 "You help users plan their weekends and choose the best activities for the given weather."
@@ -94,10 +94,10 @@ def get_current_date() -> str:
9494
9595
9696@tool
97- def activity_agent_tool (query : str ) -> str :
97+ def weekend_agent_tool (query : str ) -> str :
9898 """Invoke the activity planning agent and return its final response as plain text."""
99- logger .info ("Tool:activity_agent invoked" )
100- response = activity_agent .invoke ({"messages" : [HumanMessage (content = query )]})
99+ logger .info ("Tool:weekend_agent invoked" )
100+ response = weekend_agent .invoke ({"messages" : [HumanMessage (content = query )]})
101101 final = response ["messages" ][- 1 ].content
102102 return final
103103
@@ -147,7 +147,7 @@ def check_fridge() -> list[str]:
147147 return ["tofu" , "soy sauce" , "broccoli" , "carrots" ]
148148
149149
150- recipe_agent = create_agent (
150+ meal_agent = create_agent (
151151 model = base_model ,
152152 prompt = (
153153 "You help users plan meals and choose the best recipes."
@@ -159,10 +159,10 @@ def check_fridge() -> list[str]:
159159
160160
161161@tool
162- def recipe_agent_tool (query : str ) -> str :
162+ def meal_agent_tool (query : str ) -> str :
163163 """Invoke the recipe planning agent and return its final response as plain text."""
164- logger .info ("Tool:recipe_agent invoked" )
165- response = recipe_agent .invoke ({"messages" : [HumanMessage (content = query )]})
164+ logger .info ("Tool:meal_agent invoked" )
165+ response = meal_agent .invoke ({"messages" : [HumanMessage (content = query )]})
166166 final = response ["messages" ][- 1 ].content
167167 return final
168168
@@ -176,7 +176,7 @@ def recipe_agent_tool(query: str) -> str:
176176 "You are a supervisor, managing an activity planning agent and recipe planning agent."
177177 "Assign work to them as needed in order to answer user's question."
178178 ),
179- tools = [activity_agent_tool , recipe_agent_tool ],
179+ tools = [weekend_agent_tool , meal_agent_tool ],
180180)
181181
182182
0 commit comments