Davit6174 commited on
Commit
436cac3
·
verified ·
1 Parent(s): c2db549

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,7 +100,7 @@ class LangGraphAgent:
100
  raw_response = self.model(content)
101
 
102
  # Detect tool usage
103
- match = re.search(rf'Action:\s*({tool_name})\s*Action Input:\s*\"(.+?)\"', raw_response, re.DOTALL)
104
  if match:
105
  tool_name, tool_input = match.groups()
106
  tool_fn = self.tools.get(tool_name)
 
100
  raw_response = self.model(content)
101
 
102
  # Detect tool usage
103
+ match = re.search(r"Action:\s*(\w+)\s*Action Input:\s*\"(.+?)\"", raw_response, re.DOTALL)
104
  if match:
105
  tool_name, tool_input = match.groups()
106
  tool_fn = self.tools.get(tool_name)