You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lib/async/ollama/toolbox.rb
+8-10
Original file line number
Diff line number
Diff line change
@@ -24,28 +24,26 @@ class Toolbox
24
24
PROMPT="You have access to the following tools, which you can invoke by replying with a single line of valid JSON:\n\n"
25
25
26
26
USAGE=<<~EOF
27
-
- Use these tools to enhance your ability to answer user queries accurately.
27
+
Use these tools to enhance your ability to answer user queries accurately.
28
28
29
-
- When you need to use a tool to answer the user's query, respond **only** with the JSON invocation.
29
+
When you need to use a tool to answer the user's query, respond **only** with the JSON invocation.
30
30
- Example: {"tool":"ruby", "code": "5+5"}
31
31
- **Do not** include any explanations, greetings, or additional text when invoking a tool.
32
32
- If you are dealing with numbers, ensure you provide them as Integers or Floats, not Strings.
33
33
34
-
- After invoking a tool:
34
+
After invoking a tool:
35
35
1. You will receive the tool's result as the next input.
36
36
2. Use the result to formulate a direct, user-friendly response that answers the original query.
37
37
3. Assume the user is unaware of the tool invocation or its result, so clearly summarize the answer without referring to the tool usage or the response it generated.
38
38
39
-
- Continue the conversation naturally after providing the answer. Ensure your responses are concise and user-focused.
39
+
Continue the conversation naturally after providing the answer. Ensure your responses are concise and user-focused.
0 commit comments