Can I do both codeExecution and function calling at the same time?
This fails, but works when I do one at a time…
const generativeModel = genAI.getGenerativeModel({
// Use a model that supports function calling, like a Gemini 1.5 model
model: “gemini-1.5-flash”,
// Specify the function declaration.
tools: {
functionDeclarations: [getCompaniesFunctionDeclaration],
codeExecution: {},
},
});