david-clifford commited on
Commit
af576e7
·
verified ·
1 Parent(s): 27857ae

Fix non-specific-start

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,12 +25,12 @@ def non_specific_start()-> str:
25
  None
26
  """
27
  try:
28
- result = "Welcome to this basic agent interface. Here are some of the tools I have access to" + str.join(available_tools())
 
29
  return result
30
  except Exception as e:
31
  return "Welcome to this basic agent interface."
32
 
33
-
34
  @tool
35
  def available_tools()-> str:
36
  """A tool that takes no arguments but returns a list of tools available to the agent.
 
25
  None
26
  """
27
  try:
28
+ tools_string = ", ".join([f for f in available_tools()])
29
+ result = "Welcome to this basic agent interface. Here are some of the tools I have access to" + tools_string
30
  return result
31
  except Exception as e:
32
  return "Welcome to this basic agent interface."
33
 
 
34
  @tool
35
  def available_tools()-> str:
36
  """A tool that takes no arguments but returns a list of tools available to the agent.