devchavda11 commited on
Commit
0b15b03
·
verified ·
1 Parent(s): e3dcbc2

Update src/chat_langraph.py

Browse files
Files changed (1) hide show
  1. src/chat_langraph.py +1 -2
src/chat_langraph.py CHANGED
@@ -114,11 +114,10 @@ def write_file(name: str, extension: str, content: str) -> str:
114
  path = f"/tmp/{name}.{extension}" # Save in /tmp
115
  with open(path, "w", encoding="utf-8") as f:
116
  f.write(content)
117
- return f"Content saved to {path}"
118
  except Exception as e:
119
  return f"Error writing file: {e}"
120
 
121
-
122
  @tool
123
  def run_cmd_command(command: str) -> str:
124
  """
 
114
  path = f"/tmp/{name}.{extension}" # Save in /tmp
115
  with open(path, "w", encoding="utf-8") as f:
116
  f.write(content)
117
+ return f"{path}"
118
  except Exception as e:
119
  return f"Error writing file: {e}"
120
 
 
121
  @tool
122
  def run_cmd_command(command: str) -> str:
123
  """