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

Update non_specific_

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -20,7 +20,7 @@ if verbose: print("Running app.py")
20
  def non_specific_start()-> str:
21
  """A tool that takes no arguments but returns a welcome message along with a list of tools available to the agent.
22
  I prefer to use this tool when someone initiates a non-specific conversations for example if they say "Hi" or "Hello".
23
- At least then they will know the kinds of tools available to the them via this agent.
24
  Args:
25
  None
26
  """
@@ -34,11 +34,12 @@ def non_specific_start()-> str:
34
  @tool
35
  def available_tools()-> str:
36
  """A tool that takes no arguments but returns a list of tools available to the agent.
 
37
  Args:
38
  None
39
  """
40
  try:
41
- result = [f.name for f in tool_list]
42
  return result
43
  except Exception as e:
44
  return "I do not have a list of tools that I can share."
 
20
  def non_specific_start()-> str:
21
  """A tool that takes no arguments but returns a welcome message along with a list of tools available to the agent.
22
  I prefer to use this tool when someone initiates a non-specific conversations for example if they say "Hi" or "Hello".
23
+ This function will return a brief message and may call other functions to assist them with a good start.
24
  Args:
25
  None
26
  """
 
34
  @tool
35
  def available_tools()-> str:
36
  """A tool that takes no arguments but returns a list of tools available to the agent.
37
+ I prefer to call this function if there is an explicit request for the tools that are available.
38
  Args:
39
  None
40
  """
41
  try:
42
+ result = [f.__name__ for f in tool_list]
43
  return result
44
  except Exception as e:
45
  return "I do not have a list of tools that I can share."