←back to thread

Devstral

(mistral.ai)
701 points mfiguiere | 1 comments | | HN request time: 0s | source
Show context
thih9 ◴[] No.44060624[source]
> Devstral excels at using tools to explore codebases

As an AI and vibe coding newbie, how does that work? E.g. how would I use devstral and ollama and instruct it to use tools? Or would I need some other program as well?

replies(2): >>44061016 #>>44062244 #
1. desdenova ◴[] No.44061016[source]
In the Ollama API, you use the "tools" parameter to describe the available tools to the model, then use the "tool_calls" from the response to call the functions and send the results back to the model using "role": "tool".

Most of this is handled very easily by the ollama-python library, so you can integrate tool calling very simply in any script.

That said, this specific model was unable to call the functions and use the results in my "hello world" tests, so it seems it expects a few very specialized tools to be provided, which are defined by that platform they're advertising.

Right now the best tool calling model I've used is still qwen3, it works very reliably, and I can give it any ability I want and it'll use it when expected, even in /no_think mode.