codeExecution and function calling

Hi @John_Kotowski , Welcome to the forum.

You are right. Either codeExecution, functionDeclarations, or googleSearchRetrieval needs to be passed one at a time, otherwise, you will get an INVALID_ARGUMENT error. The same applies in AI Studio as well, you can enable only one tool at a time.

Note: Multi-tool usage is only enabled through the live API at the moment.

Thanks.