Gemini 2.5 Pro MAX doesnt use tools to check generated code

our codebase is mostly Rust.

when we use Claude Sonnet 3.7 MAX mode in the agent, it automatically uses cargo build and cargo test and cargo fmt to ensure the genrated code is correct and well formatted. It does all this without us prompting it any way to do so.

However, when using the Gemini MAX model it doesnt do any of that. it just generates the code and doesnt run any tool to check its output.