From a8a16a5363f6a328f5a27b0469a7cc0a780a708b Mon Sep 17 00:00:00 2001 From: goulustis Date: Wed, 29 Oct 2025 13:37:30 +0800 Subject: [PATCH] remove comments --- lang_agent/graphs/routing.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lang_agent/graphs/routing.py b/lang_agent/graphs/routing.py index ac8cbbf..ff58d1f 100644 --- a/lang_agent/graphs/routing.py +++ b/lang_agent/graphs/routing.py @@ -120,8 +120,7 @@ class RoutingGraph(GraphBase): decision:Route = self.router.invoke( [ SystemMessage( - # content="Return a JSON object with 'step'.the value should be one of 'chat' or 'order' based on the user input" - content=self.prompt_dict.get("route_prompt") + content=self.prompt_dict["route_prompt"] ), self._get_human_msg(state) ] @@ -157,12 +156,11 @@ class RoutingGraph(GraphBase): if self.prompt_dict.get("chat_prompt") is not None: inp = {"messages":[ - SystemMessage( - # "You must use tool to complete the possible task" - self.prompt_dict["chat_prompt"] - ), - *state["inp"][0]["messages"][1:] - ]}, state["inp"][1] + SystemMessage( + self.prompt_dict["chat_prompt"] + ), + *state["inp"][0]["messages"][1:] + ]}, state["inp"][1] out = self.chat_model.invoke(*inp) @@ -172,7 +170,6 @@ class RoutingGraph(GraphBase): def _tool_model_call(self, state:State): inp = {"messages":[ SystemMessage( - # "You must use tool to complete the possible task" self.prompt_dict["tool_prompt"] ), *state["inp"][0]["messages"][1:]