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
Fix: Standardize usage variables and update README
Standardized all `usage` variables in `ollama_bash_lib.sh` to a consistent two-line format.
Updated `README.md` to include documentation for the new Tools functions, including:
- Added a "Tools" section to the table of contents.
- Added a "Howto Use Tools" guide.
- Added a "Tools Functions" section with a table of all `ollama_tools_*` functions.
**Step 6: Add Tool Response to Message List (for chat)**
281
+
282
+
Finally, if you are in a chat session, you need to add the tool's output back into the message list so the model can use it to generate a user-facing response.
283
+
284
+
```bash
285
+
# Create a JSON object with the tool_call_id and the result
|`ollama_tools`<br />`oto`| View all tools |`ollama_tools`| list of tools to `stdout`|`0`/`1`|
374
+
|`ollama_tools_count`<br />`otco`| Get count of tools |`ollama_tools_count`| number of tools to `stdout`|`0`/`1`|
375
+
|`ollama_tools_clear`<br />`otc`| Remove all tools |`ollama_tools_clear`| none |`0`/`1`|
376
+
|`ollama_tools_is_call`<br />`otic`| Does the response have a tool call? |`ollama_tools_is_call "json_response"`| none |`0` if it has a tool call, `1` otherwise |
377
+
|`ollama_tools_run`<br />`otr`| Run a tool |`ollama_tools_run "tool_name" "arguments_json"`| result of tool to `stdout`|`0`/`1`|
0 commit comments