Ollama Tool handling in Messaage History
Hi I am working on a project that include working with ollama along with Tool calling the tool include calling a third party API(Scraper API) to bring result.
The Problems i am facing:
How can i store the Tool call in message history
- If i make the content empty and add tool_calls key value pair as received. the next time when i say ok thanks(non tool call query) it call the tool again because he didn't have content previously.
- If i format the tool output and dump in the message history. the next time i go for shopping query instead of tool calling it gives me the same formatted response.
What i am looking for is an effecient way to store Tool call history
For Reference I am using misteral-nemo and i use this because it perform better than llama 3.1/8b/70b and fire-function v2
Top comments (0)