Spaces:
Runtime error
Runtime error
Commit
·
261d763
1
Parent(s):
057fa56
test
Browse files
app.py
CHANGED
|
@@ -994,22 +994,23 @@ Example of final answer:\n\
|
|
| 994 |
"""
|
| 995 |
|
| 996 |
FORMAT_INSTRUCTIONS_STRUC = """
|
| 997 |
-
When it is necessary to use tools and you must use the following format to output "Thought", "Action" (json blob):\n
|
| 998 |
-
|
| 999 |
Thought: you should always think about what to do and consider previous and subsequent steps
|
| 1000 |
Action:
|
| 1001 |
```
|
| 1002 |
{
|
| 1003 |
-
"
|
| 1004 |
"action_input": "the input to the action"
|
| 1005 |
}
|
| 1006 |
```
|
| 1007 |
Observation: the result of the action.
|
| 1008 |
-
|
| 1009 |
$TOOL_NAME should be one of [{tool_names}]
|
| 1010 |
-
If **Thought**, **Action** is missing in the response of using tools, you must re-write the response
|
|
|
|
|
|
|
| 1011 |
|
| 1012 |
-
---\n When you are able to provide final answer, you must use the following format to output "Thought", "Action" (json blob):\n\
|
| 1013 |
Thought: I know what to respond
|
| 1014 |
Action:
|
| 1015 |
```
|
|
@@ -1018,7 +1019,8 @@ Action:
|
|
| 1018 |
"action_input": "Final response to human"
|
| 1019 |
}
|
| 1020 |
```
|
| 1021 |
-
|
|
|
|
| 1022 |
|
| 1023 |
"""
|
| 1024 |
|
|
|
|
| 994 |
"""
|
| 995 |
|
| 996 |
FORMAT_INSTRUCTIONS_STRUC = """
|
| 997 |
+
When it is necessary to use tools and you must use the following format to output "Thought", "Action" (json blob):\n
|
| 998 |
+
|
| 999 |
Thought: you should always think about what to do and consider previous and subsequent steps
|
| 1000 |
Action:
|
| 1001 |
```
|
| 1002 |
{
|
| 1003 |
+
"action11": $TOOL_NAME,
|
| 1004 |
"action_input": "the input to the action"
|
| 1005 |
}
|
| 1006 |
```
|
| 1007 |
Observation: the result of the action.
|
| 1008 |
+
|
| 1009 |
$TOOL_NAME should be one of [{tool_names}]
|
| 1010 |
+
If **Thought**, **Action** is missing in the response of using tools, you must re-write the response.
|
| 1011 |
+
|
| 1012 |
+
---\n When you are able to provide final answer, you must use the following format to output "Thought", "Action" (json blob):
|
| 1013 |
|
|
|
|
| 1014 |
Thought: I know what to respond
|
| 1015 |
Action:
|
| 1016 |
```
|
|
|
|
| 1019 |
"action_input": "Final response to human"
|
| 1020 |
}
|
| 1021 |
```
|
| 1022 |
+
|
| 1023 |
+
If **Thought**, **Action** is missing in the response of using tools, you must re-write the response.
|
| 1024 |
|
| 1025 |
"""
|
| 1026 |
|