Is it possible to use code execution with function calling tools?

Before I can use function calling and code execution at the same time, but I couldn’t seem to use tools and built in function calling

google.api_core.exceptions.InvalidArgument: 400 Code execution with function calling is unsupported

Using chat interface with automatic function calling

Are you using Vertex or the free Gemini API?

I’m using the free Gemini API

This one here - might provide the answer to your question…