Markiian Tsalyk commited on
Commit
55eb2ba
·
1 Parent(s): 12c47a4

Updated tools

Browse files
__pycache__/agent.cpython-313.pyc DELETED
Binary file (1.75 kB)
 
__pycache__/f918266a-b3e0-4914-865d-4faa564f1aef.cpython-313.pyc DELETED
Binary file (367 Bytes)
 
__pycache__/open_router_chat.cpython-313.pyc DELETED
Binary file (1.62 kB)
 
f918266a-b3e0-4914-865d-4faa564f1aef.py DELETED
@@ -1,5 +0,0 @@
1
- def simple_func():
2
- return 124.5
3
-
4
-
5
- print(simple_func())
 
 
 
 
 
 
tools.py CHANGED
@@ -263,6 +263,7 @@ def final_answer(query: str, answer: str, **kwargs) -> str:
263
  User query: {query}
264
  Final answer from agent: {answer}
265
  Adapt final answer to user request.
 
266
  There might be requested exact number, then you need to compress the output so that it was only number without any comments or explanations (float or integer).
267
  And on the other hand, the question might request some exact string value. Don't explain it, just return this value (For example, insted of `In response to the question, desired person is X` return only `X`)
268
  """
 
263
  User query: {query}
264
  Final answer from agent: {answer}
265
  Adapt final answer to user request.
266
+ Final answer should be a number or as few words as possible or a comma separated list of numbers and/or strings. If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
267
  There might be requested exact number, then you need to compress the output so that it was only number without any comments or explanations (float or integer).
268
  And on the other hand, the question might request some exact string value. Don't explain it, just return this value (For example, insted of `In response to the question, desired person is X` return only `X`)
269
  """